.login-page{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.login-panel{background:linear-gradient(145deg,#4f46e5,#7c3aed 60%,#a855f7);display:flex;flex-direction:column;justify-content:space-between;padding:3rem;position:relative;overflow:hidden}.login-panel:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:radial-gradient(circle at 20% 80%,rgba(255,255,255,.08) 0%,transparent 50%),radial-gradient(circle at 80% 20%,rgba(255,255,255,.06) 0%,transparent 40%)}.panel-logo{display:flex;align-items:center;gap:.625rem;position:relative;z-index:1}.panel-logo-mark{width:36px;height:36px;background:#fff3;border-radius:var(--radius-md);display:flex;align-items:center;justify-content:center;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,.3)}.panel-logo-mark svg{width:20px;height:20px;stroke:#fff;fill:none;stroke-width:2;stroke-linecap:round}.panel-logo-name{font-size:1.125rem;font-weight:700;color:#fff;letter-spacing:-.01em}.panel-content{position:relative;z-index:1}.panel-tag{display:inline-block;font-size:.75rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:#ffffffb3;background:#ffffff1f;border:1px solid rgba(255,255,255,.2);border-radius:100px;padding:.25rem .75rem;margin-bottom:1.25rem}.panel-heading{font-size:clamp(1.75rem,3vw,2.5rem);font-weight:700;color:#fff;line-height:1.2;letter-spacing:-.02em;margin-bottom:1rem}.panel-sub{font-size:1rem;color:#ffffffbf;max-width:340px;line-height:1.65}.panel-stats{display:flex;gap:2rem;position:relative;z-index:1}.stat-item{display:flex;flex-direction:column;gap:.2rem}.stat-number{font-size:1.5rem;font-weight:700;color:#fff;letter-spacing:-.02em}.stat-label{font-size:.75rem;color:#fff9;font-weight:500}.login-form-side{display:flex;align-items:center;justify-content:center;padding:2.5rem 2rem;background:var(--color-surface)}.login-card{width:100%;max-width:400px}.login-header{margin-bottom:2.25rem}.login-header h1{font-size:1.75rem;font-weight:700;color:var(--color-text-primary);letter-spacing:-.025em;margin-bottom:.375rem}.login-header p{font-size:.9375rem;color:var(--color-text-secondary)}.form-group{display:flex;flex-direction:column;gap:.4rem;margin-bottom:1.125rem}.form-label{font-size:.875rem;font-weight:600;color:var(--color-text-primary)}.input-wrapper{position:relative}.form-input{width:100%;height:44px;padding:0 2.75rem 0 .875rem;border:1.5px solid var(--color-border);border-radius:var(--radius-md);font-size:.9375rem;color:var(--color-text-primary);background:var(--color-surface);transition:border-color var(--transition),box-shadow var(--transition);-webkit-appearance:none}.form-input::placeholder{color:var(--color-text-muted)}.form-input:hover{border-color:#94a3b8}.form-input:focus{outline:none;border-color:var(--color-border-focus);box-shadow:0 0 0 3px var(--color-primary-ring)}.form-input.input-error{border-color:var(--color-error)}.form-input.input-error:focus{box-shadow:0 0 0 3px #ef444426}.input-icon{position:absolute;right:.875rem;top:50%;transform:translateY(-50%);width:18px;height:18px;color:var(--color-text-muted);pointer-events:none;flex-shrink:0}.input-toggle{position:absolute;right:.875rem;top:50%;transform:translateY(-50%);background:none;border:none;padding:0;cursor:pointer;color:var(--color-text-muted);display:flex;align-items:center;transition:color var(--transition);line-height:1}.input-toggle:hover{color:var(--color-text-primary)}.input-toggle:focus-visible{border-radius:var(--radius-sm)}.field-error{display:flex;align-items:center;gap:.3rem;font-size:.8125rem;color:var(--color-error);font-weight:500}.field-error svg{width:14px;height:14px;flex-shrink:0}.form-options{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem;flex-wrap:wrap;gap:.5rem}.checkbox-label{display:flex;align-items:center;gap:.5rem;font-size:.875rem;color:var(--color-text-secondary);cursor:pointer;-webkit-user-select:none;user-select:none}.checkbox-label input[type=checkbox]{width:16px;height:16px;border:1.5px solid var(--color-border);border-radius:4px;accent-color:var(--color-primary);cursor:pointer;flex-shrink:0}.forgot-link{font-size:.875rem;font-weight:600;color:var(--color-primary);transition:color var(--transition)}.forgot-link:hover{color:var(--color-primary-dark);text-decoration:none}.btn-submit{width:100%;height:46px;background:var(--color-primary);color:#fff;border:none;border-radius:var(--radius-md);font-size:.9375rem;font-weight:600;letter-spacing:.01em;display:flex;align-items:center;justify-content:center;gap:.5rem;cursor:pointer;transition:background var(--transition),transform var(--transition),box-shadow var(--transition)}.btn-submit:hover:not(:disabled){background:var(--color-primary-dark);box-shadow:0 4px 12px #4f46e559;transform:translateY(-1px)}.btn-submit:active:not(:disabled){transform:translateY(0);box-shadow:none}.btn-submit:disabled{opacity:.65;cursor:not-allowed}.btn-spinner{width:18px;height:18px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.alert-error{display:flex;align-items:flex-start;gap:.625rem;padding:.875rem 1rem;background:var(--color-error-bg);border:1px solid var(--color-error-border);border-radius:var(--radius-md);margin-bottom:1.25rem;font-size:.875rem;color:#b91c1c;animation:slideIn .2s ease}.alert-error svg{width:16px;height:16px;flex-shrink:0;margin-top:1px}@keyframes slideIn{0%{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}.login-footer{text-align:center;margin-top:1.75rem;font-size:.875rem;color:var(--color-text-secondary)}.login-footer a{font-weight:600}@media (max-width: 900px){.login-page{grid-template-columns:1fr}.login-panel{display:none}.login-form-side{min-height:100vh;background:var(--color-bg);padding:2rem 1.5rem}.login-card{background:var(--color-surface);border-radius:var(--radius-xl);padding:2rem;box-shadow:var(--shadow-md)}}@media (max-width: 480px){.login-form-side{padding:1.5rem 1rem}.login-card{padding:1.5rem 1.25rem;border-radius:var(--radius-lg)}.login-header h1{font-size:1.5rem}.form-options{flex-direction:column;align-items:flex-start}}.sidebar{position:fixed;top:0;left:0;height:100vh;width:var(--sidebar-width);background:var(--sidebar-bg);display:flex;flex-direction:column;z-index:100;transition:width var(--transition);overflow:hidden;border-right:1px solid var(--sidebar-border)}.sidebar--collapsed{width:var(--sidebar-collapsed)}.sidebar-logo{display:flex;align-items:center;gap:.625rem;padding:0 1rem;height:var(--header-height);border-bottom:1px solid var(--sidebar-border);flex-shrink:0}.sidebar-logo-mark{width:34px;height:34px;background:var(--primary);border-radius:var(--radius-md);display:flex;align-items:center;justify-content:center;flex-shrink:0}.sidebar-logo-mark svg{width:18px;height:18px;stroke:#fff}.sidebar-logo-name{font-size:.9375rem;font-weight:700;color:#f1f5f9;white-space:nowrap;overflow:hidden;letter-spacing:-.01em;flex:1}.sidebar-toggle{width:28px;height:28px;background:#ffffff0f;border:1px solid var(--sidebar-border);border-radius:var(--radius-sm);display:flex;align-items:center;justify-content:center;cursor:pointer;color:var(--sidebar-text);flex-shrink:0;transition:background var(--transition),color var(--transition);margin-left:auto}.sidebar-toggle svg{width:15px;height:15px}.sidebar-toggle:hover{background:#ffffff1a;color:var(--sidebar-text-hover)}.sidebar-nav{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:.75rem 0;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.1) transparent}.sidebar-section{margin-bottom:.25rem;padding:0 .625rem}.sidebar-section-label{display:block;font-size:.6875rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--sidebar-section);padding:.75rem .625rem .375rem;white-space:nowrap}.sidebar-list{list-style:none;display:flex;flex-direction:column;gap:2px}.sidebar-link,.sidebar-link-btn{display:flex;align-items:center;gap:.75rem;padding:.5625rem .625rem;border-radius:var(--radius-md);color:var(--sidebar-text);text-decoration:none;font-size:.875rem;font-weight:500;white-space:nowrap;transition:background var(--transition),color var(--transition);position:relative;width:100%}.sidebar-link-btn{background:none;border:none;cursor:pointer;text-align:left;font-family:var(--font)}.sidebar-link:hover,.sidebar-link-btn:hover{background:#ffffff0f;color:var(--sidebar-text-hover);text-decoration:none}.sidebar-link--active{background:var(--sidebar-active-bg);color:var(--sidebar-active-text)}.sidebar-link--active:before{content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);width:3px;height:60%;background:var(--sidebar-active-text);border-radius:0 var(--radius-full) var(--radius-full) 0}.sidebar-link--subopen{background:#4f46e514;color:var(--sidebar-text-hover)}.sidebar-icon{width:20px;height:20px;flex-shrink:0;display:flex;align-items:center;justify-content:center}.sidebar-icon svg{width:20px;height:20px}.sidebar-label{flex:1}.sidebar-chevron{display:flex;align-items:center;transition:transform var(--transition);color:var(--sidebar-section)}.sidebar-chevron svg{width:14px;height:14px}.sidebar-chevron--open{transform:rotate(180deg)}.sidebar-badge{background:var(--primary);color:#fff;font-size:.6875rem;font-weight:700;min-width:20px;height:20px;border-radius:var(--radius-full);display:flex;align-items:center;justify-content:center;padding:0 5px}.sidebar-badge--dot{position:absolute;top:6px;right:6px;width:7px;height:7px;min-width:unset;border-radius:50%;padding:0}.sidebar-submenu{list-style:none;margin:4px 0 4px .75rem;padding:0;border-left:1.5px solid var(--sidebar-border);display:flex;flex-direction:column;gap:1px;overflow:hidden;animation:subSlide .2s var(--ease)}@keyframes subSlide{0%{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}.sidebar-sublink{display:flex;align-items:center;gap:.625rem;padding:.4375rem .625rem .4375rem .875rem;border-radius:0 var(--radius-md) var(--radius-md) 0;color:var(--sidebar-text);text-decoration:none;font-size:.8125rem;font-weight:400;transition:background var(--transition),color var(--transition);white-space:nowrap}.sidebar-sublink:hover{background:#ffffff0d;color:var(--sidebar-text-hover);text-decoration:none}.sidebar-sublink.active{color:var(--sidebar-active-text)}.sidebar-subicon{width:16px;height:16px;flex-shrink:0;display:flex;align-items:center;justify-content:center;opacity:.7}.sidebar-subicon svg{width:15px;height:15px}.sidebar-sublabel{flex:1}.sidebar--collapsed .sidebar-section{padding:0 .5rem}.sidebar--collapsed .sidebar-link,.sidebar--collapsed .sidebar-link-btn{justify-content:center;padding:.625rem}.sidebar--collapsed .sidebar-link:before{display:none}.sidebar-footer{padding:.875rem 1rem;border-top:1px solid var(--sidebar-border);flex-shrink:0}.sidebar-version{font-size:.75rem;color:var(--sidebar-section);white-space:nowrap}@media (max-width: 768px){.sidebar{width:var(--sidebar-width)!important;transform:translate(-100%);transition:transform var(--transition);z-index:200}.sidebar--open{transform:translate(0)}.sidebar-toggle{display:none}}.cpm-box{background:var(--surface);border-radius:var(--radius-lg);width:100%;max-width:420px;box-shadow:var(--shadow-xl, 0 20px 60px rgba(0,0,0,.25));overflow:hidden}.cpm-icon{width:38px;height:38px;border-radius:var(--radius-md);background:var(--primary-light);color:var(--primary);display:flex;align-items:center;justify-content:center;flex-shrink:0}.cpm-icon svg{width:18px;height:18px}.cpm-body{padding:1.25rem;display:flex;flex-direction:column;gap:1rem}.cpm-field{display:flex;flex-direction:column;gap:.375rem}.cpm-label{font-size:.8125rem;font-weight:600;color:var(--text-secondary)}.cpm-req{color:var(--error);margin-left:2px}.cpm-input{border:1.5px solid var(--border);border-radius:var(--radius-sm);padding:.5625rem .75rem;font-size:.875rem;font-family:var(--font);color:var(--text-primary);background:var(--surface);transition:border-color var(--transition)}.cpm-input:focus{outline:none;border-color:var(--primary)}.cpm-error{font-size:.8125rem;color:var(--error);background:var(--error-bg);border-radius:var(--radius-sm);padding:.5rem .75rem;margin:0}.cpm-success{font-size:.875rem;font-weight:600;color:var(--success);background:var(--success-bg);border-radius:var(--radius-sm);padding:.75rem 1rem;margin:0;text-align:center}.asm-box{background:var(--surface);border-radius:var(--radius-lg);width:100%;max-width:440px;box-shadow:var(--shadow-xl, 0 20px 60px rgba(0,0,0,.25));overflow:hidden}.asm-icon{width:38px;height:38px;border-radius:var(--radius-md);background:var(--primary-light);color:var(--primary);display:flex;align-items:center;justify-content:center;flex-shrink:0}.asm-icon svg{width:18px;height:18px}.asm-body{padding:1.25rem;display:flex;flex-direction:column;gap:1rem}.asm-row{display:grid;grid-template-columns:1fr 1fr;gap:.75rem}.asm-field{display:flex;flex-direction:column;gap:.375rem}.asm-label{font-size:.8125rem;font-weight:600;color:var(--text-secondary)}.asm-req{color:var(--error);margin-left:2px}.asm-input{border:1.5px solid var(--border);border-radius:var(--radius-sm);padding:.5625rem .75rem;font-size:.875rem;font-family:var(--font);color:var(--text-primary);background:var(--surface);transition:border-color var(--transition)}.asm-input:focus{outline:none;border-color:var(--primary)}.asm-input--ro{background:var(--bg-subtle, var(--surface-alt, #f5f5f5));color:var(--text-muted);cursor:not-allowed}.asm-error{font-size:.8125rem;color:var(--error);background:var(--error-bg);border-radius:var(--radius-sm);padding:.5rem .75rem;margin:0}.asm-success{font-size:.875rem;font-weight:600;color:var(--success);background:var(--success-bg);border-radius:var(--radius-sm);padding:.75rem 1rem;margin:0;text-align:center}.header{position:sticky;top:0;height:var(--header-height);background:var(--header-bg);border-bottom:1px solid var(--header-border);box-shadow:var(--header-shadow);display:flex;align-items:center;gap:1rem;padding:0 1.5rem;z-index:50}.header-left{display:flex;align-items:center;gap:.875rem;flex-shrink:0}.header-hamburger{width:36px;height:36px;background:none;border:none;border-radius:var(--radius-sm);display:none;align-items:center;justify-content:center;cursor:pointer;color:var(--text-secondary);transition:background var(--transition),color var(--transition)}.header-hamburger svg{width:20px;height:20px}.header-hamburger:hover{background:var(--bg-subtle);color:var(--text-primary)}.header-title-group{display:flex;flex-direction:column;gap:2px}.header-title{font-size:1.0625rem;font-weight:700;color:var(--text-primary);letter-spacing:-.01em;white-space:nowrap;line-height:1.2}.header-dept-badge{display:inline-flex;align-items:center;gap:4px;font-size:.6875rem;font-weight:600;color:var(--primary);background:var(--primary-light);padding:2px 8px;border-radius:var(--radius-full);white-space:nowrap}.header-dept-badge svg{width:11px;height:11px;stroke:var(--primary)}.header-search-wrap{flex:1;max-width:380px;position:relative;display:flex;align-items:center}.header-search-icon{position:absolute;left:.75rem;color:var(--text-muted);display:flex;align-items:center;pointer-events:none}.header-search-icon svg{width:16px;height:16px}.header-search{width:100%;height:38px;padding:0 2.25rem 0 2.375rem;border:1.5px solid var(--border);border-radius:var(--radius-full);font-size:.875rem;color:var(--text-primary);background:var(--bg-subtle);transition:border-color var(--transition),box-shadow var(--transition);font-family:var(--font)}.header-search::placeholder{color:var(--text-muted)}.header-search:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-ring);background:var(--surface)}.header-search::-webkit-search-cancel-button{display:none}.header-search-clear{position:absolute;right:.625rem;background:none;border:none;cursor:pointer;color:var(--text-muted);display:flex;align-items:center;padding:2px;border-radius:var(--radius-xs)}.header-search-clear svg{width:14px;height:14px}.header-right{display:flex;align-items:center;gap:.375rem;margin-left:auto;flex-shrink:0}.header-sep{width:1px;height:28px;background:var(--border);margin:0 .125rem}.header-dept-btn{display:flex;align-items:center;gap:.375rem;height:36px;padding:0 .75rem;background:none;border:1.5px solid var(--border);border-radius:var(--radius-md);cursor:pointer;font-size:.8125rem;font-weight:500;color:var(--text-secondary);font-family:var(--font);transition:border-color var(--transition),background var(--transition),color var(--transition);white-space:nowrap}.header-dept-btn svg{width:15px;height:15px;flex-shrink:0}.header-dept-btn:hover,.header-dept-btn--active{border-color:var(--primary);color:var(--primary);background:var(--primary-light)}.header-dept-label{max-width:120px;overflow:hidden;text-overflow:ellipsis}.header-dept-chevron{width:13px!important;height:13px!important;opacity:.6}.dept-dropdown{width:240px}.dept-list{list-style:none;padding:.375rem 0}.dept-item{width:100%;display:flex;align-items:center;gap:.625rem;padding:.5rem 1rem;background:none;border:none;font-size:.875rem;color:var(--text-secondary);font-family:var(--font);cursor:pointer;transition:background var(--transition),color var(--transition);text-align:left}.dept-item:hover{background:var(--bg-subtle);color:var(--text-primary)}.dept-item--active{color:var(--primary);font-weight:600}.dept-dot{width:7px;height:7px;border-radius:50%;background:var(--border-strong);flex-shrink:0}.dept-item--active .dept-dot{background:var(--primary)}.dept-check{width:14px;height:14px;margin-left:auto;stroke:var(--primary)}.header-icon-btn{width:36px;height:36px;background:none;border:none;border-radius:var(--radius-md);display:flex;align-items:center;justify-content:center;cursor:pointer;color:var(--text-secondary);position:relative;transition:background var(--transition),color var(--transition)}.header-icon-btn svg{width:20px;height:20px}.header-icon-btn:hover{background:var(--bg-subtle);color:var(--text-primary)}.header-badge{position:absolute;top:5px;right:5px;min-width:16px;height:16px;background:var(--error);color:#fff;font-size:.625rem;font-weight:700;border-radius:var(--radius-full);display:flex;align-items:center;justify-content:center;padding:0 3px;border:2px solid var(--header-bg)}.header-profile-btn{display:flex;align-items:center;gap:.5rem;background:none;border:1.5px solid var(--border);border-radius:var(--radius-lg);padding:.3125rem .625rem .3125rem .375rem;cursor:pointer;transition:border-color var(--transition),box-shadow var(--transition)}.header-profile-btn:hover{border-color:var(--border-strong);box-shadow:var(--shadow-xs)}.header-avatar{width:30px;height:30px;background:var(--primary);color:#fff;border-radius:var(--radius-sm);display:flex;align-items:center;justify-content:center;font-size:.75rem;font-weight:700;flex-shrink:0;letter-spacing:.02em}.header-avatar--lg{width:40px;height:40px;font-size:.875rem;border-radius:var(--radius-md)}.header-user-info{display:flex;flex-direction:column;text-align:left}.header-user-name{font-size:.8125rem;font-weight:600;color:var(--text-primary);line-height:1.3}.header-user-role{font-size:.6875rem;color:var(--text-muted);line-height:1.3}.header-chevron{color:var(--text-muted);display:flex;align-items:center}.header-chevron svg{width:14px;height:14px}.header-dropdown-wrap{position:relative}.header-dropdown{position:absolute;top:calc(100% + 8px);right:0;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);animation:dropIn .15s var(--ease);z-index:200;overflow:hidden}@keyframes dropIn{0%{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}.dropdown-header{display:flex;align-items:center;justify-content:space-between;padding:.875rem 1rem .625rem;border-bottom:1px solid var(--border)}.dropdown-title{font-size:.875rem;font-weight:600;color:var(--text-primary)}.dropdown-count{font-size:.75rem;color:var(--primary);font-weight:500}.dropdown-footer{padding:.625rem 1rem;border-top:1px solid var(--border)}.dropdown-link{background:none;border:none;font-size:.8125rem;font-weight:500;color:var(--primary);cursor:pointer;padding:0;font-family:var(--font)}.dropdown-link:hover{text-decoration:underline}.notif-dropdown{width:320px}.notif-list{list-style:none}.notif-item{display:flex;align-items:flex-start;gap:.625rem;padding:.75rem 1rem;transition:background var(--transition);cursor:default}.notif-item:hover{background:var(--bg-subtle)}.notif-item--unread{background:#f8f9ff}.notif-dot{width:7px;height:7px;border-radius:50%;background:var(--primary);flex-shrink:0;margin-top:5px}.notif-item:not(.notif-item--unread) .notif-dot{background:transparent;border:1.5px solid var(--border-strong)}.notif-text{font-size:.8125rem;color:var(--text-primary);line-height:1.4;font-weight:500;margin-bottom:2px}.notif-time{font-size:.75rem;color:var(--text-muted)}.profile-dropdown{width:260px}.profile-dropdown-user{display:flex;gap:.75rem;align-items:center;border-bottom:1px solid var(--border)}.dropdown-user-name{font-size:.875rem;font-weight:600;color:var(--text-primary);margin-bottom:1px}.dropdown-user-email{font-size:.75rem;color:var(--text-muted)}.profile-menu{list-style:none;padding:.375rem 0}.profile-menu-item{width:100%;display:flex;align-items:center;gap:.625rem;padding:.5rem 1rem;background:none;border:none;font-size:.875rem;color:var(--text-secondary);font-family:var(--font);cursor:pointer;transition:background var(--transition),color var(--transition);text-align:left}.profile-menu-item svg{width:16px;height:16px;flex-shrink:0}.profile-menu-item:hover{background:var(--bg-subtle);color:var(--text-primary)}.profile-menu-item--danger{color:var(--error)}.profile-menu-item--danger:hover{background:var(--error-bg);color:var(--error)}.profile-menu-divider{height:1px;background:var(--border);margin:.25rem 0}.profile-menu-section{padding:.375rem 0}@media (max-width: 900px){.header-dept-label{display:none}.header-dept-btn{padding:0 .5rem}}@media (max-width: 768px){.header-hamburger{display:flex}.header-search-wrap{max-width:none}.header-user-info,.header-chevron{display:none}.header-profile-btn{border:none;padding:.25rem}.header-sep{display:none}.header{padding:0 1rem;gap:.75rem}}@media (max-width: 480px){.header-title{font-size:.9375rem}.header-dept-btn{display:none}.notif-dropdown,.profile-dropdown{width:calc(100vw - 2rem);right:-1rem}}.footer{height:var(--footer-height);display:flex;align-items:center;justify-content:center;gap:.5rem;padding:0 1.5rem;border-top:1px solid var(--border);background:var(--surface);flex-shrink:0}.footer-brand{font-size:.8125rem;font-weight:600;color:var(--text-secondary)}.footer-sep{color:var(--text-muted);font-size:.75rem}.footer-version{font-size:.75rem;color:var(--text-muted);background:var(--bg-subtle);border:1px solid var(--border);padding:1px 8px;border-radius:var(--radius-full)}.footer-copy{font-size:.75rem;color:var(--text-muted)}@media (max-width: 480px){.footer-copy{display:none}}.dashboard-root{display:flex;min-height:100vh;background:var(--bg-page)}.dashboard-body{flex:1;display:flex;flex-direction:column;min-width:0;margin-left:var(--sidebar-width);transition:margin-left var(--transition)}.sidebar-collapsed .dashboard-body{margin-left:var(--sidebar-collapsed)}.dashboard-main{flex:1;padding:1.75rem 2rem;min-height:calc(100vh - var(--header-height) - var(--footer-height));display:flex;flex-direction:column}.sidebar-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a80;z-index:99;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);animation:fadeIn .2s var(--ease)}@media (max-width: 1024px){.dashboard-body{margin-left:var(--sidebar-collapsed)}.dashboard-main{padding:1.5rem}}@media (max-width: 768px){.dashboard-body{margin-left:0}.dashboard-main{padding:1rem}}.stat-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.25rem;display:flex;flex-direction:column;gap:.75rem;box-shadow:var(--shadow-sm);transition:box-shadow var(--transition),transform var(--transition);position:relative;overflow:hidden}.stat-card:hover{box-shadow:var(--shadow-md);transform:translateY(-2px)}.stat-card-top{display:flex;align-items:flex-start;justify-content:space-between}.stat-icon{width:44px;height:44px;border-radius:var(--radius-md);display:flex;align-items:center;justify-content:center;flex-shrink:0}.stat-icon svg{width:22px;height:22px}.stat-change{display:inline-flex;align-items:center;gap:2px;font-size:.75rem;font-weight:700;padding:3px 8px;border-radius:var(--radius-full)}.stat-change svg{width:12px;height:12px}.stat-change--up{background:var(--success-bg);color:#065f46}.stat-change--down{background:var(--error-bg);color:#991b1b}.stat-card-body{display:flex;flex-direction:column;gap:2px}.stat-value{font-size:1.5rem;font-weight:800;color:var(--text-primary);letter-spacing:-.03em;line-height:1.1;display:flex;align-items:baseline;gap:4px}.stat-unit{font-size:.6875rem;font-weight:600;color:var(--text-muted);letter-spacing:0}.stat-label{font-size:.8125rem;font-weight:500;color:var(--text-secondary)}.stat-sparkline{display:flex;align-items:flex-end;gap:3px;height:28px}.stat-bar{flex:1;border-radius:2px 2px 0 0;min-height:4px;transition:height .3s var(--ease)}@media (max-width: 480px){.stat-value{font-size:1.25rem}}.activity-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.5rem;box-shadow:var(--shadow-sm)}.section-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1.25rem}.section-title{font-size:1rem;font-weight:700;color:var(--text-primary);letter-spacing:-.01em}.section-link{background:none;border:none;font-size:.8125rem;font-weight:600;color:var(--primary);cursor:pointer;font-family:var(--font);padding:0}.section-link:hover{text-decoration:underline}.activity-list{list-style:none;display:flex;flex-direction:column}.activity-item{display:flex;gap:.875rem}.activity-line-wrap{display:flex;flex-direction:column;align-items:center;flex-shrink:0}.activity-dot{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0}.activity-dot svg{width:15px;height:15px;stroke:#fff}.activity-line{width:1.5px;flex:1;min-height:12px;background:var(--border);margin:4px 0}.activity-content{flex:1;padding-bottom:1rem}.activity-row{display:flex;align-items:flex-start;justify-content:space-between;gap:.5rem;margin-bottom:2px}.activity-title{font-size:.875rem;font-weight:600;color:var(--text-primary)}.activity-time{font-size:.75rem;color:var(--text-muted);white-space:nowrap;flex-shrink:0}.activity-desc{font-size:.8125rem;color:var(--text-secondary);line-height:1.4;margin-bottom:4px}.activity-user{display:flex;align-items:center;gap:4px;font-size:.75rem;color:var(--text-muted);font-weight:500}.activity-user svg{width:12px;height:12px}.alerts-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.5rem;box-shadow:var(--shadow-sm)}.alerts-count{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;background:var(--error);color:#fff;font-size:.6875rem;font-weight:700;border-radius:50%;margin-left:6px}.alerts-list{display:flex;flex-direction:column;gap:.75rem}.alert-item{display:flex;gap:.75rem;padding:.875rem 1rem;border-radius:var(--radius-md);border:1px solid;transition:transform var(--transition)}.alert-item:hover{transform:translate(3px)}.alert-icon svg{width:18px;height:18px;flex-shrink:0;margin-top:1px}.alert-body{flex:1;min-width:0}.alert-row{display:flex;align-items:flex-start;justify-content:space-between;gap:.5rem;margin-bottom:3px}.alert-title{font-size:.875rem;font-weight:700;color:var(--text-primary)}.alert-badge{font-size:.6875rem;font-weight:700;padding:1px 7px;border-radius:var(--radius-full);white-space:nowrap;flex-shrink:0}.alert-desc{font-size:.8125rem;color:var(--text-secondary);line-height:1.4;margin-bottom:6px}.alert-action{background:none;border:none;font-size:.8125rem;font-weight:600;cursor:pointer;padding:0;font-family:var(--font);transition:opacity var(--transition)}.alert-action:hover{opacity:.75}.analytics-section{display:flex;flex-direction:column;gap:1.25rem}.analytics-header{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:1rem}.analytics-title{font-size:1.125rem;font-weight:700;color:var(--text-primary);letter-spacing:-.015em}.analytics-filters{display:flex;flex-direction:column;gap:.5rem;align-items:flex-end}.filter-group{display:flex;gap:4px;flex-wrap:wrap}.filter-btn{padding:5px 12px;border:1.5px solid var(--border);border-radius:var(--radius-full);background:var(--surface);font-size:.8125rem;font-weight:500;color:var(--text-secondary);cursor:pointer;font-family:var(--font);transition:border-color var(--transition),background var(--transition),color var(--transition);white-space:nowrap}.filter-btn:hover{border-color:var(--primary);color:var(--primary)}.filter-btn--active{background:var(--primary);border-color:var(--primary);color:#fff;font-weight:600}.filter-btn--sm{padding:4px 10px;font-size:.75rem}.charts-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1.25rem}.chart-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.25rem;box-shadow:var(--shadow-sm)}.chart-card-header{display:flex;align-items:center;gap:.5rem;margin-bottom:1rem}.chart-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0}.chart-card-title{font-size:.9375rem;font-weight:700;color:var(--text-primary)}.charts-bottom{display:grid;grid-template-columns:1fr;gap:1.25rem}.chart-card--donut{max-width:560px}@media (max-width: 900px){.charts-grid{grid-template-columns:1fr}.analytics-filters{align-items:flex-start}.chart-card--donut{max-width:100%}}@media (max-width: 600px){.filter-group{gap:3px}.filter-btn{padding:4px 8px;font-size:.75rem}}.dg-section{display:flex;flex-direction:column;gap:1rem}.dg-header{display:flex;align-items:center;justify-content:space-between}.dg-title{font-size:1.0625rem;font-weight:700;color:var(--text-primary);margin:0}.dg-link{font-size:.8125rem;font-weight:600;color:var(--primary);text-decoration:none}.dg-link:hover{text-decoration:underline}.dg-empty{color:var(--text-muted);font-size:.875rem}.dg-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem}.dg-card{background:var(--surface);border:1px solid var(--border);border-left:4px solid var(--primary);border-radius:var(--radius-lg);padding:1.125rem}.dg-card-top{display:flex;align-items:flex-start;gap:.75rem}.dg-icon{width:42px;height:42px;border-radius:var(--radius-md);display:flex;align-items:center;justify-content:center;flex-shrink:0}.dg-icon svg{width:20px;height:20px}.dg-card-info{flex:1;min-width:0}.dg-card-name{font-size:.9375rem;font-weight:700;color:var(--text-primary);margin:0}.dg-card-desc{font-size:.75rem;color:var(--text-muted);margin:.125rem 0 0}.dg-status{font-size:.6875rem;font-weight:600;padding:.1875rem .625rem;border-radius:var(--radius-full);white-space:nowrap}.dg-status--active{background:var(--success-bg);color:var(--success)}.dg-status--inactive{background:var(--bg-subtle);color:var(--text-muted)}.dg-card-footer{display:flex;align-items:center;justify-content:space-between;margin-top:.875rem;padding-top:.75rem;border-top:1px solid var(--border)}.dg-members{display:flex;align-items:center;gap:.375rem;font-size:.75rem;color:var(--text-muted)}.dg-members svg{width:13px;height:13px}.dg-access{font-size:.8125rem;font-weight:600;color:var(--primary);text-decoration:none}.dg-access:hover{text-decoration:underline}@media (max-width: 700px){.dg-grid{grid-template-columns:1fr}}.td-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.25rem}.td-period{font-size:.75rem;color:var(--text-muted);font-weight:500}.td-empty{color:var(--text-muted);font-size:.875rem;padding:1rem 0}.td-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.875rem}.td-item{display:flex;align-items:center;gap:.75rem}.td-rank{width:22px;height:22px;border-radius:50%;background:var(--bg-subtle);color:var(--text-secondary);font-size:.6875rem;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0}.td-info{flex:1;min-width:0}.td-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:.25rem}.td-name{font-size:.8125rem;font-weight:600;color:var(--text-primary)}.td-change{font-size:.6875rem;font-weight:700}.td-change--up{color:var(--success)}.td-change--down{color:var(--error)}.td-bar-wrap{height:5px;background:var(--bg-subtle);border-radius:var(--radius-full);overflow:hidden}.td-bar{height:100%;background:var(--primary);border-radius:var(--radius-full)}.td-value{font-size:.8125rem;font-weight:700;color:var(--text-primary);flex-shrink:0;min-width:40px;text-align:right}.ib-root{display:flex;gap:.875rem;padding:.875rem 1.125rem;border-radius:var(--radius-lg);border:1.5px solid;align-items:flex-start}.ib-root--info{background:#eff6ff;border-color:#bfdbfe;color:#1e40af}.ib-root--tip{background:#f0fdf4;border-color:#bbf7d0;color:#065f46}.ib-icon{flex-shrink:0;width:20px;height:20px;margin-top:1px}.ib-icon svg{width:100%;height:100%}.ib-body{flex:1;min-width:0}.ib-title{font-size:.875rem;font-weight:700;margin:0 0 .375rem}.ib-content{font-size:.8125rem;line-height:1.6;opacity:.9}.ib-content ul{margin:.25rem 0 0 1rem;padding:0}.ib-content li{margin-bottom:2px}.ib-content strong{font-weight:700}.ib-close{flex-shrink:0;background:none;border:none;cursor:pointer;padding:2px;opacity:.6;color:inherit;display:flex;align-items:center}.ib-close:hover{opacity:1}.ib-close svg{width:15px;height:15px}.dashboard-home{display:flex;flex-direction:column;gap:2rem;flex:1}.dashboard-welcome{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1rem}.dashboard-welcome-title{font-size:1.375rem;font-weight:800;color:var(--text-primary);letter-spacing:-.025em;margin-bottom:.25rem}.dashboard-welcome-sub{font-size:.875rem;color:var(--text-muted);text-transform:capitalize}.dashboard-welcome-actions{display:flex;gap:.75rem;flex-wrap:wrap}.btn-outline{display:inline-flex;align-items:center;gap:.375rem;height:38px;padding:0 1rem;background:var(--surface);border:1.5px solid var(--border);border-radius:var(--radius-md);font-size:.875rem;font-weight:600;color:var(--text-secondary);cursor:pointer;font-family:var(--font);transition:border-color var(--transition),color var(--transition)}.btn-outline svg{width:15px;height:15px}.btn-outline:hover{border-color:var(--primary);color:var(--primary)}.btn-primary{display:inline-flex;align-items:center;gap:.375rem;height:38px;padding:0 1rem;background:var(--primary);border:none;border-radius:var(--radius-md);font-size:.875rem;font-weight:600;color:#fff;cursor:pointer;font-family:var(--font);transition:background var(--transition),box-shadow var(--transition)}.btn-primary svg{width:15px;height:15px}.btn-primary:hover{background:var(--primary-dark);box-shadow:0 4px 12px #4f46e54d}.stats-grid,.dashboard-kpi-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem}@media (max-width: 600px){.dashboard-kpi-grid{grid-template-columns:1fr}}.section-header-standalone{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem}.section-title-standalone{font-size:1.0625rem;font-weight:700;color:var(--text-primary);letter-spacing:-.01em}.section-link-standalone{background:none;border:none;font-size:.8125rem;font-weight:600;color:var(--primary);cursor:pointer;font-family:var(--font)}.section-link-standalone:hover{text-decoration:underline}.depts-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem}.dashboard-bottom{display:grid;grid-template-columns:1fr 380px;gap:1.25rem;align-items:start}.dashboard-col-main,.dashboard-col-side{display:flex;flex-direction:column;gap:1.25rem}@media (max-width: 1280px){.stats-grid{grid-template-columns:repeat(4,1fr)}}@media (max-width: 1100px){.dashboard-bottom{grid-template-columns:1fr}.dashboard-col-side{display:grid;grid-template-columns:1fr 1fr;gap:1.25rem}}@media (max-width: 900px){.stats-grid{grid-template-columns:repeat(2,1fr)}.depts-grid{grid-template-columns:1fr}}@media (max-width: 600px){.stats-grid{grid-template-columns:1fr 1fr}.dashboard-col-side{grid-template-columns:1fr}.dashboard-welcome{flex-direction:column;align-items:flex-start}}@media (max-width: 400px){.stats-grid{grid-template-columns:1fr}}.dashboard-btn{display:flex;align-items:center;gap:.5rem;padding:.5625rem 1.125rem;border-radius:var(--radius-md);font-size:.8125rem;font-weight:600;cursor:pointer;transition:all .15s}.dashboard-btn--ghost{background:var(--surface);border:1.5px solid var(--border);color:var(--text-primary)}.dashboard-btn--ghost:hover{border-color:var(--primary);color:var(--primary)}.dashboard-main-grid{display:grid;grid-template-columns:1.6fr 1fr;gap:1.25rem;align-items:start}.dashboard-side-col{display:flex;flex-direction:column;gap:1.25rem}@media (max-width: 1100px){.dashboard-main-grid{grid-template-columns:1fr}}.dept-stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem}.dept-stat-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.25rem;display:flex;align-items:center;gap:1rem;box-shadow:var(--shadow-sm);transition:box-shadow var(--transition),transform var(--transition)}.dept-stat-card:hover{box-shadow:var(--shadow-md);transform:translateY(-1px)}.dept-stat-icon{width:48px;height:48px;border-radius:var(--radius-md);display:flex;align-items:center;justify-content:center;flex-shrink:0}.dept-stat-icon svg{width:24px;height:24px}.dept-stat-value{font-size:1.75rem;font-weight:800;color:var(--text-primary);letter-spacing:-.03em;line-height:1}.dept-stat-label{font-size:.8125rem;font-weight:500;color:var(--text-secondary);margin-top:3px}@media (max-width:900px){.dept-stats-grid{grid-template-columns:repeat(2,1fr)}}@media (max-width:480px){.dept-stat-value{font-size:1.375rem}}.dept-filters-wrap{display:flex;flex-direction:column;gap:.625rem}.dept-filters-row{display:flex;gap:.75rem;flex-wrap:wrap;align-items:center}.dept-search-wrap{position:relative;flex:1;min-width:200px;max-width:320px}.dept-search-icon{position:absolute;left:.75rem;top:50%;transform:translateY(-50%);color:var(--text-muted);display:flex;pointer-events:none}.dept-search-icon svg{width:16px;height:16px}.dept-search-input{width:100%;height:38px;padding:0 2.25rem 0 2.375rem;border:1.5px solid var(--border);border-radius:var(--radius-md);font-size:.875rem;color:var(--text-primary);background:var(--surface);font-family:var(--font);transition:border-color var(--transition),box-shadow var(--transition)}.dept-search-input::placeholder{color:var(--text-muted)}.dept-search-input:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-ring)}.dept-search-input::-webkit-search-cancel-button{display:none}.dept-search-clear{position:absolute;right:.625rem;top:50%;transform:translateY(-50%);background:none;border:none;cursor:pointer;color:var(--text-muted);display:flex}.dept-search-clear svg{width:14px;height:14px}.dept-filters-right{display:flex;gap:.625rem;flex-wrap:wrap;align-items:center}.dept-filter-select{height:38px;padding:0 2rem 0 .75rem;border:1.5px solid var(--border);border-radius:var(--radius-md);font-size:.8125rem;color:var(--text-secondary);background:var(--surface);font-family:var(--font);cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .5rem center;background-size:14px;transition:border-color var(--transition)}.dept-filter-select:focus{outline:none;border-color:var(--primary)}.dept-filter-reset{display:flex;align-items:center;gap:5px;height:38px;padding:0 .875rem;background:none;border:1.5px solid var(--border);border-radius:var(--radius-md);font-size:.8125rem;font-weight:600;color:var(--text-secondary);cursor:pointer;font-family:var(--font);white-space:nowrap;transition:border-color var(--transition),color var(--transition)}.dept-filter-reset svg{width:14px;height:14px}.dept-filter-reset:hover{border-color:var(--error);color:var(--error)}.dept-filter-count{font-size:.8125rem;color:var(--text-muted);font-weight:500}@media (max-width:640px){.dept-search-wrap{max-width:100%}.dept-filters-right{width:100%}.dept-filter-select{flex:1}}.dept-table-wrap{overflow-x:auto;border-radius:var(--radius-lg);border:1px solid var(--border);box-shadow:var(--shadow-sm)}.dept-table{width:100%;border-collapse:collapse;background:var(--surface);font-size:.875rem}.dept-table thead{background:var(--bg-subtle);border-bottom:1px solid var(--border)}.dept-table th{padding:.75rem 1rem;text-align:left;font-size:.75rem;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.06em;white-space:nowrap}.dept-table td{padding:.875rem 1rem;border-bottom:1px solid var(--border);vertical-align:middle}.dept-table-row:last-child td{border-bottom:none}.dept-table-row:hover td{background:var(--bg-subtle)}.dept-cell-name{display:flex;align-items:center;gap:.75rem;min-width:180px}.dept-icon-wrap{width:40px;height:40px;border-radius:var(--radius-md);display:flex;align-items:center;justify-content:center;flex-shrink:0}.dept-icon-wrap svg{width:20px;height:20px}.dept-name{font-size:.9375rem;font-weight:700;color:var(--text-primary)}.dept-desc-small{font-size:.75rem;color:var(--text-muted)}.dept-manager{font-size:.875rem;font-weight:500;color:var(--text-secondary);white-space:nowrap}.dept-local{font-size:.875rem;font-weight:600;color:var(--text-secondary);white-space:nowrap}.dept-num{font-size:.9375rem;font-weight:700;color:var(--text-primary)}.dept-date{font-size:.75rem;color:var(--text-muted);white-space:nowrap}.dept-types{display:flex;flex-wrap:wrap;gap:4px;max-width:160px}.dept-actions{display:flex;gap:4px}.dept-action-btn{width:30px;height:30px;border:none;border-radius:var(--radius-sm);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:filter var(--transition)}.dept-action-btn svg{width:14px;height:14px}.dept-action-btn--view{background:var(--info-bg);color:var(--info)}.dept-action-btn--edit{background:var(--warning-bg);color:var(--warning)}.dept-action-btn:hover{filter:brightness(.88)}.dept-table-empty{text-align:center;padding:4rem 2rem;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg)}.dept-table-empty svg{width:48px;height:48px;stroke:var(--text-muted);margin:0 auto 1rem}.dept-table-empty p{font-size:1rem;font-weight:600;color:var(--text-secondary);margin-bottom:.25rem}.dept-table-empty span{font-size:.875rem;color:var(--text-muted)}.dept-cards-mobile{display:none;flex-direction:column;gap:.75rem}.dept-mobile-card{background:var(--surface);border:1px solid var(--border);border-left:4px solid;border-radius:var(--radius-lg);padding:1rem;display:flex;flex-direction:column;gap:.75rem;box-shadow:var(--shadow-sm)}.dept-mobile-top{display:flex;align-items:center;gap:.75rem}.dept-mobile-info{flex:1;min-width:0}.dept-mobile-stats{display:flex;gap:1rem;font-size:.8125rem;color:var(--text-secondary)}.dept-mobile-types{display:flex;flex-wrap:wrap;gap:4px}.dept-mobile-local{display:flex;align-items:center;gap:6px;font-size:.8125rem;font-weight:600;color:var(--text-secondary)}.dept-mobile-local svg{width:14px;height:14px;flex-shrink:0;color:var(--text-muted)}.dept-mobile-actions{display:flex;gap:.5rem}.dept-mobile-btn{flex:1;height:36px;border:none;border-radius:var(--radius-md);display:flex;align-items:center;justify-content:center;gap:6px;font-size:.8125rem;font-weight:600;cursor:pointer;font-family:var(--font)}.dept-mobile-btn svg{width:14px;height:14px}.dept-mobile-btn.dept-action-btn--view{background:var(--info-bg);color:var(--info)}.dept-mobile-btn.dept-action-btn--edit{background:var(--warning-bg);color:var(--warning)}@media (max-width:768px){.dept-table-wrap{display:none}.dept-cards-mobile{display:flex}}.dept-modal-box{background:var(--surface);border-radius:var(--radius-xl);width:100%;max-width:680px;max-height:90vh;display:flex;flex-direction:column;overflow:hidden;box-shadow:var(--shadow-lg);animation:modalSlideUp .2s var(--ease)}.dept-modal-icon{width:40px;height:40px;border-radius:var(--radius-md);display:flex;align-items:center;justify-content:center;flex-shrink:0}.dept-modal-icon svg{width:20px;height:20px}.dept-modal-body{overflow-y:auto;padding:1.5rem;display:flex;flex-direction:column;gap:1.5rem;flex:1;min-height:0}.dm-section{display:flex;flex-direction:column;gap:.875rem}.dm-section-title{display:flex;align-items:center;gap:.5rem;font-size:.875rem;font-weight:700;color:var(--text-secondary);padding-bottom:.5rem;border-bottom:1px solid var(--border)}.dm-section-title svg{width:16px;height:16px}.dm-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:.875rem}.dm-field{display:flex;flex-direction:column;gap:5px}.dm-label{font-size:.8125rem;font-weight:600;color:var(--text-primary)}.dm-req{color:var(--error);margin-left:2px}.dm-hint{font-size:.8125rem;color:var(--text-muted)}.dm-input,.dm-textarea{border:1.5px solid var(--border);border-radius:var(--radius-md);font-size:.875rem;color:var(--text-primary);background:var(--surface);font-family:var(--font);width:100%;transition:border-color var(--transition),box-shadow var(--transition)}.dm-input{height:40px;padding:0 .75rem}.dm-textarea{padding:.625rem .75rem;resize:vertical}.dm-input:focus,.dm-textarea:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-ring)}.dm-input:disabled{background:var(--bg-subtle);color:var(--text-muted);cursor:not-allowed}.dm-error-border{border-color:var(--error)}.dm-error{font-size:.75rem;color:var(--error);font-weight:500}.dm-colors{display:flex;flex-wrap:wrap;gap:8px}.dm-color-btn{width:32px;height:32px;border-radius:50%;border:2.5px solid transparent;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:transform var(--transition)}.dm-color-btn svg{width:14px;height:14px}.dm-color-btn--active{border-color:#fff;outline:2px solid var(--text-secondary);outline-offset:2px;transform:scale(1.1)}.dm-color-btn:hover{transform:scale(1.15)}.dm-icons{display:flex;flex-wrap:wrap;gap:8px}.dm-icon-btn{width:40px;height:40px;border:1.5px solid var(--border);border-radius:var(--radius-md);background:var(--bg-subtle);cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--text-muted);transition:border-color var(--transition),background var(--transition),color var(--transition)}.dm-icon-btn svg{width:18px;height:18px}.dm-icon-btn:hover{border-color:var(--primary);color:var(--primary)}.dm-types-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.625rem}.dm-type-btn{display:flex;align-items:center;gap:6px;height:38px;padding:0 1rem;border:1.5px solid var(--border);border-radius:var(--radius-md);background:var(--bg-subtle);font-size:.875rem;font-weight:500;color:var(--text-secondary);cursor:pointer;font-family:var(--font);transition:border-color var(--transition),background var(--transition),color var(--transition)}.dm-type-btn svg{width:14px;height:14px;flex-shrink:0}.dm-type-btn:hover{border-color:var(--primary);color:var(--primary)}.dm-type-btn--active{font-weight:600}@media (max-width:600px){.dm-grid-2{grid-template-columns:1fr}.dm-types-grid{grid-template-columns:1fr 1fr}.dept-modal-box{max-height:95vh}}.ddm-box{background:var(--surface);border-radius:var(--radius-xl);width:100%;max-width:820px;max-height:92vh;display:flex;flex-direction:column;overflow:hidden;box-shadow:var(--shadow-lg);animation:modalSlideUp .2s var(--ease)}.ddm-header{border-top:3px solid;border-bottom:1px solid var(--border);flex-shrink:0}.ddm-header-top{display:flex;align-items:center;justify-content:space-between;padding:1.25rem 1.5rem .75rem;gap:.75rem;flex-wrap:wrap}.ddm-header-left{display:flex;align-items:center;gap:.75rem;flex:1;flex-wrap:wrap}.ddm-header-right{display:flex;align-items:center;gap:.5rem;flex-shrink:0}.ddm-dept-icon{width:44px;height:44px;border-radius:var(--radius-md);display:flex;align-items:center;justify-content:center;flex-shrink:0}.ddm-dept-icon svg{width:22px;height:22px}.ddm-title{font-size:1.125rem;font-weight:700;color:var(--text-primary);margin-bottom:2px}.ddm-manager{font-size:.8125rem;color:var(--text-muted)}.ddm-edit-btn{display:flex;align-items:center;gap:5px;height:34px;padding:0 .875rem;background:none;border:1.5px solid var(--border);border-radius:var(--radius-md);font-size:.8125rem;font-weight:600;color:var(--text-secondary);cursor:pointer;font-family:var(--font);transition:border-color var(--transition),color var(--transition)}.ddm-edit-btn svg{width:14px;height:14px}.ddm-edit-btn:hover{border-color:var(--primary);color:var(--primary)}.ddm-types-row{display:flex;gap:6px;flex-wrap:wrap;padding:0 1.5rem .75rem}.ddm-tabs{display:flex;gap:0;padding:0 1.5rem;border-top:1px solid var(--border);overflow-x:auto}.ddm-tab{display:flex;align-items:center;height:42px;padding:0 1rem;background:none;border:none;border-bottom:2.5px solid transparent;font-size:.875rem;font-weight:500;color:var(--text-muted);cursor:pointer;font-family:var(--font);white-space:nowrap;transition:color var(--transition);margin-bottom:-1px}.ddm-tab:hover{color:var(--text-primary)}.ddm-tab--active{font-weight:600}.ddm-body{overflow-y:auto;flex:1;min-height:0}.ddm-tab-info,.ddm-tab-content{padding:1.5rem;display:flex;flex-direction:column;gap:1.25rem}.ddm-meta-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.75rem}.ddm-meta-item{background:var(--bg-subtle);border:1px solid var(--border);border-radius:var(--radius-md);padding:.75rem 1rem}.ddm-meta-label{font-size:.6875rem;color:var(--text-muted);font-weight:500;text-transform:uppercase;letter-spacing:.05em;margin-bottom:3px}.ddm-meta-value{font-size:.9375rem;font-weight:600;color:var(--text-primary)}.ddm-info-desc{background:var(--bg-subtle);border:1px solid var(--border);border-radius:var(--radius-md);padding:1rem}.ddm-company-block{display:flex;align-items:center;gap:.875rem;background:var(--primary-light);border:1px solid var(--primary);border-radius:var(--radius-md);padding:.875rem 1rem}.ddm-company-icon{width:38px;height:38px;border-radius:var(--radius-sm);background:var(--surface);color:var(--primary);display:flex;align-items:center;justify-content:center;flex-shrink:0}.ddm-company-icon svg{width:18px;height:18px}.ddm-company-name{font-size:.9375rem;font-weight:700;color:var(--text-primary)}.ddm-company-city{font-size:.8125rem;color:var(--text-muted);margin-top:2px}.ddm-desc-label{font-size:.75rem;color:var(--text-muted);font-weight:600;text-transform:uppercase;letter-spacing:.05em;margin-bottom:5px}.ddm-desc-text{font-size:.9375rem;color:var(--text-secondary);line-height:1.6}.ddm-mini-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:.75rem}.ddm-mini-stat{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);padding:.875rem;text-align:center}.ddm-mini-value{font-size:1.5rem;font-weight:800;color:var(--text-primary);letter-spacing:-.03em;line-height:1}.ddm-mini-label{font-size:.75rem;color:var(--text-muted);margin-top:3px}.ddm-section-top{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.ddm-section-note{font-size:.8125rem;color:var(--text-muted)}.ddm-add-btn{display:flex;align-items:center;gap:4px;height:32px;padding:0 .875rem;background:var(--primary);color:#fff;border:none;border-radius:var(--radius-sm);font-size:.8125rem;font-weight:600;cursor:pointer;font-family:var(--font);transition:background var(--transition);white-space:nowrap;flex-shrink:0}.ddm-add-btn svg{width:14px;height:14px}.ddm-add-btn:hover{background:var(--primary-dark)}.ddm-cat-list{display:flex;flex-direction:column;gap:.625rem}.ddm-cat-item{display:flex;align-items:center;gap:.875rem;padding:.875rem 1rem;background:var(--bg-subtle);border:1px solid var(--border);border-left:3px solid;border-radius:var(--radius-md)}.ddm-cat-icon{width:36px;height:36px;border-radius:var(--radius-sm);display:flex;align-items:center;justify-content:center;flex-shrink:0}.ddm-cat-icon svg{width:17px;height:17px}.ddm-cat-info{flex:1}.ddm-cat-name{font-size:.9375rem;font-weight:600;color:var(--text-primary)}.ddm-cat-desc{font-size:.8125rem;color:var(--text-muted)}.ddm-cat-count{font-size:.8125rem;font-weight:700;white-space:nowrap}.ddm-prod-group{display:flex;flex-direction:column;gap:.5rem}.ddm-prod-cat-title{display:flex;align-items:center;gap:6px;font-size:.875rem;font-weight:700;padding-bottom:.375rem;border-bottom:1px solid var(--border)}.ddm-prod-cat-title svg{width:15px;height:15px}.ddm-prod-table{overflow-x:auto;border:1px solid var(--border);border-radius:var(--radius-md)}.ddm-prod-table table{width:100%;border-collapse:collapse;font-size:.875rem}.ddm-prod-table th{padding:.5rem .875rem;text-align:left;font-size:.6875rem;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.06em;background:var(--bg-subtle);border-bottom:1px solid var(--border)}.ddm-prod-table td{padding:.625rem .875rem;border-bottom:1px solid var(--border)}.ddm-prod-table tr:last-child td{border-bottom:none}.ddm-prod-table tr:hover td{background:var(--bg-subtle)}.ddm-prod-name{font-weight:600;color:var(--text-primary)}.ddm-prod-price{font-weight:600;color:var(--text-secondary);white-space:nowrap}.ddm-prod-unit{font-size:.8125rem;color:var(--text-muted)}.ddm-stock-badge{display:inline-block;padding:2px 8px;border-radius:var(--radius-full);font-size:.75rem;font-weight:700;background:var(--success-bg);color:#065f46}.ddm-stock-mid{background:var(--warning-bg);color:#92400e}.ddm-stock-low{background:var(--error-bg);color:#991b1b}.ddm-empty{text-align:center;color:var(--text-muted);padding:2rem;font-style:italic}.ddm-users-list{list-style:none;display:flex;flex-direction:column;gap:.625rem}.ddm-user-item{display:flex;align-items:center;gap:.875rem;padding:.875rem 1rem;background:var(--bg-subtle);border:1px solid var(--border);border-radius:var(--radius-md)}.ddm-user-item--manager{background:var(--primary-light);border-color:var(--primary)}.ddm-user-avatar{width:38px;height:38px;border-radius:var(--radius-sm);display:flex;align-items:center;justify-content:center;font-size:.8125rem;font-weight:700;color:#fff;flex-shrink:0}.ddm-user-info{flex:1}.ddm-user-name{font-size:.9375rem;font-weight:600;color:var(--text-primary);display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.ddm-user-role{font-size:.8125rem;color:var(--text-muted)}.ddm-manager-badge{font-size:.6875rem;font-weight:700;padding:2px 8px;background:var(--primary);color:#fff;border-radius:var(--radius-full)}.ddm-user-status{font-size:.75rem;font-weight:600;padding:3px 10px;border-radius:var(--radius-full)}.ddm-analytics-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:.75rem}.ddm-analytics-card{background:var(--surface);border:1px solid var(--border);border-top:3px solid;border-radius:var(--radius-md);padding:1rem;text-align:center}.ddm-analytics-value{font-size:1.25rem;font-weight:800;letter-spacing:-.03em;margin-bottom:4px}.ddm-analytics-label{font-size:.75rem;color:var(--text-muted);font-weight:500}.ddm-growth-card{background:var(--bg-subtle);border:1px solid var(--border);border-radius:var(--radius-md);padding:1rem 1.25rem;display:flex;align-items:center;gap:1rem;flex-wrap:wrap}.ddm-growth-label{font-size:.875rem;font-weight:600;color:var(--text-secondary)}.ddm-growth-value{display:flex;align-items:center;gap:4px;font-size:1.25rem;font-weight:800;margin-left:auto}.ddm-growth-value svg{width:18px;height:18px}.ddm-growth--up{color:var(--success)}.ddm-growth--down{color:var(--error)}.ddm-growth-bar-bg{width:100%;height:6px;background:var(--border);border-radius:var(--radius-full);overflow:hidden}.ddm-growth-bar-fill{height:100%;border-radius:var(--radius-full);transition:width .6s var(--ease)}.ddm-analytics-note{font-size:.8125rem;color:var(--text-muted);font-style:italic;text-align:center}@media (max-width:680px){.ddm-meta-grid{grid-template-columns:1fr}.ddm-mini-stats,.ddm-analytics-grid{grid-template-columns:repeat(2,1fr)}.ddm-box{max-height:95vh}}.dp-page{display:flex;flex-direction:column;gap:1.5rem;flex:1}.dp-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1rem}.dp-title{font-size:1.375rem;font-weight:800;color:var(--text-primary);letter-spacing:-.025em;margin-bottom:2px}.dp-subtitle{font-size:.875rem;color:var(--text-muted)}.dp-add-btn{display:inline-flex;align-items:center;gap:.5rem;height:40px;padding:0 1.25rem;background:var(--primary);color:#fff;border:none;border-radius:var(--radius-md);font-size:.875rem;font-weight:600;cursor:pointer;font-family:var(--font);transition:background var(--transition),box-shadow var(--transition);white-space:nowrap}.dp-add-btn svg{width:16px;height:16px}.dp-add-btn:hover{background:var(--primary-dark);box-shadow:0 4px 12px #4f46e54d}.dp-global-banner{background:linear-gradient(135deg,#eff6ff,#f0fdf4);border:1px solid #BFDBFE;border-radius:var(--radius-lg);padding:1rem 1.25rem;display:flex;align-items:center;gap:1rem;flex-wrap:wrap}.dp-global-banner-icon{width:40px;height:40px;background:var(--info-bg);border-radius:var(--radius-md);display:flex;align-items:center;justify-content:center;flex-shrink:0}.dp-global-banner-icon svg{width:20px;height:20px;stroke:var(--info)}.dp-global-banner-body{flex:1;min-width:0}.dp-global-banner-title{font-size:.9375rem;font-weight:700;color:var(--info);margin-bottom:3px}.dp-global-banner-desc{font-size:.8125rem;color:#1e40af;line-height:1.5}.dp-global-badge{font-size:.75rem;font-weight:700;padding:4px 12px;background:var(--info);color:#fff;border-radius:var(--radius-full);white-space:nowrap;flex-shrink:0}.dp-filters-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.25rem;box-shadow:var(--shadow-sm)}.dept-status-badge{display:inline-flex;align-items:center;gap:5px;padding:3px 10px;border-radius:var(--radius-full);font-size:.75rem;font-weight:600;white-space:nowrap}.dept-status-badge--actif{background:var(--success-bg);color:#065f46}.dept-status-badge--inactif{background:var(--error-bg);color:#991b1b}.dept-status-dot{width:6px;height:6px;border-radius:50%;flex-shrink:0;background:currentColor}.dept-type-badge{font-size:.6875rem;font-weight:600;padding:2px 8px;background:var(--bg-subtle);border:1px solid var(--border);color:var(--text-secondary);border-radius:var(--radius-full);white-space:nowrap}@media (max-width:640px){.dp-header{flex-direction:column;align-items:flex-start}.dp-add-btn{width:100%;justify-content:center}}.company-stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}.company-stat-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.25rem;display:flex;align-items:center;gap:1rem;box-shadow:var(--shadow-sm);transition:box-shadow var(--transition),transform var(--transition)}.company-stat-card:hover{box-shadow:var(--shadow-md);transform:translateY(-1px)}.company-stat-icon{width:48px;height:48px;border-radius:var(--radius-md);display:flex;align-items:center;justify-content:center;flex-shrink:0}.company-stat-icon svg{width:24px;height:24px}.company-stat-value{font-size:1.75rem;font-weight:800;color:var(--text-primary);letter-spacing:-.03em;line-height:1}.company-stat-label{font-size:.8125rem;font-weight:500;color:var(--text-secondary);margin-top:3px}@media (max-width:900px){.company-stats-grid{grid-template-columns:repeat(2,1fr)}}@media (max-width:480px){.company-stats-grid{grid-template-columns:1fr}.company-stat-value{font-size:1.375rem}}.company-table-wrap{overflow-x:auto;border-radius:var(--radius-lg);border:1px solid var(--border);box-shadow:var(--shadow-sm)}.company-table{width:100%;border-collapse:collapse;background:var(--surface);font-size:.875rem}.company-table thead{background:var(--bg-subtle);border-bottom:1px solid var(--border)}.company-table th{padding:.75rem 1rem;text-align:left;font-size:.75rem;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.06em;white-space:nowrap}.company-table td{padding:.875rem 1rem;border-bottom:1px solid var(--border);vertical-align:middle}.company-table-row:last-child td{border-bottom:none}.company-table-row:hover td{background:var(--bg-subtle)}.company-cell-name{display:flex;align-items:center;gap:.75rem;min-width:180px}.company-icon-wrap{width:40px;height:40px;border-radius:var(--radius-md);display:flex;align-items:center;justify-content:center;flex-shrink:0;background:var(--primary-light);color:var(--primary)}.company-icon-wrap svg{width:20px;height:20px}.company-name{font-size:.9375rem;font-weight:700;color:var(--text-primary)}.company-country-small{font-size:.75rem;color:var(--text-muted)}.company-city{font-size:.875rem;font-weight:500;color:var(--text-secondary);white-space:nowrap}.company-num{font-size:.9375rem;font-weight:700;color:var(--text-primary)}.company-date{font-size:.75rem;color:var(--text-muted);white-space:nowrap}.company-status-badge{display:inline-flex;align-items:center;gap:5px;padding:3px 10px;border-radius:var(--radius-full);font-size:.75rem;font-weight:600;white-space:nowrap}.company-status-badge--actif{background:var(--success-bg);color:#065f46}.company-status-badge--inactif{background:var(--error-bg);color:#991b1b}.company-status-dot{width:6px;height:6px;border-radius:50%;flex-shrink:0;background:currentColor}.company-actions{display:flex;gap:4px}.company-action-btn{width:30px;height:30px;border:none;border-radius:var(--radius-sm);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:filter var(--transition)}.company-action-btn svg{width:14px;height:14px}.company-action-btn--view{background:var(--info-bg);color:var(--info)}.company-action-btn--edit{background:var(--warning-bg);color:var(--warning)}.company-action-btn:hover{filter:brightness(.88)}.company-table-empty{text-align:center;padding:4rem 2rem;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg)}.company-table-empty svg{width:48px;height:48px;stroke:var(--text-muted);margin:0 auto 1rem}.company-table-empty p{font-size:1rem;font-weight:600;color:var(--text-secondary);margin-bottom:.25rem}.company-table-empty span{font-size:.875rem;color:var(--text-muted)}.company-cards-mobile{display:none;flex-direction:column;gap:.75rem}.company-mobile-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1rem;display:flex;flex-direction:column;gap:.75rem;box-shadow:var(--shadow-sm)}.company-mobile-top{display:flex;align-items:center;gap:.75rem}.company-mobile-info{flex:1;min-width:0}.company-mobile-stats{display:flex;gap:1rem;font-size:.8125rem;color:var(--text-secondary)}.company-mobile-actions{display:flex;gap:.5rem}.company-mobile-btn{flex:1;height:36px;border:none;border-radius:var(--radius-md);display:flex;align-items:center;justify-content:center;gap:6px;font-size:.8125rem;font-weight:600;cursor:pointer;font-family:var(--font)}.company-mobile-btn svg{width:14px;height:14px}.company-mobile-btn.company-action-btn--view{background:var(--info-bg);color:var(--info)}.company-mobile-btn.company-action-btn--edit{background:var(--warning-bg);color:var(--warning)}@media (max-width:768px){.company-table-wrap{display:none}.company-cards-mobile{display:flex}}.company-modal-box{background:var(--surface);border-radius:var(--radius-xl);width:100%;max-width:560px;max-height:90vh;display:flex;flex-direction:column;overflow:hidden;box-shadow:var(--shadow-lg);animation:companyModalSlideUp .2s var(--ease)}@keyframes companyModalSlideUp{0%{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}.company-modal-icon{width:40px;height:40px;border-radius:var(--radius-md);display:flex;align-items:center;justify-content:center;flex-shrink:0;background:var(--primary-light);color:var(--primary)}.company-modal-icon svg{width:20px;height:20px}.company-modal-body{overflow-y:auto;padding:1.5rem;display:flex;flex-direction:column;gap:1.125rem;flex:1;min-height:0}.cm-input,.cm-textarea{border:1.5px solid var(--border);border-radius:var(--radius-md);font-size:.875rem;color:var(--text-primary);background:var(--surface);font-family:var(--font);width:100%;transition:border-color var(--transition),box-shadow var(--transition)}.cm-input:focus,.cm-textarea:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-ring)}.cm-error-border{border-color:var(--error)}@media (max-width:600px){.cm-grid-2{grid-template-columns:1fr}}.cdm-box{background:var(--surface);border-radius:var(--radius-xl);width:100%;max-width:600px;max-height:90vh;display:flex;flex-direction:column;overflow:hidden;box-shadow:var(--shadow-lg);animation:cdmSlideUp .2s var(--ease)}@keyframes cdmSlideUp{0%{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}.cdm-header{border-top:3px solid var(--primary);border-bottom:1px solid var(--border);flex-shrink:0}.cdm-header-top{display:flex;align-items:center;justify-content:space-between;padding:1.25rem 1.5rem;gap:.75rem;flex-wrap:wrap}.cdm-header-left{display:flex;align-items:center;gap:.75rem;flex:1;flex-wrap:wrap}.cdm-header-right{display:flex;align-items:center;gap:.5rem;flex-shrink:0}.cdm-icon{width:44px;height:44px;border-radius:var(--radius-md);display:flex;align-items:center;justify-content:center;flex-shrink:0;background:var(--primary-light);color:var(--primary)}.cdm-title{font-size:1.125rem;font-weight:700;color:var(--text-primary);margin-bottom:2px}.cdm-subtitle{font-size:.8125rem;color:var(--text-muted)}.cdm-status-badge{display:inline-flex;align-items:center;gap:5px;padding:3px 10px;border-radius:var(--radius-full);font-size:.75rem;font-weight:600;white-space:nowrap}.cdm-status-badge--actif{background:var(--success-bg);color:#065f46}.cdm-status-badge--inactif{background:var(--error-bg);color:#991b1b}.cdm-status-dot{width:6px;height:6px;border-radius:50%;flex-shrink:0;background:currentColor}.cdm-body{overflow-y:auto;flex:1;min-height:0;padding:1.5rem;display:flex;flex-direction:column;gap:1.25rem}.cdm-meta-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.75rem}.cdm-meta-item{background:var(--bg-subtle);border:1px solid var(--border);border-radius:var(--radius-md);padding:.75rem 1rem}.cdm-meta-label{font-size:.6875rem;color:var(--text-muted);font-weight:500;text-transform:uppercase;letter-spacing:.05em;margin-bottom:3px}.cdm-meta-value{font-size:.9375rem;font-weight:600;color:var(--text-primary)}.cdm-desc{background:var(--bg-subtle);border:1px solid var(--border);border-radius:var(--radius-md);padding:1rem}.cdm-desc-label{font-size:.75rem;color:var(--text-muted);font-weight:600;text-transform:uppercase;letter-spacing:.05em;margin-bottom:5px}.cdm-mini-stat{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);padding:.875rem;text-align:center}.cdm-mini-value{font-size:1.5rem;font-weight:800;color:var(--text-primary);letter-spacing:-.03em;line-height:1}.cdm-mini-label{font-size:.75rem;color:var(--text-muted);margin-top:3px}@media (max-width:640px){.cdm-meta-grid{grid-template-columns:1fr}.cdm-mini-stats{grid-template-columns:repeat(3,1fr)}.cdm-box{max-height:95vh}}.cp-title{font-size:1.375rem;font-weight:800;color:var(--text-primary);letter-spacing:-.025em;margin-bottom:2px}.cp-subtitle{font-size:.875rem;color:var(--text-muted)}@media (max-width:640px){.cp-header{flex-direction:column;align-items:flex-start}.cp-add-btn{width:100%;justify-content:center}}.cat-stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem}.cat-stat-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.25rem;display:flex;align-items:center;gap:1rem;box-shadow:var(--shadow-sm);transition:box-shadow var(--transition),transform var(--transition)}.cat-stat-card:hover{box-shadow:var(--shadow-md);transform:translateY(-1px)}.cat-stat-icon{width:48px;height:48px;border-radius:var(--radius-md);display:flex;align-items:center;justify-content:center;flex-shrink:0}.cat-stat-icon svg{width:24px;height:24px}.cat-stat-value{font-size:1.75rem;font-weight:800;color:var(--text-primary);letter-spacing:-.03em;line-height:1}.cat-stat-label{font-size:.8125rem;font-weight:500;color:var(--text-secondary);margin-top:3px}@media (max-width:900px){.cat-stats-grid{grid-template-columns:repeat(2,1fr)}}@media (max-width:480px){.cat-stat-value{font-size:1.375rem}}.cat-filters-wrap{display:flex;flex-direction:column;gap:.625rem}.cat-filters-row{display:flex;gap:.75rem;flex-wrap:wrap;align-items:center}.cat-search-wrap{position:relative;flex:1;min-width:200px;max-width:340px}.cat-search-icon{position:absolute;left:.75rem;top:50%;transform:translateY(-50%);color:var(--text-muted);display:flex;pointer-events:none}.cat-search-icon svg{width:16px;height:16px}.cat-search-input{width:100%;height:38px;padding:0 2.25rem 0 2.375rem;border:1.5px solid var(--border);border-radius:var(--radius-md);font-size:.875rem;color:var(--text-primary);background:var(--surface);font-family:var(--font);transition:border-color var(--transition),box-shadow var(--transition)}.cat-search-input::placeholder{color:var(--text-muted)}.cat-search-input:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-ring)}.cat-search-input::-webkit-search-cancel-button{display:none}.cat-search-clear{position:absolute;right:.625rem;top:50%;transform:translateY(-50%);background:none;border:none;cursor:pointer;color:var(--text-muted);display:flex}.cat-search-clear svg{width:14px;height:14px}.cat-filters-selects{display:flex;gap:.625rem;flex-wrap:wrap;align-items:center}.cat-filter-select{height:38px;padding:0 2rem 0 .75rem;border:1.5px solid var(--border);border-radius:var(--radius-md);font-size:.8125rem;color:var(--text-secondary);background:var(--surface);font-family:var(--font);cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .5rem center;background-size:14px;transition:border-color var(--transition)}.cat-filter-select:focus{outline:none;border-color:var(--primary)}.cat-filter-reset{display:flex;align-items:center;gap:5px;height:38px;padding:0 .875rem;background:none;border:1.5px solid var(--border);border-radius:var(--radius-md);font-size:.8125rem;font-weight:600;color:var(--text-secondary);cursor:pointer;font-family:var(--font);white-space:nowrap;transition:border-color var(--transition),color var(--transition)}.cat-filter-reset svg{width:14px;height:14px}.cat-filter-reset:hover{border-color:var(--error);color:var(--error)}.cat-filter-count{font-size:.8125rem;color:var(--text-muted);font-weight:500}@media (max-width:640px){.cat-search-wrap{max-width:100%}.cat-filters-selects{width:100%}.cat-filter-select{flex:1}}.cat-table-wrap{overflow-x:auto;border-radius:var(--radius-lg);border:1px solid var(--border);box-shadow:var(--shadow-sm)}.cat-table{width:100%;border-collapse:collapse;background:var(--surface);font-size:.875rem}.cat-table thead{background:var(--bg-subtle);border-bottom:1px solid var(--border)}.cat-table th{padding:.75rem 1rem;text-align:left;font-size:.75rem;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.06em;white-space:nowrap}.cat-table td{padding:.875rem 1rem;border-bottom:1px solid var(--border);vertical-align:middle}.cat-table-row:last-child td{border-bottom:none}.cat-table-row:hover td{background:var(--bg-subtle)}.cat-cell-name{display:flex;align-items:center;gap:.75rem;min-width:160px}.cat-icon-bubble{width:36px;height:36px;border-radius:var(--radius-sm);display:flex;align-items:center;justify-content:center;flex-shrink:0}.cat-icon-bubble svg{width:17px;height:17px}.cat-icon-bubble--sm{width:32px;height:32px}.cat-name{font-size:.9375rem;font-weight:700;color:var(--text-primary)}.cat-dept-badge{display:inline-block;padding:3px 10px;border-radius:var(--radius-full);font-size:.75rem;font-weight:600;white-space:nowrap}.cat-local{font-size:.875rem;font-weight:600;color:var(--text-secondary);white-space:nowrap}.cat-num{font-size:1rem;font-weight:700;color:var(--text-primary)}.cat-revenue{font-size:.875rem;font-weight:600;color:var(--text-secondary);white-space:nowrap}.cat-date{font-size:.75rem;color:var(--text-muted);white-space:nowrap}.cat-status-badge{display:inline-flex;align-items:center;gap:5px;padding:3px 10px;border-radius:var(--radius-full);font-size:.75rem;font-weight:600;white-space:nowrap}.cat-status--actif{background:var(--success-bg);color:#065f46}.cat-status--inactif{background:var(--error-bg);color:#991b1b}.cat-status-dot{width:6px;height:6px;border-radius:50%;flex-shrink:0;background:currentColor}.cat-actions{display:flex;gap:4px}.cat-action-btn{width:30px;height:30px;border:none;border-radius:var(--radius-sm);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:filter var(--transition)}.cat-action-btn svg{width:14px;height:14px}.cat-btn--view{background:var(--info-bg);color:var(--info)}.cat-btn--edit{background:var(--warning-bg);color:var(--warning)}.cat-action-btn:hover{filter:brightness(.88)}.cat-table-empty{text-align:center;padding:4rem 2rem;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg)}.cat-table-empty svg{width:48px;height:48px;stroke:var(--text-muted);margin:0 auto 1rem}.cat-table-empty p{font-size:1rem;font-weight:600;color:var(--text-secondary);margin-bottom:.25rem}.cat-table-empty span{font-size:.875rem;color:var(--text-muted)}.cat-cards-mobile{display:none;flex-direction:column;gap:.75rem}.cat-mobile-card{background:var(--surface);border:1px solid var(--border);border-left:4px solid;border-radius:var(--radius-lg);padding:1rem;display:flex;flex-direction:column;gap:.625rem;box-shadow:var(--shadow-sm)}.cat-mobile-top{display:flex;align-items:center;gap:.75rem}.cat-mobile-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}.cat-mobile-local{display:flex;align-items:center;gap:6px;font-size:.8125rem;font-weight:600;color:var(--text-secondary)}.cat-mobile-local svg{width:14px;height:14px;flex-shrink:0;color:var(--text-muted)}.cat-mobile-desc{font-size:.8125rem;color:var(--text-muted);line-height:1.4}.cat-mobile-meta{display:flex;gap:1.25rem;font-size:.8125rem;color:var(--text-secondary)}.cat-mobile-actions{display:flex;gap:.5rem}.cat-mobile-btn{flex:1;height:34px;border:none;border-radius:var(--radius-md);display:flex;align-items:center;justify-content:center;gap:5px;font-size:.8125rem;font-weight:600;cursor:pointer;font-family:var(--font)}.cat-mobile-btn svg{width:13px;height:13px}.cat-mobile-btn.cat-btn--view{background:var(--info-bg);color:var(--info)}.cat-mobile-btn.cat-btn--edit{background:var(--warning-bg);color:var(--warning)}@media (max-width:768px){.cat-table-wrap{display:none}.cat-cards-mobile{display:flex}}.cat-modal-box{background:var(--surface);border-radius:var(--radius-xl);width:100%;max-width:620px;max-height:90vh;display:flex;flex-direction:column;overflow:hidden;box-shadow:var(--shadow-lg);animation:modalSlideUp .2s var(--ease)}.cat-modal-icon{width:40px;height:40px;border-radius:var(--radius-md);display:flex;align-items:center;justify-content:center;flex-shrink:0}.cat-modal-icon svg{width:20px;height:20px}.cat-modal-body{overflow-y:auto;padding:1.5rem;display:flex;flex-direction:column;gap:1.5rem;flex:1;min-height:0}.cm-section{display:flex;flex-direction:column;gap:.875rem}.cm-section-title{display:flex;align-items:center;gap:.5rem;font-size:.875rem;font-weight:700;color:var(--text-secondary);padding-bottom:.5rem;border-bottom:1px solid var(--border)}.cm-section-title svg{width:16px;height:16px}.cm-field{display:flex;flex-direction:column;gap:5px}.cm-input{height:40px;padding:0 .75rem}.cm-select{height:40px;padding:0 2rem 0 .75rem;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .5rem center;background-size:14px;cursor:pointer}.cm-error{font-size:.75rem;color:var(--error);font-weight:500}.cm-hierarchy-banner{display:flex;align-items:center;gap:.625rem;padding:.875rem 1rem;background:var(--bg-subtle);border:1px solid var(--border);border-radius:var(--radius-md);flex-wrap:wrap}.cm-hier-item{display:flex;align-items:center;gap:5px;font-size:.8125rem;font-weight:600;color:var(--text-muted)}.cm-hier-item svg{width:14px;height:14px}.cm-hier-dept{color:var(--primary)}.cm-hier-prod{color:var(--text-muted)}.cm-hier-arrow{width:14px;height:14px;color:var(--border-strong);flex-shrink:0}.cm-colors{display:flex;flex-wrap:wrap;gap:8px}.cm-color-btn{width:32px;height:32px;border-radius:50%;border:2.5px solid transparent;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:transform var(--transition)}.cm-color-btn svg{width:14px;height:14px}.cm-color-btn--active{border-color:#fff;outline:2px solid var(--text-secondary);outline-offset:2px;transform:scale(1.1)}.cm-color-btn:hover{transform:scale(1.12)}.cm-arch-note{display:flex;gap:.75rem;padding:.875rem 1rem;background:var(--info-bg);border:1px solid #BFDBFE;border-radius:var(--radius-md)}.cm-arch-note>svg{width:18px;height:18px;stroke:var(--info);flex-shrink:0;margin-top:1px}.cm-arch-note-title{font-size:.875rem;font-weight:700;color:var(--info);margin-bottom:3px}.cm-arch-note-desc{font-size:.8125rem;color:#1e40af;line-height:1.5}@media (max-width:560px){.cm-grid-2{grid-template-columns:1fr}.cat-modal-box{max-height:95vh}}.cdm-box{background:var(--surface);border-radius:var(--radius-xl);width:100%;max-width:720px;max-height:90vh;display:flex;flex-direction:column;overflow:hidden;box-shadow:var(--shadow-lg);animation:modalSlideUp .2s var(--ease)}.cdm-header{border-top:3px solid;border-bottom:1px solid var(--border);flex-shrink:0}.cdm-header-main{display:flex;align-items:flex-start;gap:.875rem;padding:1.25rem 1.5rem .875rem;flex-wrap:wrap}.cdm-icon{width:44px;height:44px;border-radius:var(--radius-md);display:flex;align-items:center;justify-content:center;flex-shrink:0}.cdm-icon svg{width:22px;height:22px}.cdm-title-block{flex:1;min-width:0}.cdm-breadcrumb{display:flex;align-items:center;gap:5px;margin-bottom:5px;flex-wrap:wrap}.cdm-breadcrumb svg{width:12px;height:12px;stroke:var(--text-muted)}.cdm-breadcrumb-dept{font-size:.75rem;font-weight:700;padding:2px 8px;border-radius:var(--radius-full)}.cdm-breadcrumb-cat{font-size:1rem;font-weight:700;color:var(--text-primary)}.cdm-description{font-size:.8125rem;color:var(--text-secondary);line-height:1.4}.cdm-header-actions{display:flex;align-items:center;gap:.5rem;flex-shrink:0;flex-wrap:wrap}.cdm-status{display:inline-flex;align-items:center;gap:5px;padding:3px 10px;border-radius:var(--radius-full);font-size:.75rem;font-weight:600}.cdm-status--actif{background:var(--success-bg);color:#065f46}.cdm-status--inactif{background:var(--error-bg);color:#991b1b}.cdm-status-dot{width:6px;height:6px;border-radius:50%;background:currentColor}.cdm-tab--active{font-weight:600}.cdm-tab-content{padding:1.5rem;display:flex;flex-direction:column;gap:1.25rem}.cdm-mini-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:.75rem}.cdm-mini-stat{background:var(--bg-subtle);border:1px solid var(--border);border-radius:var(--radius-md);padding:.875rem;text-align:center}.cdm-mini-value{font-size:1.25rem;font-weight:800;letter-spacing:-.02em;line-height:1}.cdm-mini-label{font-size:.75rem;color:var(--text-muted);margin-top:3px;font-weight:500}.cdm-block-label{font-size:.75rem;color:var(--text-muted);font-weight:600;text-transform:uppercase;letter-spacing:.05em;margin-bottom:5px}.cdm-company-block{display:flex;align-items:center;gap:.875rem;background:var(--primary-light);border:1px solid var(--primary);border-radius:var(--radius-md);padding:.875rem 1rem}.cdm-desc-block{background:var(--bg-subtle);border:1px solid var(--border);border-radius:var(--radius-md);padding:1rem}.cdm-desc-text{font-size:.9375rem;color:var(--text-secondary);line-height:1.6}.cdm-info-color-row{display:flex;align-items:center;gap:.5rem}.cdm-info-color-swatch{width:20px;height:20px;border-radius:var(--radius-xs)}.cdm-arch-chain{background:var(--bg-subtle);border:1px solid var(--border);border-radius:var(--radius-md);padding:1rem}.cdm-arch-title{font-size:.8125rem;font-weight:600;color:var(--text-secondary);margin-bottom:.75rem}.cdm-arch-flow{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.cdm-arch-node{display:flex;align-items:center;gap:5px;padding:6px 12px;border-radius:var(--radius-md);font-size:.8125rem;font-weight:600;border:1px solid}.cdm-arch-node svg{width:14px;height:14px}.cdm-arch-prod-node{color:var(--text-secondary);background:var(--surface);border-color:var(--border)}.cdm-arch-arrow{width:16px;height:16px;color:var(--text-muted);flex-shrink:0}.cdm-prod-header{display:flex;align-items:center;justify-content:space-between}.cdm-prod-count{font-size:.8125rem;color:var(--text-muted)}.cdm-add-prod-btn{display:flex;align-items:center;gap:4px;height:32px;padding:0 .75rem;background:var(--primary);color:#fff;border:none;border-radius:var(--radius-sm);font-size:.8125rem;font-weight:600;cursor:pointer;font-family:var(--font)}.cdm-add-prod-btn svg{width:14px;height:14px}.cdm-add-prod-btn:hover{background:var(--primary-dark)}.cdm-prod-table-wrap{overflow-x:auto;border:1px solid var(--border);border-radius:var(--radius-md)}.cdm-prod-table{width:100%;border-collapse:collapse;font-size:.875rem}.cdm-prod-table th{padding:.5rem .875rem;text-align:left;font-size:.6875rem;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.06em;background:var(--bg-subtle);border-bottom:1px solid var(--border)}.cdm-prod-table td{padding:.625rem .875rem;border-bottom:1px solid var(--border)}.cdm-prod-table tr:last-child td{border-bottom:none}.cdm-prod-table tr:hover td{background:var(--bg-subtle)}.cdm-prod-name{font-weight:600;color:var(--text-primary)}.cdm-prod-price{font-weight:600;color:var(--text-secondary);white-space:nowrap}.cdm-prod-unit{font-size:.8125rem;color:var(--text-muted)}.cdm-stock-badge{display:inline-block;padding:2px 8px;border-radius:var(--radius-full);font-size:.75rem;font-weight:700;background:var(--success-bg);color:#065f46}.cdm-stock-mid{background:var(--warning-bg);color:#92400e}.cdm-stock-low{background:var(--error-bg);color:#991b1b}.cdm-prod-note{font-size:.8125rem;color:var(--text-muted);font-style:italic}.cdm-analytics-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.75rem}.cdm-analytics-card{background:var(--surface);border:1px solid var(--border);border-top:3px solid;border-radius:var(--radius-md);padding:1rem;text-align:center}.cdm-analytics-value{font-size:1.25rem;font-weight:800;letter-spacing:-.02em;margin-bottom:3px}.cdm-analytics-label{font-size:.75rem;color:var(--text-muted);font-weight:600}.cdm-analytics-note{font-size:.6875rem;color:var(--text-muted);margin-top:2px}.cdm-top-prods{background:var(--bg-subtle);border:1px solid var(--border);border-radius:var(--radius-md);padding:1rem}.cdm-top-title{font-size:.875rem;font-weight:700;color:var(--text-secondary);margin-bottom:.75rem}.cdm-top-list{display:flex;flex-direction:column;gap:.625rem}.cdm-top-item{display:flex;align-items:center;gap:.625rem}.cdm-top-rank{width:22px;height:22px;background:var(--primary);color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.75rem;font-weight:700;flex-shrink:0}.cdm-top-bar-wrap{flex:1}.cdm-top-name-row{display:flex;justify-content:space-between;margin-bottom:3px}.cdm-top-name{font-size:.8125rem;font-weight:600;color:var(--text-primary)}.cdm-top-stock{font-size:.75rem;color:var(--text-muted)}.cdm-top-bar-bg{height:5px;background:var(--border);border-radius:var(--radius-full);overflow:hidden}.cdm-top-bar-fill{height:100%;border-radius:var(--radius-full);transition:width .5s var(--ease)}.cdm-analytics-disclaimer{font-size:.75rem;color:var(--text-muted);font-style:italic;text-align:center}@media (max-width:600px){.cdm-mini-stats,.cdm-analytics-grid{grid-template-columns:repeat(2,1fr)}.cdm-info-grid{grid-template-columns:1fr}.cdm-box{max-height:95vh}.cdm-arch-flow{flex-direction:column}.cdm-arch-arrow{transform:rotate(90deg)}}.clb-root{display:flex;gap:.875rem;padding:.875rem 1.125rem;border-radius:var(--radius-lg);border:1.5px solid #FDE68A;background:#fffbeb;color:#92400e;align-items:flex-start;margin-bottom:1rem}.clb-icon{flex-shrink:0;width:20px;height:20px;margin-top:1px}.clb-icon svg{width:100%;height:100%}.clb-body{flex:1;min-width:0}.clb-title{font-size:.875rem;font-weight:700;margin:0 0 .5rem}.clb-list{display:flex;flex-wrap:wrap;gap:.5rem .875rem}.clb-item{font-size:.8125rem;line-height:1.5}.clb-item strong{font-weight:700}.clb-close{flex-shrink:0;background:none;border:none;cursor:pointer;padding:2px;opacity:.6;color:inherit;display:flex;align-items:center}.clb-close:hover{opacity:1}.clb-close svg{width:15px;height:15px}.pgn-root{display:flex;flex-direction:column;align-items:center;gap:.5rem;padding:1rem 0}.pgn-info{font-size:.8125rem;color:var(--text-secondary)}.pgn-controls{display:flex;align-items:center;gap:.375rem;flex-wrap:wrap;justify-content:center}.pgn-btn{min-width:32px;height:32px;padding:0 .5rem;border:1.5px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);color:var(--text-secondary);cursor:pointer;font-weight:500;font-size:.8125rem;display:flex;align-items:center;justify-content:center;transition:all .15s ease}.pgn-btn:hover:not(:disabled){background:var(--surface-hover, #F1F5F9)}.pgn-btn:disabled{opacity:.4;cursor:not-allowed}.pgn-btn svg{width:16px;height:16px}.pgn-btn--active{background:var(--primary);color:#fff;border-color:var(--primary);font-weight:700}.pgn-ellipsis{color:var(--text-secondary);padding:0 .25rem}.cp-page{display:flex;flex-direction:column;gap:1.5rem;flex:1}.cp-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1rem}.cp-title{font-size:1.375rem;font-weight:800;color:var(--text-primary);letter-spacing:-.025em;margin-bottom:4px}.cp-subtitle{display:flex;align-items:center;gap:4px;font-size:.875rem;color:var(--text-muted)}.cp-subtitle svg{width:12px;height:12px;stroke:var(--text-muted)}.cp-breadcrumb{font-weight:600;color:var(--text-muted)}.cp-breadcrumb--active{color:var(--primary);font-weight:700}.cp-header-right{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}.cp-view-toggle{display:flex;border:1.5px solid var(--border);border-radius:var(--radius-md);overflow:hidden;background:var(--surface)}.cp-view-btn{display:flex;align-items:center;gap:5px;height:36px;padding:0 .875rem;background:none;border:none;font-size:.8125rem;font-weight:500;color:var(--text-secondary);cursor:pointer;font-family:var(--font);transition:background var(--transition),color var(--transition)}.cp-view-btn svg{width:15px;height:15px}.cp-view-btn:hover{background:var(--bg-subtle);color:var(--text-primary)}.cp-view-btn--active{background:var(--primary);color:#fff;font-weight:600}.cp-view-btn--active:hover{background:var(--primary-dark)}.cp-add-btn{display:inline-flex;align-items:center;gap:.5rem;height:40px;padding:0 1.25rem;background:var(--primary);color:#fff;border:none;border-radius:var(--radius-md);font-size:.875rem;font-weight:600;cursor:pointer;font-family:var(--font);transition:background var(--transition),box-shadow var(--transition);white-space:nowrap}.cp-add-btn svg{width:16px;height:16px}.cp-add-btn:hover{background:var(--primary-dark);box-shadow:0 4px 12px #4f46e54d}.cp-filters-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.25rem;box-shadow:var(--shadow-sm)}@media (max-width:640px){.cp-header{flex-direction:column;align-items:flex-start}.cp-header-right{width:100%}.cp-add-btn{flex:1;justify-content:center}}.cat-page{display:flex;flex-direction:column;gap:1.5rem;flex:1}.cat-page-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1rem}.cat-page-title{font-size:1.375rem;font-weight:800;color:var(--text-primary);letter-spacing:-.025em;margin-bottom:4px}.cat-page-sub{font-size:.875rem;color:var(--text-muted)}.cat-add-btn{display:inline-flex;align-items:center;gap:.5rem;height:40px;padding:0 1.25rem;background:var(--primary);color:#fff;border:none;border-radius:var(--radius-md);font-size:.875rem;font-weight:600;cursor:pointer;font-family:var(--font);transition:background var(--transition),box-shadow var(--transition)}.cat-add-btn svg{width:16px;height:16px}.cat-add-btn:hover{background:var(--primary-dark);box-shadow:0 4px 12px #4f46e54d}.user-stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem}.user-stat-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.25rem;display:flex;align-items:center;gap:1rem;box-shadow:var(--shadow-sm);transition:box-shadow var(--transition),transform var(--transition)}.user-stat-card:hover{box-shadow:var(--shadow-md);transform:translateY(-1px)}.user-stat-icon{width:48px;height:48px;border-radius:var(--radius-md);display:flex;align-items:center;justify-content:center;flex-shrink:0}.user-stat-icon svg{width:24px;height:24px}.user-stat-value{font-size:1.75rem;font-weight:800;color:var(--text-primary);letter-spacing:-.03em;line-height:1}.user-stat-label{font-size:.8125rem;font-weight:500;color:var(--text-secondary);margin-top:3px}@media (max-width: 900px){.user-stats-grid{grid-template-columns:repeat(2,1fr)}}@media (max-width: 480px){.user-stats-grid{grid-template-columns:repeat(2,1fr)}.user-stat-value{font-size:1.375rem}}.user-filters-wrap{display:flex;flex-direction:column;gap:.75rem}.user-filters-top{display:flex;gap:.75rem;flex-wrap:wrap;align-items:center}.user-search-wrap{position:relative;flex:1;min-width:220px;max-width:340px}.user-search-icon{position:absolute;left:.75rem;top:50%;transform:translateY(-50%);color:var(--text-muted);display:flex;pointer-events:none}.user-search-icon svg{width:16px;height:16px}.user-search-input{width:100%;height:38px;padding:0 2.25rem 0 2.375rem;border:1.5px solid var(--border);border-radius:var(--radius-md);font-size:.875rem;color:var(--text-primary);background:var(--surface);font-family:var(--font);transition:border-color var(--transition),box-shadow var(--transition)}.user-search-input::placeholder{color:var(--text-muted)}.user-search-input:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-ring)}.user-search-input::-webkit-search-cancel-button{display:none}.user-search-clear{position:absolute;right:.625rem;top:50%;transform:translateY(-50%);background:none;border:none;cursor:pointer;color:var(--text-muted);display:flex}.user-search-clear svg{width:14px;height:14px}.user-filters-right{display:flex;gap:.625rem;flex-wrap:wrap;align-items:center}.user-filter-select{height:38px;padding:0 2rem 0 .75rem;border:1.5px solid var(--border);border-radius:var(--radius-md);font-size:.8125rem;color:var(--text-secondary);background:var(--surface);font-family:var(--font);cursor:pointer;transition:border-color var(--transition);-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .5rem center;background-size:14px}.user-filter-select:focus{outline:none;border-color:var(--primary)}.user-filter-reset{display:flex;align-items:center;gap:5px;height:38px;padding:0 .875rem;background:none;border:1.5px solid var(--border);border-radius:var(--radius-md);font-size:.8125rem;font-weight:600;color:var(--text-secondary);cursor:pointer;font-family:var(--font);transition:border-color var(--transition),color var(--transition);white-space:nowrap}.user-filter-reset svg{width:14px;height:14px}.user-filter-reset:hover{border-color:var(--error);color:var(--error)}.user-filter-count{font-size:.8125rem;color:var(--text-muted);font-weight:500}@media (max-width: 700px){.user-search-wrap{max-width:100%}.user-filters-right{width:100%}.user-filter-select{flex:1;min-width:0}}.user-avatar{border-radius:var(--radius-sm);display:flex;align-items:center;justify-content:center;font-weight:700;color:#fff;letter-spacing:.02em;flex-shrink:0}.user-table-wrap{overflow-x:auto;border-radius:var(--radius-lg);border:1px solid var(--border);box-shadow:var(--shadow-sm)}.user-table{width:100%;border-collapse:collapse;background:var(--surface);font-size:.875rem}.user-table thead{background:var(--bg-subtle);border-bottom:1px solid var(--border)}.user-table th{padding:.75rem 1rem;text-align:left;font-size:.75rem;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.06em;white-space:nowrap}.user-table td{padding:.875rem 1rem;border-bottom:1px solid var(--border);vertical-align:middle}.user-table-row:last-child td{border-bottom:none}.user-table-row:hover td{background:var(--bg-subtle)}.user-table-row{transition:background var(--transition)}.user-cell-name{display:flex;align-items:center;gap:.75rem}.user-name{font-size:.875rem;font-weight:600;color:var(--text-primary)}.user-email-small{font-size:.75rem;color:var(--text-muted)}.user-table-text{font-size:.875rem;color:var(--text-secondary);font-weight:500}.user-table-sub{font-size:.75rem;color:var(--text-muted)}.user-dept-badge,.user-role-badge{display:inline-block;padding:3px 10px;border-radius:var(--radius-full);font-size:.75rem;font-weight:600;white-space:nowrap}.user-status-badge{display:inline-flex;align-items:center;gap:5px;padding:3px 10px;border-radius:var(--radius-full);font-size:.75rem;font-weight:600;white-space:nowrap}.user-status-dot{width:6px;height:6px;border-radius:50%;flex-shrink:0}.user-actions{display:flex;gap:4px}.user-action-btn{width:30px;height:30px;border:none;border-radius:var(--radius-sm);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background var(--transition),color var(--transition)}.user-action-btn svg{width:14px;height:14px}.user-action-btn--view{background:var(--info-bg);color:var(--info)}.user-action-btn--edit{background:var(--warning-bg);color:var(--warning)}.user-action-btn--disable{background:var(--error-bg);color:var(--error)}.user-action-btn--enable{background:var(--success-bg);color:var(--success)}.user-action-btn--delete{background:var(--error-bg);color:var(--error)}.user-action-btn--password{background:var(--primary-light);color:var(--primary)}.user-action-btn:hover{filter:brightness(.9)}.user-table-empty{text-align:center;padding:4rem 2rem;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg)}.user-table-empty svg{width:48px;height:48px;stroke:var(--text-muted);margin:0 auto 1rem}.user-table-empty p{font-size:1rem;font-weight:600;color:var(--text-secondary);margin-bottom:.25rem}.user-table-empty span{font-size:.875rem;color:var(--text-muted)}.user-cards-mobile{display:none;flex-direction:column;gap:.75rem}.user-mobile-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1rem;display:flex;flex-direction:column;gap:.75rem;box-shadow:var(--shadow-sm)}.user-mobile-card-top{display:flex;align-items:center;gap:.75rem}.user-mobile-info{flex:1;min-width:0}.user-mobile-card-body{display:flex;gap:.5rem;flex-wrap:wrap}.user-mobile-card-footer{display:flex;justify-content:space-between;align-items:center}@media (max-width: 768px){.user-table-wrap{display:none}.user-cards-mobile{display:flex}}.pagination-wrap{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.75rem;padding:1rem 1.25rem;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm)}.pagination-info{font-size:.8125rem;color:var(--text-muted);font-weight:500}.pagination-controls{display:flex;align-items:center;gap:3px}.pg-btn{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border:1.5px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);cursor:pointer;transition:border-color var(--transition),background var(--transition),color var(--transition);color:var(--text-secondary)}.pg-btn svg{width:14px;height:14px}.pg-num{font-size:.875rem;font-weight:500;border:none;background:none}.pg-btn:hover:not(:disabled){border-color:var(--primary);color:var(--primary)}.pg-btn:disabled{opacity:.35;cursor:not-allowed}.pg-btn--active{background:var(--primary);color:#fff;border-color:var(--primary);font-weight:700}.pg-btn--active:hover{background:var(--primary-dark);border-color:var(--primary-dark);color:#fff}.pg-ellipsis{width:28px;text-align:center;color:var(--text-muted);font-size:.875rem}@media (max-width: 480px){.pagination-info{display:none}}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a8c;z-index:500;display:flex;align-items:center;justify-content:center;padding:1rem;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);animation:fadeIn .15s var(--ease)}.modal-box{background:var(--surface);border-radius:var(--radius-xl);width:100%;max-width:640px;max-height:90vh;display:flex;flex-direction:column;overflow:hidden;box-shadow:var(--shadow-lg);animation:slideUp .2s var(--ease)}.modal-header-icon{width:40px;height:40px;background:var(--primary-light);border-radius:var(--radius-md);display:flex;align-items:center;justify-content:center;flex-shrink:0}.modal-header-icon svg{width:20px;height:20px;stroke:var(--primary)}.modal-body{overflow-y:auto;padding:1.5rem;display:flex;flex-direction:column;gap:1.5rem;flex:1;min-height:0}.uf-section{display:flex;flex-direction:column;gap:1rem}.uf-section-title{display:flex;align-items:center;gap:.5rem;font-size:.875rem;font-weight:700;color:var(--text-secondary);padding-bottom:.5rem;border-bottom:1px solid var(--border)}.uf-section-title svg{width:16px;height:16px}.uf-grid{display:grid;grid-template-columns:1fr 1fr;gap:.875rem}.uf-field{display:flex;flex-direction:column;gap:5px}.uf-label{font-size:.8125rem;font-weight:600;color:var(--text-primary)}.uf-required{color:var(--error);margin-left:2px}.uf-input,.uf-select{height:40px;padding:0 .75rem;border:1.5px solid var(--border);border-radius:var(--radius-md);font-size:.875rem;color:var(--text-primary);background:var(--surface);font-family:var(--font);transition:border-color var(--transition),box-shadow var(--transition);width:100%}.uf-input::placeholder{color:var(--text-muted)}.uf-input:focus,.uf-select:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-ring)}.uf-input--error{border-color:var(--error)}.uf-input--error:focus{box-shadow:0 0 0 3px #ef444426}.uf-error{font-size:.75rem;color:var(--error);font-weight:500}.uf-select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .5rem center;background-size:14px;padding-right:2rem}.uf-select:disabled{background-color:var(--bg-subtle);color:var(--text-muted);cursor:not-allowed}.uf-hint{font-size:.75rem;color:var(--text-muted)}.uf-avatar-upload{display:flex;align-items:center;gap:1rem}.uf-avatar-preview{width:60px;height:60px;border-radius:var(--radius-md);background:var(--bg-subtle);border:2px dashed var(--border);display:flex;align-items:center;justify-content:center;flex-shrink:0}.uf-avatar-preview svg{width:28px;height:28px;stroke:var(--text-muted)}.uf-avatar-info{display:flex;flex-direction:column;gap:5px}.uf-btn-upload{height:34px;padding:0 1rem;background:var(--bg-subtle);border:1.5px solid var(--border);border-radius:var(--radius-md);font-size:.8125rem;font-weight:600;color:var(--text-secondary);cursor:pointer;font-family:var(--font);transition:border-color var(--transition),color var(--transition)}.uf-btn-upload:hover{border-color:var(--primary);color:var(--primary)}.uf-avatar-hint{font-size:.75rem;color:var(--text-muted)}.uf-pwd-wrap{position:relative}.uf-pwd-wrap .uf-input{padding-right:2.5rem}.uf-pwd-toggle{position:absolute;right:.625rem;top:50%;transform:translateY(-50%);background:none;border:none;cursor:pointer;color:var(--text-muted);display:flex}.uf-pwd-toggle svg{width:16px;height:16px}.uf-pwd-toggle:hover{color:var(--text-primary)}@media (max-width: 600px){.uf-grid{grid-template-columns:1fr}.modal-box{max-height:95vh;overflow:hidden}.modal-body{padding:1rem;min-height:0}}.upm-box{background:var(--surface);border-radius:var(--radius-lg);width:100%;max-width:420px;box-shadow:var(--shadow-xl, 0 20px 60px rgba(0,0,0,.25));overflow:hidden}.upm-icon{width:38px;height:38px;border-radius:var(--radius-md);background:var(--primary-light);color:var(--primary);display:flex;align-items:center;justify-content:center;flex-shrink:0}.upm-icon svg{width:18px;height:18px}.upm-body{padding:1.25rem;display:flex;flex-direction:column;gap:1rem}.upm-field{display:flex;flex-direction:column;gap:.375rem}.upm-label{font-size:.8125rem;font-weight:600;color:var(--text-secondary)}.upm-req{color:var(--error);margin-left:2px}.upm-input{border:1.5px solid var(--border);border-radius:var(--radius-sm);padding:.5625rem .75rem;font-size:.875rem;font-family:var(--font);color:var(--text-primary);background:var(--surface);transition:border-color var(--transition)}.upm-input:focus{outline:none;border-color:var(--primary)}.upm-error{font-size:.8125rem;color:var(--error);background:var(--error-bg);border-radius:var(--radius-sm);padding:.5rem .75rem;margin:0}.perm-matrix-wrap{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);display:flex;flex-direction:column;box-shadow:var(--shadow-sm);overflow:hidden}.perm-role-header{display:flex;align-items:center;gap:.875rem;padding:1.25rem 1.5rem;border-left:4px solid var(--primary);background:var(--bg-subtle);border-bottom:1px solid var(--border);flex-wrap:wrap}.perm-role-dot{width:12px;height:12px;border-radius:50%;flex-shrink:0}.perm-role-name{font-size:1rem;font-weight:700;color:var(--text-primary);margin-bottom:2px}.perm-role-desc{font-size:.8125rem;color:var(--text-secondary)}.perm-role-meta{display:flex;gap:.5rem;margin-left:auto;flex-wrap:wrap}.perm-badge{display:inline-flex;align-items:center;gap:4px;padding:3px 10px;background:var(--primary-light);color:var(--primary);border-radius:var(--radius-full);font-size:.75rem;font-weight:600}.perm-badge svg{width:12px;height:12px}.perm-badge--users{background:var(--success-bg);color:#065f46}.perm-tabs{display:flex;gap:0;border-bottom:1px solid var(--border);padding:0 1.5rem;flex-shrink:0}.perm-tab{display:flex;align-items:center;gap:6px;height:44px;padding:0 1rem;background:none;border:none;border-bottom:2.5px solid transparent;font-size:.875rem;font-weight:500;color:var(--text-muted);cursor:pointer;font-family:var(--font);transition:color var(--transition),border-color var(--transition);margin-bottom:-1px}.perm-tab svg{width:16px;height:16px}.perm-tab:hover{color:var(--text-primary)}.perm-tab--active{color:var(--primary);border-bottom-color:var(--primary);font-weight:600}.perm-table-scroll{overflow-x:auto;overflow-y:auto;max-height:480px;flex:1}.perm-table{width:100%;border-collapse:collapse;font-size:.8125rem}.perm-th-module{padding:.75rem 1rem .75rem 1.5rem;text-align:left;font-size:.75rem;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.06em;background:var(--bg-subtle);position:sticky;top:0;z-index:2;min-width:180px;border-bottom:1px solid var(--border)}.perm-th-action{padding:.75rem;text-align:center;font-size:.75rem;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.06em;background:var(--bg-subtle);position:sticky;top:0;z-index:2;min-width:88px;border-bottom:1px solid var(--border)}.perm-th-action-inner{display:flex;flex-direction:column;align-items:center;gap:4px}.perm-col-actions{display:flex;gap:2px}.perm-col-btn{width:18px;height:18px;border:none;border-radius:3px;font-size:9px;font-weight:700;cursor:pointer;line-height:1;display:flex;align-items:center;justify-content:center}.perm-col-btn--all{background:var(--success-bg);color:var(--success)}.perm-col-btn--none{background:var(--error-bg);color:var(--error)}.perm-category-row td{padding:.5rem 1.5rem;background:var(--bg-page);border-bottom:1px solid var(--border)}.perm-category-label{display:flex;align-items:center;gap:6px;font-size:.6875rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.perm-category-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}.perm-row{border-bottom:1px solid var(--border);transition:background var(--transition)}.perm-row:hover{background:var(--bg-subtle)}.perm-row:last-child{border-bottom:none}.perm-td-module{padding:.75rem 1rem .75rem 1.5rem}.perm-td-action{padding:.75rem;text-align:center}.perm-module-cell{display:flex;align-items:center;gap:.625rem}.perm-module-name{font-size:.875rem;font-weight:500;color:var(--text-secondary)}.perm-module-name--active{color:var(--text-primary);font-weight:600}.perm-toggle{width:36px;height:20px;border:none;border-radius:var(--radius-full);background:var(--border-strong);cursor:pointer;position:relative;flex-shrink:0;transition:background .2s var(--ease);padding:0}.perm-toggle-thumb{position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;transition:transform .2s var(--ease);box-shadow:0 1px 3px #0003}.perm-check{width:20px;height:20px;border:1.5px solid var(--border-strong);border-radius:var(--radius-xs);background:var(--surface);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background var(--transition),border-color var(--transition);margin:0 auto;padding:0}.perm-check svg{width:12px;height:12px}.perm-check--on svg{stroke:#fff}.perm-global-wrap{padding:1.5rem;display:flex;flex-direction:column;gap:1rem;overflow-y:auto;max-height:480px}.perm-global-intro{font-size:.875rem;color:var(--text-secondary);background:var(--info-bg);border:1px solid #BFDBFE;border-radius:var(--radius-md);padding:.75rem 1rem}.perm-global-list{display:flex;flex-direction:column;gap:.625rem}.perm-global-item{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.25rem;border:1.5px solid var(--border);border-radius:var(--radius-md);transition:border-color var(--transition),background var(--transition)}.perm-global-item--active{border-color:var(--primary);background:var(--primary-light)}.perm-global-name{font-size:.9375rem;font-weight:600;color:var(--text-primary);margin-bottom:2px}.perm-global-desc{font-size:.8125rem;color:var(--text-secondary)}.perm-empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.75rem;padding:4rem 2rem;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);text-align:center;box-shadow:var(--shadow-sm)}.perm-empty-state svg{width:48px;height:48px;stroke:var(--text-muted)}.perm-empty-state p{font-size:1rem;font-weight:600;color:var(--text-secondary)}.perm-empty-state span{font-size:.875rem;color:var(--text-muted)}.perm-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.75rem;padding:1rem 1.5rem;border-top:1px solid var(--border);background:var(--bg-subtle)}.perm-footer-note{font-size:.75rem;color:var(--text-muted);font-style:italic}.perm-save-btn{display:flex;align-items:center;gap:.5rem;height:38px;padding:0 1.125rem;background:var(--primary);color:#fff;border:none;border-radius:var(--radius-md);font-size:.875rem;font-weight:600;cursor:pointer;font-family:var(--font);transition:background var(--transition),box-shadow var(--transition)}.perm-save-btn:hover{background:var(--primary-dark);box-shadow:0 4px 12px #4f46e54d}@media (max-width:768px){.perm-role-header{flex-direction:column;align-items:flex-start}.perm-role-meta{margin-left:0}.perm-th-action{min-width:70px}.perm-th-module{min-width:140px}}.perm-check{width:22px;height:22px;border:2px solid var(--border);border-radius:4px;background:var(--surface);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .15s}.perm-check--on{background:var(--primary);border-color:var(--primary)}.perm-check--on svg{width:13px;height:13px;stroke:#fff}.perm-th-inner{display:flex;flex-direction:column;align-items:center;gap:4px}.perm-all-row{display:flex;gap:4px}.perm-all-icon{font-size:.625rem;font-weight:700;width:14px;height:14px;border-radius:2px;display:flex;align-items:center;justify-content:center;cursor:pointer}.perm-all-icon--on{background:var(--success-bg);color:var(--success)}.perm-all-icon--off{background:var(--error-bg);color:var(--error)}.perm-role-header{display:flex;align-items:center;gap:.875rem;padding:1rem 1.25rem;border-bottom:1px solid var(--border);background:var(--surface)}.perm-role-dot{width:14px;height:14px;border-radius:50%;flex-shrink:0}.perm-role-info{flex:1;min-width:0}.perm-role-name{font-size:.9375rem;font-weight:700;color:var(--text-primary);margin:0}.perm-role-desc{font-size:.8125rem;color:var(--text-muted);margin:.125rem 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.perm-role-badges{display:flex;gap:.5rem;flex-shrink:0}.perm-badge{font-size:.6875rem;font-weight:600;padding:2px 8px;border-radius:var(--radius-full)}.perm-badge--dept{background:var(--primary-light);color:var(--primary)}.perm-badge--users{background:var(--success-bg);color:var(--success);display:flex;align-items:center;gap:3px}.perm-badge--users svg{width:11px;height:11px}.perm-global-info{background:var(--bg-subtle);border-radius:var(--radius-md);padding:.75rem 1rem;font-size:.8125rem;color:var(--text-muted);margin-bottom:1rem}.perm-global-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.875rem 0;border-bottom:1px solid var(--border)}.perm-global-label{font-size:.875rem;font-weight:600;color:var(--text-primary);margin:0}.perm-global-desc{font-size:.75rem;color:var(--text-muted);margin:.125rem 0 0}.rm-color-input{width:40px;height:34px;padding:2px;border:1.5px solid var(--border);border-radius:var(--radius-md);cursor:pointer}.rm-field-row{display:flex;gap:.875rem}.rm-cat-row td{padding:.375rem .875rem;font-size:.6875rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--text-muted);background:var(--bg-subtle)}.perm-matrix{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);display:flex;flex-direction:column;overflow:hidden}.perm-view-tabs{display:flex;border-bottom:1px solid var(--border);padding:0 1rem;background:var(--surface)}.perm-view-tab{display:flex;align-items:center;gap:.375rem;padding:.75rem 1rem;font-size:.875rem;font-weight:500;color:var(--text-muted);border:none;background:transparent;cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-1px;transition:color .15s,border-color .15s}.perm-view-tab svg{width:14px;height:14px}.perm-view-tab--active{color:var(--primary);border-bottom-color:var(--primary);font-weight:600}.perm-view-tab:hover:not(.perm-view-tab--active){color:var(--text-secondary)}.perm-table-wrap{overflow-x:auto;flex:1}.perm-table{width:100%;border-collapse:collapse;min-width:600px}.perm-table thead{background:var(--bg-subtle)}.perm-th-module{padding:.625rem 1rem;text-align:left;font-size:.6875rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--text-muted);width:200px}.perm-th-action{padding:.5rem;text-align:center;font-size:.6875rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--text-muted)}.perm-act-label{display:block}.perm-cat-row td{padding:.375rem 1rem;font-size:.625rem;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:var(--text-muted);background:var(--bg-subtle)}.perm-cat-dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:.5rem;vertical-align:middle}.perm-mod-row{border-bottom:1px solid var(--border)}.perm-mod-row:hover{background:var(--bg-subtle)}.perm-mod-label{padding:.625rem 1rem;font-size:.875rem;font-weight:500;color:var(--text-primary);display:flex;align-items:center;gap:.625rem}.perm-cell{padding:.375rem .5rem;text-align:center}.perm-global-list{padding:1rem 1.25rem;overflow-y:auto;flex:1}.perm-footer{display:flex;align-items:center;justify-content:space-between;padding:.875rem 1.25rem;border-top:1px solid var(--border);background:var(--bg-subtle);gap:1rem}.perm-footer-hint{font-size:.75rem;color:var(--text-muted);font-style:italic;margin:0;flex:1}.perm-save-btn{display:flex;align-items:center;gap:.5rem;padding:.625rem 1.25rem;background:var(--primary);color:#fff;border:none;border-radius:var(--radius-md);font-size:.875rem;font-weight:600;cursor:pointer;white-space:nowrap;transition:background .15s}.perm-save-btn:hover:not(:disabled){background:var(--primary-dark)}.perm-save-btn:disabled{opacity:.6;cursor:not-allowed}.perm-save-btn svg{width:15px;height:15px}.perm-toggle{width:36px;height:20px;border-radius:10px;border:none;background:var(--border);cursor:pointer;position:relative;transition:background .2s;flex-shrink:0}.perm-toggle--on{background:var(--primary)}.perm-toggle-thumb{position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;transition:transform .2s;box-shadow:0 1px 3px #0003}.perm-toggle--on .perm-toggle-thumb{transform:translate(16px)}.upm-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a80;display:flex;align-items:center;justify-content:center;z-index:200;padding:1rem}.upm-box{background:var(--surface);border-radius:var(--radius-xl);width:100%;max-width:900px;max-height:90vh;display:flex;flex-direction:column;overflow:hidden;box-shadow:var(--shadow-lg)}.upm-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding:1.25rem 1.5rem;border-bottom:1px solid var(--border)}.upm-title{font-size:1.125rem;font-weight:700;color:var(--text-primary);margin-bottom:2px}.upm-subtitle{font-size:.8125rem;color:var(--text-muted)}.upm-body{overflow-y:auto;flex:1;min-height:0;padding:1.25rem 1.5rem}.upm-toast{margin:.75rem 1.5rem 0;padding:.625rem .875rem;border-radius:var(--radius-md);font-size:.8125rem;font-weight:600}.upm-toast--success{background:var(--success-bg);color:#065f46}.upm-toast--error{background:var(--error-bg);color:#991b1b}.detail-modal-box{background:var(--surface);border-radius:var(--radius-xl);width:100%;max-width:560px;max-height:90vh;display:flex;flex-direction:column;box-shadow:var(--shadow-lg);animation:slideUp .2s var(--ease);overflow:hidden}.detail-modal-header{position:relative;padding:2rem 1.5rem 1.5rem;border-bottom:1px solid var(--border);text-align:center}.detail-modal-close{position:absolute;top:1rem;right:1rem}.detail-avatar-wrap{display:flex;flex-direction:column;align-items:center;gap:.625rem;margin-bottom:.75rem}.detail-avatar{width:72px;height:72px;border-radius:var(--radius-lg);display:flex;align-items:center;justify-content:center;font-size:1.5rem;font-weight:800;color:#fff;letter-spacing:.02em}.detail-status{display:inline-flex;align-items:center;gap:5px;padding:3px 12px;border-radius:var(--radius-full);font-size:.75rem;font-weight:600}.detail-name{font-size:1.25rem;font-weight:700;color:var(--text-primary);margin-bottom:3px}.detail-post{font-size:.875rem;color:var(--text-secondary);margin-bottom:.5rem}.detail-dept-badge{display:inline-block;padding:3px 12px;border-radius:var(--radius-full);font-size:.75rem;font-weight:600}.detail-body{overflow-y:auto;padding:1.5rem;display:flex;flex-direction:column;gap:1.5rem;flex:1}.detail-stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:.75rem}.detail-stat-card{background:var(--bg-subtle);border:1px solid var(--border);border-radius:var(--radius-md);padding:.875rem;text-align:center}.detail-stat-icon{width:36px;height:36px;border-radius:var(--radius-sm);display:flex;align-items:center;justify-content:center;margin:0 auto .5rem}.detail-stat-icon svg{width:18px;height:18px}.detail-stat-value{font-size:1.125rem;font-weight:800;color:var(--text-primary);margin-bottom:2px}.detail-stat-login{font-size:.75rem}.detail-stat-label{font-size:.6875rem;color:var(--text-muted);font-weight:500}.detail-company-block{display:flex;align-items:center;gap:.875rem;background:var(--primary-light);border:1px solid var(--primary);border-radius:var(--radius-md);padding:.875rem 1rem;margin-bottom:.875rem}.detail-company-icon{width:38px;height:38px;border-radius:var(--radius-sm);background:var(--surface);color:var(--primary);display:flex;align-items:center;justify-content:center;flex-shrink:0}.detail-company-icon svg{width:18px;height:18px}.detail-company-name{font-size:.9375rem;font-weight:700;color:var(--text-primary)}.detail-company-city{font-size:.8125rem;color:var(--text-muted);margin-top:2px}.detail-info-grid{display:flex;flex-direction:column;gap:.75rem}.detail-info-item{display:flex;align-items:center;gap:.75rem;padding:.75rem;background:var(--bg-subtle);border:1px solid var(--border);border-radius:var(--radius-md)}.detail-info-icon svg{width:18px;height:18px;stroke:var(--primary)}.detail-info-label{font-size:.75rem;color:var(--text-muted);font-weight:500}.detail-info-value{font-size:.875rem;color:var(--text-primary);font-weight:600}@media (max-width: 480px){.detail-stats-grid{grid-template-columns:repeat(2,1fr)}}.users-page{display:flex;flex-direction:column;gap:1.5rem;flex:1}.users-page-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1rem}.users-page-title{font-size:1.375rem;font-weight:800;color:var(--text-primary);letter-spacing:-.025em;margin-bottom:2px}.users-page-sub{font-size:.875rem;color:var(--text-muted)}.users-add-btn{display:inline-flex;align-items:center;gap:.5rem;height:40px;padding:0 1.25rem;background:var(--primary);color:#fff;border:none;border-radius:var(--radius-md);font-size:.875rem;font-weight:600;cursor:pointer;font-family:var(--font);transition:background var(--transition),box-shadow var(--transition);white-space:nowrap}.users-add-btn svg{width:16px;height:16px}.users-add-btn:hover{background:var(--primary-dark);box-shadow:0 4px 12px #4f46e54d}.users-section-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.25rem;box-shadow:var(--shadow-sm)}.confirm-box{background:var(--surface);border-radius:var(--radius-xl);padding:2rem;max-width:420px;width:100%;box-shadow:var(--shadow-lg);text-align:center;animation:slideUp .2s var(--ease)}.confirm-icon{width:56px;height:56px;background:var(--error-bg);border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto 1.125rem}.confirm-icon svg{width:26px;height:26px;stroke:var(--error)}.confirm-title{font-size:1.125rem;font-weight:700;color:var(--text-primary);margin-bottom:.5rem}.confirm-text{font-size:.875rem;color:var(--text-secondary);line-height:1.6;margin-bottom:1.5rem}.confirm-actions{display:flex;justify-content:center;gap:.75rem}.confirm-delete-btn{display:inline-flex;align-items:center;gap:.5rem;height:40px;padding:0 1.25rem;background:var(--error);color:#fff;border:none;border-radius:var(--radius-md);font-size:.875rem;font-weight:600;cursor:pointer;font-family:var(--font);transition:background var(--transition)}.confirm-delete-btn svg{width:15px;height:15px}.confirm-delete-btn:hover{background:#dc2626}@media (max-width: 600px){.users-page-header{flex-direction:column;align-items:flex-start}.users-add-btn{width:100%;justify-content:center}}.role-stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem}.role-stat-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.25rem;display:flex;align-items:center;gap:1rem;box-shadow:var(--shadow-sm);transition:box-shadow var(--transition),transform var(--transition)}.role-stat-card:hover{box-shadow:var(--shadow-md);transform:translateY(-1px)}.role-stat-icon{width:48px;height:48px;border-radius:var(--radius-md);display:flex;align-items:center;justify-content:center;flex-shrink:0}.role-stat-icon svg{width:24px;height:24px}.role-stat-value{font-size:1.75rem;font-weight:800;color:var(--text-primary);letter-spacing:-.03em;line-height:1}.role-stat-label{font-size:.8125rem;font-weight:500;color:var(--text-secondary);margin-top:3px}@media (max-width:900px){.role-stats-grid{grid-template-columns:repeat(2,1fr)}}@media (max-width:480px){.role-stats-grid{grid-template-columns:1fr 1fr}.role-stat-value{font-size:1.375rem}}.role-list-panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);display:flex;flex-direction:column;gap:.75rem;padding:1.25rem;box-shadow:var(--shadow-sm);height:100%}.role-list-header{display:flex;align-items:center;justify-content:space-between}.role-list-title{font-size:.9375rem;font-weight:700;color:var(--text-primary)}.role-add-btn{display:flex;align-items:center;gap:4px;height:32px;padding:0 .75rem;background:var(--primary);color:#fff;border:none;border-radius:var(--radius-sm);font-size:.8125rem;font-weight:600;cursor:pointer;font-family:var(--font);transition:background var(--transition)}.role-add-btn svg{width:14px;height:14px}.role-add-btn:hover{background:var(--primary-dark)}.role-search-wrap{position:relative}.role-search-icon{position:absolute;left:.625rem;top:50%;transform:translateY(-50%);color:var(--text-muted);display:flex;pointer-events:none}.role-search-icon svg{width:14px;height:14px}.role-search-input{width:100%;height:36px;padding:0 .75rem 0 2rem;border:1.5px solid var(--border);border-radius:var(--radius-md);font-size:.8125rem;color:var(--text-primary);background:var(--bg-subtle);font-family:var(--font);transition:border-color var(--transition)}.role-search-input:focus{outline:none;border-color:var(--primary)}.role-search-input::-webkit-search-cancel-button{display:none}.role-filter-select{width:100%;height:36px;padding:0 2rem 0 .75rem;border:1.5px solid var(--border);border-radius:var(--radius-md);font-size:.8125rem;color:var(--text-secondary);background:var(--surface);font-family:var(--font);-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .5rem center;background-size:14px;cursor:pointer;transition:border-color var(--transition)}.role-filter-select:focus{outline:none;border-color:var(--primary)}.role-items{list-style:none;display:flex;flex-direction:column;gap:4px;overflow-y:auto;flex:1;min-height:0}.role-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:2rem 1rem;color:var(--text-muted);list-style:none}.role-item{display:flex;align-items:center;gap:.75rem;padding:.75rem;border-radius:var(--radius-md);cursor:pointer;transition:background var(--transition);border:1.5px solid transparent}.role-item:hover{background:var(--bg-subtle)}.role-item--active{background:var(--primary-light);border-color:var(--primary)}.role-item-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0}.role-item-body{flex:1;min-width:0}.role-item-name{font-size:.875rem;font-weight:600;color:var(--text-primary)}.role-item--active .role-item-name{color:var(--primary-dark)}.role-item-meta{font-size:.75rem;color:var(--text-muted);margin-top:1px}.role-item-actions{display:flex;gap:3px;opacity:0;transition:opacity var(--transition)}.role-item:hover .role-item-actions,.role-item--active .role-item-actions{opacity:1}.role-icon-btn{width:26px;height:26px;background:none;border:none;border-radius:var(--radius-xs);display:flex;align-items:center;justify-content:center;cursor:pointer;color:var(--text-muted);transition:background var(--transition),color var(--transition)}.role-icon-btn svg{width:13px;height:13px}.role-icon-btn:hover{background:var(--border);color:var(--text-primary)}.role-icon-btn--danger{color:var(--error)}.role-icon-btn--danger:hover{background:var(--error-bg)}.role-modal-box{background:var(--surface);border-radius:var(--radius-xl);width:100%;max-width:760px;max-height:90vh;display:flex;flex-direction:column;overflow:hidden;box-shadow:var(--shadow-lg);animation:slideUp .2s var(--ease)}@keyframes slideUp{0%{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.role-modal-icon{width:40px;height:40px;background:var(--primary-light);border-radius:var(--radius-md);display:flex;align-items:center;justify-content:center;flex-shrink:0}.role-modal-icon svg{width:20px;height:20px;stroke:var(--primary)}.role-modal-body{overflow-y:auto;padding:1.5rem;display:flex;flex-direction:column;gap:1.5rem;flex:1;min-height:0}.rm-section{display:flex;flex-direction:column;gap:.875rem}.rm-section-title{display:flex;align-items:center;gap:.5rem;font-size:.875rem;font-weight:700;color:var(--text-secondary);padding-bottom:.5rem;border-bottom:1px solid var(--border)}.rm-section-title svg{width:16px;height:16px}.rm-field{display:flex;flex-direction:column;gap:5px}.rm-label{font-size:.8125rem;font-weight:600;color:var(--text-primary)}.rm-required{color:var(--error);margin-left:2px}.rm-optional{font-weight:400;color:var(--text-muted);font-size:.75rem;margin-left:4px}.rm-input,.rm-select,.rm-textarea{border:1.5px solid var(--border);border-radius:var(--radius-md);font-size:.875rem;color:var(--text-primary);background:var(--surface);font-family:var(--font);transition:border-color var(--transition),box-shadow var(--transition);width:100%}.rm-input,.rm-select{height:40px;padding:0 .75rem}.rm-textarea{padding:.625rem .75rem;resize:vertical}.rm-input:focus,.rm-select:focus,.rm-textarea:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-ring)}.rm-select:disabled{background-color:var(--bg-subtle);color:var(--text-muted);cursor:not-allowed}.rm-input--error{border-color:var(--error)}.rm-error{font-size:.75rem;color:var(--error);font-weight:500}.rm-select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .5rem center;background-size:14px;padding-right:2rem;cursor:pointer}.rm-perm-table-wrap{overflow-x:auto;border:1px solid var(--border);border-radius:var(--radius-md)}.rm-perm-table{width:100%;border-collapse:collapse;font-size:.8125rem}.rm-perm-table thead{background:var(--bg-subtle)}.rm-perm-table th{padding:.5rem .75rem;text-align:center;font-size:.6875rem;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.06em;border-bottom:1px solid var(--border)}.rm-perm-table th:first-child{text-align:left;padding-left:1rem;min-width:140px}.rm-perm-table tr{border-bottom:1px solid var(--border);transition:background var(--transition)}.rm-perm-table tr:last-child{border-bottom:none}.rm-perm-table tr:hover{background:var(--bg-subtle)}.rm-mod-label{padding:.625rem 1rem;font-size:.875rem;font-weight:500;color:var(--text-secondary)}.rm-perm-cell{padding:.625rem .75rem;text-align:center}.rm-check{width:20px;height:20px;border:1.5px solid var(--border-strong);border-radius:var(--radius-xs);background:var(--surface);cursor:pointer;display:flex;align-items:center;justify-content:center;margin:0 auto;padding:0;transition:background var(--transition),border-color var(--transition)}.rm-check svg{width:12px;height:12px}.rm-check--on{background:var(--primary);border-color:var(--primary)}.rm-check--on svg{stroke:#fff}.role-detail-box{background:var(--surface);border-radius:var(--radius-xl);width:100%;max-width:600px;max-height:90vh;display:flex;flex-direction:column;overflow:hidden;box-shadow:var(--shadow-lg);animation:slideUp .2s var(--ease)}.rdm-header{position:relative;padding:1.375rem 1.5rem;border-bottom:1px solid var(--border)}.rdm-color-strip{position:absolute;top:0;left:0;right:0;height:3px}.rdm-header-content{display:flex;align-items:flex-start;gap:.875rem;margin-top:.5rem}.rdm-icon{width:44px;height:44px;border-radius:var(--radius-md);display:flex;align-items:center;justify-content:center;flex-shrink:0}.rdm-icon svg{width:22px;height:22px}.rdm-name{font-size:1.125rem;font-weight:700;color:var(--text-primary);margin-bottom:3px}.rdm-desc{font-size:.8125rem;color:var(--text-secondary);line-height:1.4}.rdm-body{overflow-y:auto;padding:1.5rem;display:flex;flex-direction:column;gap:1.5rem;flex:1;min-height:0}.rdm-company-block{display:flex;align-items:center;gap:.875rem;background:var(--primary-light);border:1px solid var(--primary);border-radius:var(--radius-md);padding:.875rem 1rem;margin-bottom:.875rem}.rdm-company-icon{width:38px;height:38px;border-radius:var(--radius-sm);background:var(--surface);color:var(--primary);display:flex;align-items:center;justify-content:center;flex-shrink:0}.rdm-company-icon svg{width:18px;height:18px}.rdm-company-name{font-size:.9375rem;font-weight:700;color:var(--text-primary)}.rdm-meta-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.75rem}.rdm-meta-item{background:var(--bg-subtle);border:1px solid var(--border);border-radius:var(--radius-md);padding:.75rem 1rem}.rdm-meta-label{font-size:.75rem;color:var(--text-muted);font-weight:500;margin-bottom:3px;text-transform:uppercase;letter-spacing:.05em}.rdm-meta-value{font-size:.9375rem;font-weight:600;color:var(--text-primary)}.rdm-section{display:flex;flex-direction:column;gap:.75rem}.rdm-section-title{display:flex;align-items:center;justify-content:space-between;font-size:.875rem;font-weight:700;color:var(--text-secondary);padding-bottom:.5rem;border-bottom:1px solid var(--border)}.rdm-count{font-size:.75rem;font-weight:600;padding:2px 8px;background:var(--primary-light);color:var(--primary);border-radius:var(--radius-full)}.rdm-count--global{background:var(--success-bg);color:#065f46}.rdm-none{font-size:.875rem;color:var(--text-muted);font-style:italic}.rdm-perm-list{display:flex;flex-direction:column;gap:.5rem}.rdm-perm-item{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.625rem .875rem;background:var(--bg-subtle);border:1px solid var(--border);border-radius:var(--radius-md);flex-wrap:wrap}.rdm-perm-module{font-size:.875rem;font-weight:600;color:var(--text-primary);flex-shrink:0}.rdm-perm-actions{display:flex;flex-wrap:wrap;gap:4px}.rdm-action-badge{font-size:.6875rem;font-weight:600;padding:2px 7px;background:var(--primary-light);color:var(--primary);border-radius:var(--radius-full)}.rdm-global-list{display:flex;flex-direction:column;gap:.5rem}.rdm-global-item{display:flex;align-items:flex-start;gap:.625rem;padding:.625rem .875rem;background:var(--success-bg);border:1px solid #A7F3D0;border-radius:var(--radius-md)}.rdm-global-item svg{width:16px;height:16px;stroke:#065f46;flex-shrink:0;margin-top:2px}.rdm-global-name{font-size:.875rem;font-weight:600;color:#065f46}.rdm-global-desc{font-size:.75rem;color:#047857}@media (max-width:480px){.rdm-meta-grid{grid-template-columns:1fr}}.rp-page{display:flex;flex-direction:column;gap:1.5rem;flex:1}.rp-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1rem}.rp-title{font-size:1.375rem;font-weight:800;color:var(--text-primary);letter-spacing:-.025em;margin-bottom:2px}.rp-subtitle{font-size:.875rem;color:var(--text-muted)}.rp-add-btn{display:inline-flex;align-items:center;gap:.5rem;height:40px;padding:0 1.25rem;background:var(--primary);color:#fff;border:none;border-radius:var(--radius-md);font-size:.875rem;font-weight:600;cursor:pointer;font-family:var(--font);transition:background var(--transition),box-shadow var(--transition);white-space:nowrap}.rp-add-btn svg{width:16px;height:16px}.rp-add-btn:hover{background:var(--primary-dark);box-shadow:0 4px 12px #4f46e54d}.rp-body{display:grid;grid-template-columns:280px 1fr;gap:1.25rem;align-items:start}.rp-matrix-wrap{display:flex;flex-direction:column;gap:1.25rem;min-width:0}.rp-matrix-placeholder{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:4rem 2rem;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.75rem;text-align:center;box-shadow:var(--shadow-sm)}.rp-matrix-placeholder svg{width:48px;height:48px;stroke:var(--text-muted)}.rp-matrix-placeholder p{font-size:1rem;font-weight:600;color:var(--text-secondary)}.rp-matrix-placeholder span{font-size:.875rem;color:var(--text-muted)}@media (max-width:1024px){.rp-body{grid-template-columns:240px 1fr}}@media (max-width:768px){.rp-body{grid-template-columns:1fr}.rp-header{flex-direction:column;align-items:flex-start}.rp-add-btn{width:100%;justify-content:center}}.rp-layout{display:grid;grid-template-columns:300px 1fr;gap:1.25rem;align-items:start}.rp-panel-left,.rp-panel-right{min-width:0}.rp-empty-matrix{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:3rem 2rem;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.75rem;text-align:center}.rp-empty-matrix svg{width:48px;height:48px;stroke:var(--text-muted)}.rp-empty-matrix p{font-size:1rem;font-weight:600;color:var(--text-secondary);margin:0}.rp-search-wrap{position:relative}.rp-search-icon{position:absolute;left:.75rem;top:50%;transform:translateY(-50%);width:16px;height:16px;stroke:var(--text-muted)}.rp-search{width:100%;padding:.5rem .875rem .5rem 2.25rem;border:1.5px solid var(--border);border-radius:var(--radius-md);font-size:.875rem;background:var(--surface);color:var(--text-primary)}.rp-toast{position:fixed;top:1.25rem;right:1.25rem;z-index:9999;padding:.75rem 1.25rem;border-radius:var(--radius-md);font-size:.875rem;font-weight:600;box-shadow:0 4px 16px #0000001f}.rp-toast--success{background:#10b981;color:#fff}.rp-toast--error{background:#ef4444;color:#fff}@media (max-width:1024px){.rp-layout{grid-template-columns:260px 1fr}}@media (max-width:768px){.rp-layout{grid-template-columns:1fr}}.prod-stats-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:1rem}.prod-stat-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.125rem;display:flex;align-items:center;gap:.875rem;box-shadow:var(--shadow-sm);transition:box-shadow var(--transition),transform var(--transition)}.prod-stat-card:hover{box-shadow:var(--shadow-md);transform:translateY(-1px)}.prod-stat-icon{width:44px;height:44px;border-radius:var(--radius-md);display:flex;align-items:center;justify-content:center;flex-shrink:0}.prod-stat-icon svg{width:22px;height:22px}.prod-stat-value{font-size:1.5rem;font-weight:800;color:var(--text-primary);letter-spacing:-.03em;line-height:1}.prod-stat-label{font-size:.75rem;font-weight:500;color:var(--text-secondary);margin-top:3px}@media (max-width:1200px){.prod-stats-grid{grid-template-columns:repeat(3,1fr)}}@media (max-width:768px){.prod-stats-grid{grid-template-columns:repeat(2,1fr)}}.pf-wrap{display:flex;flex-direction:column;gap:.625rem}.pf-row{display:flex;gap:.75rem;flex-wrap:wrap;align-items:center}.pf-search-wrap{position:relative;flex:1;min-width:200px;max-width:300px}.pf-search-icon{position:absolute;left:.75rem;top:50%;transform:translateY(-50%);color:var(--text-muted);display:flex;pointer-events:none}.pf-search-icon svg,.pf-clear svg{width:15px;height:15px}.pf-search{width:100%;height:38px;padding:0 2rem 0 2.25rem;border:1.5px solid var(--border);border-radius:var(--radius-md);font-size:.875rem;color:var(--text-primary);background:var(--surface);font-family:var(--font);transition:border-color var(--transition),box-shadow var(--transition)}.pf-search:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-ring)}.pf-search::-webkit-search-cancel-button{display:none}.pf-clear{position:absolute;right:.5rem;top:50%;transform:translateY(-50%);background:none;border:none;cursor:pointer;color:var(--text-muted);display:flex}.pf-selects{display:flex;gap:.5rem;flex-wrap:wrap;align-items:center}.pf-select{height:38px;padding:0 1.75rem 0 .75rem;border:1.5px solid var(--border);border-radius:var(--radius-md);font-size:.8125rem;color:var(--text-secondary);background:var(--surface);font-family:var(--font);cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .5rem center;background-size:13px;transition:border-color var(--transition)}.pf-select:focus{outline:none;border-color:var(--primary)}.pf-reset{display:flex;align-items:center;gap:4px;height:38px;padding:0 .875rem;background:none;border:1.5px solid var(--border);border-radius:var(--radius-md);font-size:.8125rem;font-weight:600;color:var(--text-secondary);cursor:pointer;font-family:var(--font);white-space:nowrap;transition:border-color var(--transition),color var(--transition)}.pf-reset svg{width:14px;height:14px}.pf-reset:hover{border-color:var(--error);color:var(--error)}.pf-count{font-size:.8125rem;color:var(--text-muted);font-weight:500}@media (max-width:700px){.pf-search-wrap{max-width:100%}.pf-selects{width:100%}.pf-select{flex:1;min-width:0}}.prod-table-wrap{overflow-x:auto;border-radius:var(--radius-lg);border:1px solid var(--border);box-shadow:var(--shadow-sm)}.prod-table{width:100%;border-collapse:collapse;background:var(--surface);font-size:.875rem}.prod-table thead{background:var(--bg-subtle);border-bottom:1px solid var(--border)}.prod-table th{padding:.75rem .875rem;text-align:left;font-size:.75rem;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.06em;white-space:nowrap}.prod-table td{padding:.8125rem .875rem;border-bottom:1px solid var(--border);vertical-align:middle}.prod-table-row:last-child td{border-bottom:none}.prod-table-row:hover td{background:var(--bg-subtle)}.prod-cell-name{display:flex;align-items:center;gap:.75rem;min-width:180px}.prod-img-placeholder{width:40px;height:40px;border-radius:var(--radius-md);display:flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden}.prod-img-placeholder svg{width:20px;height:20px}.prod-name{font-size:.9375rem;font-weight:700;color:var(--text-primary);white-space:nowrap}.prod-brand{font-size:.75rem;color:var(--text-muted)}.prod-sku{font-size:.75rem;font-weight:600;color:var(--text-muted);font-family:monospace;background:var(--bg-subtle);padding:2px 6px;border-radius:var(--radius-xs);border:1px solid var(--border)}.prod-dept-badge{display:inline-block;padding:2px 8px;border-radius:var(--radius-full);font-size:.75rem;font-weight:600;white-space:nowrap}.prod-cat-text{font-size:.8125rem;color:var(--text-secondary)}.prod-local{font-size:.8125rem;font-weight:600;color:var(--text-secondary);white-space:nowrap}.prod-unit{font-size:.8125rem;color:var(--text-secondary);font-weight:500}.prod-price{font-size:.9375rem;font-weight:700;color:var(--text-primary);white-space:nowrap}.prod-price--sell{color:var(--success)}.prod-currency-badge{display:inline-block;font-size:.625rem;font-weight:700;padding:1px 5px;background:var(--primary-light);color:var(--primary);border-radius:var(--radius-xs);margin-left:3px}.prod-currency-badge--sell{background:var(--success-bg);color:var(--success)}.prod-stock-badge{display:inline-block;padding:2px 8px;border-radius:var(--radius-full);font-size:.75rem;font-weight:700;white-space:nowrap}.prod-stock--ok{background:var(--success-bg);color:#065f46}.prod-stock--low{background:var(--warning-bg);color:#92400e}.prod-stock--rupture{background:var(--error-bg);color:#991b1b}.prod-stock-minmax{font-size:.6875rem;color:var(--text-muted);margin-top:2px;white-space:nowrap}.prod-status-badge{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border-radius:var(--radius-full);font-size:.75rem;font-weight:600;white-space:nowrap}.prod-status-dot{width:5px;height:5px;border-radius:50%;flex-shrink:0;background:currentColor}.prod-date{font-size:.75rem;color:var(--text-muted);white-space:nowrap}.prod-actions{display:flex;gap:4px}.prod-action-btn{width:30px;height:30px;border:none;border-radius:var(--radius-sm);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:filter var(--transition)}.prod-action-btn svg{width:14px;height:14px}.prod-btn--view{background:var(--info-bg);color:var(--info)}.prod-btn--edit{background:var(--warning-bg);color:var(--warning)}.prod-btn--duplicate{background:#ede9fe;color:#6d28d9}.prod-action-btn:hover{filter:brightness(.88)}.prod-table-empty{text-align:center;padding:4rem 2rem;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg)}.prod-table-empty svg{width:48px;height:48px;stroke:var(--text-muted);margin:0 auto 1rem}.prod-table-empty p{font-size:1rem;font-weight:600;color:var(--text-secondary);margin-bottom:.25rem}.prod-table-empty span{font-size:.875rem;color:var(--text-muted)}.prod-cards-mobile{display:none;flex-direction:column;gap:.75rem}.prod-mobile-card{background:var(--surface);border:1px solid var(--border);border-left:3px solid;border-radius:var(--radius-lg);padding:1rem;display:flex;flex-direction:column;gap:.75rem;box-shadow:var(--shadow-sm)}.prod-mobile-top{display:flex;align-items:center;gap:.75rem}.prod-mobile-info{flex:1;min-width:0}.prod-mobile-badges{display:flex;gap:.5rem;flex-wrap:wrap}.prod-mobile-prices{display:grid;grid-template-columns:repeat(3,1fr);gap:.5rem}.prod-mobile-price-label{display:block;font-size:.6875rem;color:var(--text-muted);font-weight:600;text-transform:uppercase;letter-spacing:.05em;margin-bottom:2px}.prod-mobile-actions{display:flex;gap:.5rem}.prod-mobile-btn{flex:1;height:36px;border:none;border-radius:var(--radius-md);display:flex;align-items:center;justify-content:center;gap:5px;font-size:.8125rem;font-weight:600;cursor:pointer;font-family:var(--font)}.prod-mobile-btn svg{width:14px;height:14px}.prod-mobile-btn.prod-btn--view{background:var(--info-bg);color:var(--info)}.prod-mobile-btn.prod-btn--edit{background:var(--warning-bg);color:var(--warning)}.prod-mobile-btn.prod-btn--duplicate{background:#ede9fe;color:#6d28d9}@media (max-width:768px){.prod-table-wrap{display:none}.prod-cards-mobile{display:flex}}.pm-box{background:var(--surface);border-radius:var(--radius-xl);width:100%;max-width:640px;max-height:90vh;display:flex;flex-direction:column;overflow:hidden;box-shadow:var(--shadow-lg);animation:modalSlideUp .2s var(--ease)}.pm-icon{width:40px;height:40px;background:var(--primary-light);border-radius:var(--radius-md);display:flex;align-items:center;justify-content:center;flex-shrink:0}.pm-icon svg{width:20px;height:20px;stroke:var(--primary)}.pm-sections{display:flex;border-bottom:1px solid var(--border);padding:0 1.5rem;overflow-x:auto;flex-shrink:0}.pm-section-btn{height:42px;padding:0 1rem;background:none;border:none;border-bottom:2.5px solid transparent;font-size:.875rem;font-weight:500;color:var(--text-muted);cursor:pointer;font-family:var(--font);white-space:nowrap;transition:color var(--transition);margin-bottom:-1px}.pm-section-btn:hover{color:var(--text-primary)}.pm-section-btn--active{color:var(--primary);border-bottom-color:var(--primary);font-weight:600}.pm-body{overflow-y:auto;padding:1.5rem;display:flex;flex-direction:column;gap:1.125rem;flex:1;min-height:0}.pm-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:.875rem}.pm-field{display:flex;flex-direction:column;gap:4px}.pm-label{font-size:.8125rem;font-weight:600;color:var(--text-primary)}.pm-req{color:var(--error);margin-left:2px}.pm-input,.pm-select,.pm-textarea{border:1.5px solid var(--border);border-radius:var(--radius-md);font-size:.875rem;color:var(--text-primary);background:var(--surface);font-family:var(--font);width:100%;transition:border-color var(--transition),box-shadow var(--transition)}.pm-input,.pm-select{height:40px;padding:0 .75rem}.pm-textarea{padding:.625rem .75rem;resize:vertical}.pm-input:focus,.pm-select:focus,.pm-textarea:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-ring)}.pm-err-border{border-color:var(--error)}.pm-err{font-size:.75rem;color:var(--error);font-weight:500}.pm-select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .5rem center;background-size:14px;padding-right:2rem;cursor:pointer}.pm-select:disabled,.pm-input:disabled,.pm-input:read-only{background-color:var(--bg-subtle);color:var(--text-muted);cursor:not-allowed}.pm-img-upload{display:flex;align-items:center;gap:1rem;padding:.875rem;background:var(--bg-subtle);border:1.5px dashed var(--border);border-radius:var(--radius-md)}.pm-img-preview{width:56px;height:56px;border-radius:var(--radius-md);background:var(--border);display:flex;align-items:center;justify-content:center;flex-shrink:0}.pm-img-preview svg{width:26px;height:26px;stroke:var(--text-muted)}.pm-upload-btn{height:34px;padding:0 1rem;background:var(--surface);border:1.5px solid var(--border);border-radius:var(--radius-md);font-size:.8125rem;font-weight:600;color:var(--text-secondary);cursor:pointer;font-family:var(--font);display:block;margin-bottom:4px}.pm-upload-hint{font-size:.75rem;color:var(--text-muted)}.pm-info-box{display:flex;align-items:center;gap:.625rem;padding:.875rem 1rem;background:var(--info-bg);border:1px solid #BFDBFE;border-radius:var(--radius-md);font-size:.875rem;color:#1e40af}.pm-info-box svg{width:16px;height:16px;stroke:#2563eb;flex-shrink:0}.pm-price-section{background:var(--bg-subtle);border:1px solid var(--border);border-radius:var(--radius-md);padding:1rem}.pm-price-section--sell{border-color:var(--success)}.pm-price-title{font-size:.8125rem;font-weight:700;color:var(--text-secondary);margin-bottom:.75rem;text-transform:uppercase;letter-spacing:.06em}.pm-currency-note{display:flex;align-items:center;gap:.625rem;padding:.75rem 1rem;background:#fefce8;border:1px solid #FDE68A;border-radius:var(--radius-md);font-size:.8125rem;color:#92400e}.pm-currency-note svg{width:16px;height:16px;stroke:#d97706;flex-shrink:0}.pm-stock-legend{display:flex;gap:.625rem;flex-wrap:wrap}.pm-stock-legend-item{padding:4px 12px;border-radius:var(--radius-full);font-size:.75rem;font-weight:600}.pm-stock-legend--ok{background:var(--success-bg);color:#065f46}.pm-stock-legend--low{background:var(--warning-bg);color:#92400e}.pm-stock-legend--rupture{background:var(--error-bg);color:#991b1b}@media (max-width:580px){.pm-grid-2{grid-template-columns:1fr}.pm-box{max-height:95vh}}.pm-regen-btn{background:none;border:none;cursor:pointer;color:var(--primary);font-size:.875rem;font-weight:700;margin-left:.5rem;padding:0 4px;border-radius:var(--radius-sm);transition:background var(--transition)}.pm-regen-btn:hover{background:var(--primary-light)}.pm-type-btns{display:flex;gap:.5rem;flex-wrap:wrap}.pm-type-btn{height:36px;padding:0 1rem;border:1.5px solid var(--border);border-radius:var(--radius-md);background:var(--bg-subtle);font-size:.8125rem;font-weight:500;color:var(--text-secondary);cursor:pointer;transition:all var(--transition)}.pm-type-btn:hover{border-color:var(--primary);color:var(--primary)}.pm-type-btn--active{background:var(--primary);border-color:var(--primary);color:#fff;font-weight:700}.pm-conversion-box{display:flex;align-items:center;gap:.75rem;padding:.75rem 1rem;background:var(--success-bg);border:1px solid #A7F3D0;border-radius:var(--radius-md);font-size:.875rem;color:#065f46;margin-top:.5rem}.pm-conversion-box svg{width:16px;height:16px;flex-shrink:0;stroke:#065f46}.pm-conv-arrow{color:var(--text-muted)}.pm-conv-result{font-size:1rem;font-weight:800;color:#065f46}.pm-conv-rate{font-size:.75rem;color:#10b981;font-weight:500}.pm-multiplier-box{display:flex;align-items:flex-end;gap:1rem;margin-bottom:.875rem;padding:1rem;background:var(--info-bg);border:1px solid #BFDBFE;border-radius:var(--radius-md)}.pm-label-hint{font-size:.6875rem;font-weight:400;color:var(--text-muted);margin-left:.25rem}.pm-mult-preview{display:flex;flex-direction:column;gap:.25rem;min-width:160px;flex-shrink:0}.pm-mult-formula{font-size:.8125rem;color:var(--text-muted)}.pm-mult-result{font-size:1.25rem;font-weight:800;color:var(--primary);white-space:nowrap}.pm-img-preview--has-img{background:transparent;border:2px solid var(--primary);overflow:hidden}.pm-upload-btn{display:inline-flex;align-items:center;gap:.375rem;height:36px;padding:0 1rem;background:var(--primary);color:#fff;border:none;border-radius:var(--radius-md);font-size:.875rem;font-weight:600;cursor:pointer;font-family:var(--font);transition:background var(--transition)}.pm-upload-btn:hover{background:var(--primary-dark)}.pdm-box{background:var(--surface);border-radius:var(--radius-xl);width:100%;max-width:720px;max-height:90vh;display:flex;flex-direction:column;overflow:hidden;box-shadow:var(--shadow-lg);animation:modalSlideUp .2s var(--ease)}.pdm-header{border-top:3px solid;border-bottom:1px solid var(--border);flex-shrink:0}.pdm-header-top{display:flex;align-items:flex-start;gap:.875rem;padding:1.25rem 1.5rem .875rem;flex-wrap:wrap}.pdm-img{width:64px;height:64px;border-radius:var(--radius-lg);display:flex;align-items:center;justify-content:center;flex-shrink:0}.pdm-img svg{width:30px;height:30px}.pdm-header-info{flex:1;min-width:0}.pdm-name{font-size:1.125rem;font-weight:700;color:var(--text-primary);margin-bottom:2px}.pdm-brand{font-size:.8125rem;color:var(--text-muted);margin-bottom:.5rem}.pdm-sku{font-family:monospace;background:var(--bg-subtle);padding:1px 5px;border-radius:var(--radius-xs);border:1px solid var(--border)}.pdm-badges{display:flex;gap:.375rem;flex-wrap:wrap}.pdm-dept-badge,.pdm-cat-badge,.pdm-unit-badge{font-size:.6875rem;font-weight:600;padding:2px 8px;border-radius:var(--radius-full)}.pdm-cat-badge{background:var(--bg-subtle);color:var(--text-secondary);border:1px solid var(--border)}.pdm-unit-badge{background:var(--primary-light);color:var(--primary)}.pdm-header-right{display:flex;align-items:center;gap:.5rem;flex-shrink:0}.pdm-edit-btn{display:flex;align-items:center;gap:5px;height:34px;padding:0 .875rem;background:none;border:1.5px solid var(--border);border-radius:var(--radius-md);font-size:.8125rem;font-weight:600;color:var(--text-secondary);cursor:pointer;font-family:var(--font);transition:border-color var(--transition),color var(--transition)}.pdm-edit-btn svg{width:14px;height:14px}.pdm-edit-btn:hover{border-color:var(--primary);color:var(--primary)}.pdm-tabs{display:flex;padding:0 1.5rem;border-top:1px solid var(--border);overflow-x:auto}.pdm-tab{height:42px;padding:0 1rem;background:none;border:none;border-bottom:2.5px solid transparent;font-size:.875rem;font-weight:500;color:var(--text-muted);cursor:pointer;font-family:var(--font);white-space:nowrap;transition:color var(--transition);margin-bottom:-1px}.pdm-tab:hover{color:var(--text-primary)}.pdm-tab--active{font-weight:600}.pdm-body{overflow-y:auto;flex:1;min-height:0}.pdm-section{padding:1.5rem;display:flex;flex-direction:column;gap:1.25rem}.pdm-info-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.75rem}.pdm-company-block{display:flex;align-items:center;gap:.875rem;background:var(--primary-light);border:1px solid var(--primary);border-radius:var(--radius-md);padding:.875rem 1rem;margin-bottom:.75rem}.pdm-company-icon{width:38px;height:38px;border-radius:var(--radius-sm);background:var(--surface);color:var(--primary);display:flex;align-items:center;justify-content:center;flex-shrink:0}.pdm-company-icon svg{width:18px;height:18px}.pdm-company-name{font-size:.9375rem;font-weight:700;color:var(--text-primary)}.pdm-company-city{font-size:.8125rem;color:var(--text-muted);margin-top:2px}.pdm-info-item{background:var(--bg-subtle);border:1px solid var(--border);border-radius:var(--radius-md);padding:.75rem 1rem}.pdm-info-label{font-size:.6875rem;color:var(--text-muted);font-weight:600;text-transform:uppercase;letter-spacing:.05em;margin-bottom:3px}.pdm-info-value{font-size:.9375rem;font-weight:600;color:var(--text-primary)}.pdm-desc-box{background:var(--bg-subtle);border:1px solid var(--border);border-radius:var(--radius-md);padding:1rem}.pdm-desc-label{font-size:.6875rem;color:var(--text-muted);font-weight:700;text-transform:uppercase;letter-spacing:.05em;margin-bottom:.375rem}.pdm-desc-text{font-size:.9375rem;color:var(--text-secondary);line-height:1.6}.pdm-commercial-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.pdm-price-card{border-radius:var(--radius-lg);padding:1.25rem;border:1px solid var(--border)}.pdm-price-card--buy{background:var(--bg-subtle)}.pdm-price-card--sell{background:var(--success-bg);border-color:#a7f3d0}.pdm-price-card-label{font-size:.75rem;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.06em;margin-bottom:.5rem}.pdm-price-card-value{font-size:1.75rem;font-weight:800;color:var(--text-primary);letter-spacing:-.03em;line-height:1}.pdm-price-card-cur{display:inline-block;margin-top:.375rem;font-size:.875rem;font-weight:700;color:var(--text-secondary)}.pdm-price-card--sell .pdm-price-card-value{color:var(--success)}.pdm-multi-currency{display:flex;align-items:center;gap:.625rem;padding:.75rem 1rem;background:#fefce8;border:1px solid #FDE68A;border-radius:var(--radius-md);font-size:.875rem;color:#92400e}.pdm-multi-currency svg{width:16px;height:16px;stroke:#d97706;flex-shrink:0}.pdm-margin-preview{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);padding:1rem;text-align:center}.pdm-margin-label{font-size:.75rem;color:var(--text-muted);font-weight:600;text-transform:uppercase;letter-spacing:.05em;margin-bottom:.375rem}.pdm-margin-value{font-size:1.5rem;font-weight:800;letter-spacing:-.03em;margin-bottom:3px}.pdm-margin-note{font-size:.75rem;color:var(--text-muted);font-style:italic}.pdm-stock-status{display:flex;align-items:center;justify-content:space-between}.pdm-stock-badge{padding:4px 12px;border-radius:var(--radius-full);font-size:.875rem;font-weight:700}.pdm-stock--ok{background:var(--success-bg);color:#065f46}.pdm-stock--low{background:var(--warning-bg);color:#92400e}.pdm-stock--rupture{background:var(--error-bg);color:#991b1b}.pdm-stock-qty{font-size:1.5rem;font-weight:800;color:var(--text-primary)}.pdm-stock-bar-wrap{display:flex;align-items:center;gap:.75rem}.pdm-stock-bar-bg{flex:1;height:10px;background:var(--border);border-radius:var(--radius-full);overflow:hidden}.pdm-stock-bar-fill{height:100%;border-radius:var(--radius-full);transition:width .6s var(--ease)}.pdm-stock-pct{font-size:.875rem;font-weight:700;color:var(--text-secondary);width:40px;text-align:right}.pdm-stock-metrics{display:grid;grid-template-columns:repeat(2,1fr);gap:.75rem}.pdm-stock-metric{background:var(--bg-subtle);border:1px solid var(--border);border-radius:var(--radius-md);padding:.75rem 1rem}.pdm-stock-value{background:var(--primary-light);border:1px solid #C7D2FE;border-radius:var(--radius-md);padding:1rem;text-align:center}.pdm-stock-value-label{font-size:.75rem;font-weight:700;color:var(--primary);text-transform:uppercase;letter-spacing:.06em;margin-bottom:.375rem}.pdm-stock-value-amount{font-size:1.375rem;font-weight:800;color:var(--primary-dark)}.pdm-history-list{list-style:none;display:flex;flex-direction:column}.pdm-history-item{display:flex;gap:.875rem}.pdm-history-line-wrap{display:flex;flex-direction:column;align-items:center;flex-shrink:0}.pdm-history-dot{width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0}.pdm-history-line{width:1.5px;flex:1;min-height:12px;background:var(--border);margin:4px 0}.pdm-history-content{flex:1;padding-bottom:1.125rem}.pdm-history-row{display:flex;align-items:flex-start;justify-content:space-between;gap:.5rem;margin-bottom:2px}.pdm-history-type{font-size:.875rem;font-weight:700;color:var(--text-primary)}.pdm-history-date{font-size:.75rem;color:var(--text-muted);white-space:nowrap}.pdm-history-detail{font-size:.8125rem;color:var(--text-secondary);margin-bottom:4px}.pdm-history-user{display:flex;align-items:center;gap:4px;font-size:.75rem;color:var(--text-muted)}.pdm-history-user svg{width:12px;height:12px}@media (max-width:600px){.pdm-info-grid,.pdm-commercial-grid,.pdm-stock-metrics{grid-template-columns:1fr}.pdm-box{max-height:95vh}}.pp-page{display:flex;flex-direction:column;gap:1.5rem;flex:1}.pp-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1rem}.pp-title{font-size:1.375rem;font-weight:800;color:var(--text-primary);letter-spacing:-.025em;margin-bottom:3px}.pp-subtitle{display:flex;align-items:center;gap:4px;font-size:.875rem;color:var(--text-muted);flex-wrap:wrap}.pp-bc{font-weight:600;color:var(--text-muted)}.pp-bc--active{color:var(--primary);font-weight:700}.pp-add-btn{display:inline-flex;align-items:center;gap:.5rem;height:40px;padding:0 1.25rem;background:var(--primary);color:#fff;border:none;border-radius:var(--radius-md);font-size:.875rem;font-weight:600;cursor:pointer;font-family:var(--font);transition:background var(--transition),box-shadow var(--transition);white-space:nowrap}.pp-add-btn svg{width:16px;height:16px}.pp-add-btn:hover{background:var(--primary-dark);box-shadow:0 4px 12px #4f46e54d}.pp-filters-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.25rem;box-shadow:var(--shadow-sm)}@media (max-width:640px){.pp-header{flex-direction:column;align-items:flex-start}.pp-add-btn{width:100%;justify-content:center}}.ssc-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem}.ssc-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.125rem;display:flex;align-items:center;gap:.875rem;box-shadow:var(--shadow-sm);transition:box-shadow var(--transition),transform var(--transition)}.ssc-card:hover{box-shadow:var(--shadow-md);transform:translateY(-1px)}.ssc-icon{width:44px;height:44px;border-radius:var(--radius-md);display:flex;align-items:center;justify-content:center;flex-shrink:0}.ssc-icon svg{width:22px;height:22px}.ssc-value{font-size:1.5rem;font-weight:800;color:var(--text-primary);letter-spacing:-.03em;line-height:1}.ssc-label{font-size:.75rem;font-weight:500;color:var(--text-secondary);margin-top:3px}@media (max-width:1200px){.ssc-grid{grid-template-columns:repeat(4,1fr)}}@media (max-width:900px){.ssc-grid{grid-template-columns:repeat(2,1fr)}}@media (max-width:480px){.ssc-value{font-size:1.25rem}}.ss-root{position:relative;width:100%}.ss-trigger{width:100%;height:40px;padding:0 2rem 0 .75rem;border:1.5px solid var(--border);border-radius:var(--radius-md);background:var(--surface);font-family:var(--font);font-size:.875rem;color:var(--text-primary);cursor:pointer;display:flex;align-items:center;justify-content:space-between;text-align:left;transition:border-color var(--transition),box-shadow var(--transition);gap:.5rem}.ss-trigger:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-ring)}.ss-root--open .ss-trigger{border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-ring)}.ss-root--disabled .ss-trigger{opacity:.5;cursor:not-allowed;background:var(--bg-subtle)}.ss-trigger-label{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ss-trigger-label--placeholder{color:var(--text-muted)}.ss-chevron{width:14px;height:14px;stroke:var(--text-muted);flex-shrink:0;transition:transform var(--transition)}.ss-chevron--up{transform:rotate(180deg)}.ss-dropdown{position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:1;background:var(--surface);border:1.5px solid var(--primary);border-radius:var(--radius-md);box-shadow:var(--shadow-lg);overflow:hidden;animation:ssDropIn .14s var(--ease)}.ss-dropdown--up{top:auto;bottom:calc(100% + 4px);animation:ssDropInUp .14s var(--ease)}@keyframes ssDropInUp{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}.ss-search-wrap{display:flex;align-items:center;gap:.5rem;padding:.5rem .625rem;border-bottom:1px solid var(--border)}.ss-search-icon{width:14px;height:14px;stroke:var(--text-muted);flex-shrink:0}.ss-search-input{flex:1;border:none;outline:none;font-family:var(--font);font-size:.8125rem;color:var(--text-primary);background:transparent}.ss-search-input::placeholder{color:var(--text-muted)}.ss-search-clear{border:none;background:none;cursor:pointer;padding:0;display:flex;align-items:center;opacity:.6;flex-shrink:0}.ss-search-clear svg{width:13px;height:13px;stroke:var(--text-muted)}.ss-search-clear:hover{opacity:1}.ss-options{list-style:none;margin:0;padding:.25rem 0;max-height:220px;overflow-y:auto}.ss-option{display:flex;align-items:center;gap:.5rem;padding:.5rem .75rem;cursor:pointer;transition:background var(--transition);font-size:.875rem;color:var(--text-primary)}.ss-option:hover{background:var(--primary-light)}.ss-option--active{background:var(--primary-light);font-weight:600;color:var(--primary)}.ss-option--empty{color:var(--text-muted);font-style:italic;cursor:default;justify-content:center}.ss-option-label{flex:1}.ss-option-sub{font-size:.75rem;color:var(--text-muted);margin-left:auto;padding-left:.5rem}.ss-option-check{width:14px;height:14px;stroke:var(--primary);flex-shrink:0}.sf-wrap{display:flex;flex-direction:column;gap:.625rem}.sf-row{display:flex;gap:.75rem;flex-wrap:wrap;align-items:center}.sf-search-wrap{position:relative;flex:1;min-width:200px;max-width:300px}.sf-search-icon{position:absolute;left:.75rem;top:50%;transform:translateY(-50%);color:var(--text-muted);display:flex;pointer-events:none}.sf-search-icon svg,.sf-clear svg{width:15px;height:15px}.sf-search{width:100%;height:38px;padding:0 2rem 0 2.25rem;border:1.5px solid var(--border);border-radius:var(--radius-md);font-size:.875rem;color:var(--text-primary);background:var(--surface);font-family:var(--font);transition:border-color var(--transition)}.sf-search:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-ring)}.sf-search::-webkit-search-cancel-button{display:none}.sf-clear{position:absolute;right:.5rem;top:50%;transform:translateY(-50%);background:none;border:none;cursor:pointer;color:var(--text-muted);display:flex}.sf-selects{display:flex;gap:.5rem;flex-wrap:wrap;align-items:center}.sf-select{height:38px;padding:0 1.75rem 0 .75rem;border:1.5px solid var(--border);border-radius:var(--radius-md);font-size:.8125rem;color:var(--text-secondary);background:var(--surface);font-family:var(--font);cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .5rem center;background-size:13px;transition:border-color var(--transition)}.sf-select:focus{outline:none;border-color:var(--primary)}.sf-reset{display:flex;align-items:center;gap:4px;height:38px;padding:0 .875rem;background:none;border:1.5px solid var(--border);border-radius:var(--radius-md);font-size:.8125rem;font-weight:600;color:var(--text-secondary);cursor:pointer;font-family:var(--font);white-space:nowrap;transition:border-color var(--transition),color var(--transition)}.sf-reset svg{width:13px;height:13px}.sf-reset:hover{border-color:var(--error);color:var(--error)}.sf-count{font-size:.8125rem;color:var(--text-muted);font-weight:500}@media (max-width:640px){.sf-search-wrap{max-width:100%}.sf-selects{width:100%}.sf-select{flex:1}}.sf-select-wrap{min-width:160px}.stk-table-wrap{overflow-x:auto;border-radius:var(--radius-lg);border:1px solid var(--border);box-shadow:var(--shadow-sm)}.stk-table{width:100%;border-collapse:collapse;background:var(--surface);font-size:.875rem}.stk-table thead{background:var(--bg-subtle);border-bottom:1px solid var(--border)}.stk-table th{padding:.75rem .875rem;text-align:left;font-size:.6875rem;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.06em;white-space:nowrap}.stk-table td{padding:.8125rem .875rem;border-bottom:1px solid var(--border);vertical-align:middle}.stk-row:last-child td{border-bottom:none}.stk-row:hover td{background:var(--bg-subtle)}.stk-cell-name{display:flex;align-items:center;gap:.75rem;min-width:180px}.stk-prod-img{width:36px;height:36px;border-radius:var(--radius-sm);display:flex;align-items:center;justify-content:center;flex-shrink:0}.stk-prod-img svg{width:18px;height:18px}.stk-name{font-size:.875rem;font-weight:700;color:var(--text-primary);margin-bottom:3px}.stk-prog-bar{width:80px;height:4px;background:var(--border);border-radius:var(--radius-full);overflow:hidden}.stk-prog-fill{height:100%;border-radius:var(--radius-full);transition:width .6s var(--ease)}.stk-sku{font-size:.6875rem;font-family:monospace;background:var(--bg-subtle);padding:2px 5px;border-radius:var(--radius-xs);border:1px solid var(--border);color:var(--text-muted)}.stk-dept{font-size:.75rem;font-weight:600;padding:2px 7px;border-radius:var(--radius-full)}.stk-meta{font-size:.8125rem;color:var(--text-secondary)}.stk-qty{font-size:.9375rem;font-weight:700;color:var(--text-secondary)}.stk-qty--current{color:var(--text-primary)}.stk-value{font-size:.8125rem;font-weight:600;color:var(--text-secondary);white-space:nowrap}.stk-status{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border-radius:var(--radius-full);font-size:.75rem;font-weight:600;white-space:nowrap}.stk-status-dot{width:5px;height:5px;border-radius:50%;flex-shrink:0;background:currentColor}.stk-date{font-size:.75rem;color:var(--text-muted);white-space:nowrap}.stk-action-btn{width:30px;height:30px;background:var(--info-bg);border:none;border-radius:var(--radius-sm);display:flex;align-items:center;justify-content:center;cursor:pointer;color:var(--info);transition:filter var(--transition)}.stk-action-btn svg{width:14px;height:14px}.stk-action-btn:hover{filter:brightness(.88)}.stk-empty{text-align:center;padding:3rem 2rem;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg)}.stk-empty svg{width:40px;height:40px;stroke:var(--text-muted);margin:0 auto .875rem}.stk-empty p{font-weight:600;color:var(--text-secondary);margin-bottom:.25rem}.stk-empty span{font-size:.875rem;color:var(--text-muted)}.stk-cards-mobile{display:none;flex-direction:column;gap:.75rem}.stk-mobile-card{background:var(--surface);border:1px solid var(--border);border-left:3px solid;border-radius:var(--radius-lg);padding:1rem;display:flex;flex-direction:column;gap:.75rem;box-shadow:var(--shadow-sm)}.stk-mobile-top{display:flex;align-items:center;gap:.75rem}.stk-mobile-info{flex:1;min-width:0}.stk-mobile-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:.5rem}.stk-mobile-stat-label{display:block;font-size:.6875rem;color:var(--text-muted);font-weight:600;text-transform:uppercase;letter-spacing:.05em;margin-bottom:2px}.stk-mobile-view-btn{width:100%;height:36px;background:var(--info-bg);color:var(--info);border:none;border-radius:var(--radius-md);display:flex;align-items:center;justify-content:center;gap:6px;font-size:.8125rem;font-weight:600;cursor:pointer;font-family:var(--font)}.stk-mobile-view-btn svg{width:14px;height:14px}@media (max-width:768px){.stk-table-wrap{display:none}.stk-cards-mobile{display:flex}}.stk-value-converted{font-size:.8125rem;font-weight:600;color:var(--primary);white-space:nowrap}.stk-value-converted--same{color:var(--text-secondary);font-weight:500}.stk-converted-rate{font-size:.6875rem;font-weight:400;color:var(--text-muted);margin-left:2px}.sa-section{display:flex;flex-direction:column;gap:1rem}.sa-title{display:flex;align-items:center;gap:.5rem;font-size:.9375rem;font-weight:700;color:var(--text-primary)}.sa-title svg{width:18px;height:18px;stroke:var(--warning)}.sa-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:.75rem}.sa-card{display:flex;align-items:center;gap:.875rem;padding:.875rem 1rem;border:1px solid;border-radius:var(--radius-md);transition:transform var(--transition)}.sa-card:hover{transform:translate(3px)}.sa-card--rupture{background:var(--error-bg);border-color:#fecaca}.sa-card--low{background:var(--warning-bg);border-color:#fde68a}.sa-card-icon{width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0}.sa-card-icon svg{width:18px;height:18px}.sa-card--rupture .sa-card-icon{background:#fecaca;color:var(--error)}.sa-card--low .sa-card-icon{background:#fde68a;color:var(--warning)}.sa-card-body{flex:1;min-width:0}.sa-card-label{font-size:.6875rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;margin-bottom:2px}.sa-card--rupture .sa-card-label{color:var(--error)}.sa-card--low .sa-card-label{color:var(--warning)}.sa-card-name{font-size:.875rem;font-weight:700;color:var(--text-primary);margin-bottom:2px}.sa-card-meta{font-size:.75rem;color:var(--text-muted)}.sa-badge{font-size:.875rem;font-weight:800;padding:4px 10px;border-radius:var(--radius-full);white-space:nowrap;flex-shrink:0}.sa-badge--rupture{background:var(--error);color:#fff}.sa-badge--low{background:var(--warning);color:#fff}.sa-ok{display:flex;align-items:center;gap:.75rem;padding:1.25rem;background:var(--success-bg);border:1px solid #A7F3D0;border-radius:var(--radius-md);color:#065f46;font-size:.9375rem;font-weight:600;grid-column:1/-1}.sa-ok svg{width:22px;height:22px;stroke:#065f46;flex-shrink:0}.sm-section{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden;box-shadow:var(--shadow-sm)}.sm-header{display:flex;align-items:center;justify-content:space-between;padding:1.125rem 1.5rem;border-bottom:1px solid var(--border);gap:.75rem;flex-wrap:wrap}.sm-title{display:flex;align-items:center;gap:.5rem;font-size:.9375rem;font-weight:700;color:var(--text-primary);margin:0}.sm-title svg{width:18px;height:18px;stroke:var(--text-muted);flex-shrink:0}.sm-filter-btns{display:flex;gap:4px;flex-wrap:wrap}.sm-filter-btn{padding:4px 12px;border:1.5px solid var(--border);border-radius:var(--radius-full);background:var(--surface);font-size:.8125rem;font-weight:500;color:var(--text-secondary);cursor:pointer;font-family:var(--font);transition:border-color var(--transition),background var(--transition),color var(--transition);white-space:nowrap}.sm-filter-btn:hover{border-color:var(--primary);color:var(--primary)}.sm-filter-btn--active{background:var(--primary);border-color:var(--primary);color:#fff;font-weight:600}.sm-empty{text-align:center;padding:2rem;color:var(--text-muted);font-size:.875rem;font-style:italic}.sm-table-wrap{overflow-x:auto}.sm-table{width:100%;border-collapse:collapse;font-size:.8125rem}.sm-table thead{background:var(--bg-subtle)}.sm-table th{padding:.625rem .875rem;text-align:left;font-size:.6875rem;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.06em;white-space:nowrap;border-bottom:1px solid var(--border)}.sm-table td{padding:.75rem .875rem;border-bottom:1px solid var(--border);vertical-align:middle}.sm-row:last-child td{border-bottom:none}.sm-row:hover td{background:var(--bg-subtle)}.sm-date{font-size:.75rem;color:var(--text-muted);white-space:nowrap}.sm-type-badge{display:inline-block;padding:3px 9px;border-radius:var(--radius-full);font-size:.75rem;font-weight:700;white-space:nowrap}.sm-dept{font-size:.8125rem;font-weight:500;color:var(--text-secondary)}.sm-product{font-size:.875rem;font-weight:600;color:var(--text-primary);white-space:nowrap}.sm-sku{font-family:monospace;font-size:.75rem;color:var(--text-muted);white-space:nowrap}.sm-qty{font-size:.875rem;font-weight:700;white-space:nowrap}.sm-qty--in{color:var(--success)}.sm-qty--out{color:var(--error)}.sm-qty--adj{color:var(--warning)}.sm-user{font-size:.8125rem;color:var(--text-secondary);white-space:nowrap}.sm-ref{font-size:.75rem;font-family:monospace;color:var(--text-muted);white-space:nowrap}.sm-status-badge{display:inline-flex;align-items:center;gap:4px;font-size:.6875rem;font-weight:700;padding:3px 8px;border-radius:var(--radius-full);white-space:nowrap}.sm-status-badge--ok{background:var(--success-bg);color:#065f46}.sm-status-badge--pending{background:var(--warning-bg);color:#92400e}.sm-timeline{display:none;flex-direction:column;padding:.75rem 1rem;gap:0}.sm-tl-item{display:flex;gap:.875rem}.sm-tl-line-col{display:flex;flex-direction:column;align-items:center;flex-shrink:0;width:28px}.sm-tl-dot{width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:.65rem;font-weight:700}.sm-tl-line{width:1.5px;flex:1;min-height:10px;background:var(--border);margin:3px 0}.sm-tl-body{flex:1;padding-bottom:1rem}.sm-tl-top{display:flex;align-items:center;gap:.5rem;margin-bottom:3px}.sm-tl-prod{font-size:.875rem;font-weight:600;color:var(--text-primary)}.sm-tl-qty{margin-left:auto;font-size:.875rem;font-weight:700}.sm-tl-meta{display:flex;gap:.75rem;flex-wrap:wrap;font-size:.75rem;color:var(--text-muted)}@media (max-width: 768px){.sm-table-wrap{display:none}.sm-timeline{display:flex}}.sv-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.25rem;box-shadow:var(--shadow-sm)}.sv-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1.25rem;flex-wrap:wrap;gap:.5rem}.sv-title{font-size:.9375rem;font-weight:700;color:var(--text-primary)}.sv-note{font-size:.75rem;color:var(--text-muted);font-style:italic}.sv-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-bottom:1rem}.sv-item{padding:1rem;border-radius:var(--radius-md);display:flex;flex-direction:column;gap:.375rem;border:1px solid var(--border)}.sv-item svg{width:22px;height:22px;margin-bottom:.25rem}.sv-item--buy{background:var(--bg-subtle)}.sv-item--buy svg{stroke:var(--primary)}.sv-item--sell{background:#ecfdf5;border-color:#a7f3d0}.sv-item--sell svg{stroke:var(--success)}.sv-item--margin{background:var(--primary-light);border-color:#c7d2fe}.sv-item--margin svg{stroke:var(--primary)}.sv-item-label{font-size:.75rem;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em}.sv-item-value{font-size:1.25rem;font-weight:800;color:var(--text-primary);letter-spacing:-.02em}.sv-item-value--margin{color:var(--primary)}.sv-item-sub{font-size:.75rem;color:var(--text-muted)}.sv-disclaimer{font-size:.75rem;color:var(--text-muted);font-style:italic;padding:.75rem 1rem;background:var(--bg-subtle);border-radius:var(--radius-md);border:1px solid var(--border)}@media (max-width:600px){.sv-grid{grid-template-columns:1fr}}.sv-loading{text-align:center;padding:2rem;color:var(--text-muted);font-size:.875rem;font-style:italic}.ska-section{display:flex;flex-direction:column;gap:1.25rem}.ska-header{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:1rem}.ska-title{font-size:.9375rem;font-weight:700;color:var(--text-primary);margin:0}.ska-filters{display:flex;flex-direction:column;gap:.5rem;align-items:flex-end}.ska-filter-group{display:flex;gap:3px;flex-wrap:wrap}.ska-filter-btn{padding:4px 10px;border:1.5px solid var(--border);border-radius:var(--radius-full);background:var(--surface);font-size:.8125rem;font-weight:500;color:var(--text-secondary);cursor:pointer;font-family:var(--font);transition:border-color var(--transition),background var(--transition),color var(--transition);white-space:nowrap}.ska-filter-btn:hover{border-color:var(--primary);color:var(--primary)}.ska-filter-btn--active{background:var(--primary);border-color:var(--primary);color:#fff;font-weight:600}.ska-filter-btn--sm{padding:3px 8px;font-size:.75rem}.ska-filter-group--date{display:flex;align-items:center;gap:4px}.ska-date-input{height:28px;padding:0 8px;border:1.5px solid var(--border);border-radius:var(--radius-md);font-size:.75rem;font-family:var(--font);color:var(--text-secondary);background:var(--surface);cursor:pointer}.ska-date-input:focus{outline:none;border-color:var(--primary)}.ska-date-clear{width:22px;height:22px;border:none;border-radius:var(--radius-full);background:var(--error-bg);color:var(--error);display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0}.ska-date-clear svg{width:12px;height:12px}.ska-loading{text-align:center;padding:.75rem 1rem;color:var(--text-muted);font-size:.8125rem;font-style:italic}.ska-error{text-align:center;padding:.75rem 1rem;color:var(--error);font-size:.8125rem;background:var(--error-bg);border-radius:var(--radius-md);border:1px solid var(--error)}.ska-charts-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1.25rem}.ska-chart-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.25rem;box-shadow:var(--shadow-sm)}.ska-chart-card--wide{grid-column:1 / -1}.ska-chart-title{font-size:.875rem;font-weight:700;color:var(--text-primary);margin:0 0 .875rem;display:flex;align-items:center;gap:.5rem}.ska-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0}.ska-dot--in{background:var(--success)}.ska-dot--out{background:var(--error)}@media (max-width: 768px){.ska-charts-grid{grid-template-columns:1fr}.ska-filters{align-items:flex-start}}.sdm-box{background:var(--surface);border-radius:var(--radius-xl);width:100%;max-width:580px;max-height:90vh;display:flex;flex-direction:column;overflow:hidden;box-shadow:var(--shadow-lg);animation:modalSlideUp .2s var(--ease)}.sdm-header{border-top:3px solid;border-bottom:1px solid var(--border);display:flex;align-items:flex-start;gap:.875rem;padding:1.25rem 1.5rem;flex-shrink:0}.sdm-img{width:56px;height:56px;border-radius:var(--radius-lg);display:flex;align-items:center;justify-content:center;flex-shrink:0}.sdm-img svg{width:26px;height:26px}.sdm-name{font-size:1.0625rem;font-weight:700;color:var(--text-primary);margin-bottom:2px}.sdm-meta{font-size:.8125rem;color:var(--text-muted);margin-bottom:.5rem}.sdm-sku{font-family:monospace;background:var(--bg-subtle);padding:1px 5px;border-radius:var(--radius-xs);border:1px solid var(--border)}.sdm-badges{display:flex;gap:.375rem;flex-wrap:wrap}.sdm-badge{font-size:.6875rem;font-weight:600;padding:2px 8px;border-radius:var(--radius-full)}.sdm-badge--cat{background:var(--bg-subtle);color:var(--text-secondary);border:1px solid var(--border)}.sdm-badge--unit{background:var(--primary-light);color:var(--primary)}.sdm-body{overflow-y:auto;padding:1.5rem;display:flex;flex-direction:column;gap:1.25rem;flex:1;min-height:0}.sdm-status-section{display:flex;flex-direction:column;gap:.625rem}.sdm-status-row{display:flex;align-items:center;justify-content:space-between}.sdm-status-badge{display:inline-flex;align-items:center;gap:5px;padding:4px 12px;border-radius:var(--radius-full);font-size:.875rem;font-weight:700}.sdm-status-dot{width:7px;height:7px;border-radius:50%;flex-shrink:0;background:currentColor}.sdm-current-qty{font-size:1.75rem;font-weight:800;color:var(--text-primary);letter-spacing:-.03em}.sdm-unit-sm{font-size:.875rem;font-weight:500;color:var(--text-muted)}.sdm-bar-wrap{display:flex;align-items:center;gap:.75rem}.sdm-bar-bg{flex:1;height:10px;background:var(--border);border-radius:var(--radius-full);overflow:hidden}.sdm-bar-fill{height:100%;border-radius:var(--radius-full);transition:width .6s var(--ease)}.sdm-pct{font-size:.875rem;font-weight:700;color:var(--text-secondary);width:36px;text-align:right}.sdm-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:.75rem}.sdm-metric{background:var(--bg-subtle);border:1px solid var(--border);border-radius:var(--radius-md);padding:.75rem;text-align:center}.sdm-metric-label{font-size:.6875rem;color:var(--text-muted);font-weight:600;text-transform:uppercase;letter-spacing:.05em;margin-bottom:3px}.sdm-metric-value{font-size:1rem;font-weight:800;color:var(--text-primary)}.sdm-prices{display:flex;align-items:center;gap:.75rem;padding:.875rem 1rem;background:var(--bg-subtle);border:1px solid var(--border);border-radius:var(--radius-md);flex-wrap:wrap}.sdm-price-item{display:flex;flex-direction:column;gap:2px;min-width:0}.sdm-price-label{font-size:.6875rem;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em}.sdm-price-val{font-size:.9375rem;font-weight:700;color:var(--text-primary);white-space:nowrap}.sdm-price-val--sell{color:var(--success)}.sdm-price-val--stock{color:var(--primary)}.sdm-price-sep{font-size:1rem;color:var(--text-muted);flex-shrink:0}.sdm-history{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);padding:.875rem 1rem}.sdm-history-title{font-size:.8125rem;font-weight:700;color:var(--text-secondary);margin-bottom:.625rem;text-transform:uppercase;letter-spacing:.06em}.sdm-history-list{list-style:none;display:flex;flex-direction:column;gap:.5rem}.sdm-history-item{display:flex;align-items:center;gap:.875rem;padding:.5rem 0;border-bottom:1px solid var(--border)}.sdm-history-item:last-child{border-bottom:none}.sdm-history-type{font-size:.8125rem;font-weight:600;flex:1}.sdm-history-qty{font-size:.875rem;font-weight:700}.sdm-history-date{font-size:.75rem;color:var(--text-muted)}.sdm-actions{display:flex;gap:.625rem;padding:1rem 1.5rem;border-top:1px solid var(--border);flex-shrink:0;flex-wrap:wrap}.sdm-action-btn{flex:1;min-width:80px;height:38px;border:none;border-radius:var(--radius-md);display:flex;align-items:center;justify-content:center;gap:5px;font-size:.8125rem;font-weight:600;cursor:pointer;font-family:var(--font);transition:filter var(--transition)}.sdm-action-btn svg{width:14px;height:14px}.sdm-action-btn:hover{filter:brightness(.88)}.sdm-action-btn--entry{background:var(--success);color:#fff}.sdm-action-btn--exit{background:var(--error);color:#fff}.sdm-action-btn--adjust{background:var(--warning);color:#fff}@media (max-width:480px){.sdm-metrics{grid-template-columns:repeat(2,1fr)}.sdm-box{max-height:95vh}}.sdm-info-row{display:flex;align-items:center;justify-content:space-between;padding:.5rem .75rem;background:var(--bg-subtle);border-radius:var(--radius-sm);font-size:.8125rem}.sdm-info-label{color:var(--text-muted);font-weight:500}.sdm-info-val{color:var(--text-secondary);font-weight:600}.sdm-history-loading,.sdm-history-empty{font-size:.8125rem;color:var(--text-muted);font-style:italic;text-align:center;padding:.5rem}.sdm-history-badge{display:inline-block;padding:1px 7px;border-radius:var(--radius-full);font-size:.6875rem;font-weight:700;white-space:nowrap}.sdm-history-user{font-size:.75rem;color:var(--text-muted);margin-left:auto;padding-left:.5rem}.sm-box{background:var(--surface);border-radius:var(--radius-xl);width:100%;max-width:620px;max-height:90vh;display:flex;flex-direction:column;overflow:hidden;box-shadow:var(--shadow-lg);animation:modalSlideUp .2s var(--ease)}.sm-icon{width:40px;height:40px;border-radius:var(--radius-md);display:flex;align-items:center;justify-content:center;flex-shrink:0}.sm-icon svg{width:20px;height:20px;stroke:currentColor}.sm-body{overflow-y:auto;padding:1.5rem;display:flex;flex-direction:column;gap:1rem;flex:1;min-height:0}.sm-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:.875rem}.sm-field{display:flex;flex-direction:column;gap:4px}.sm-label{font-size:.8125rem;font-weight:600;color:var(--text-primary)}.sm-req{color:var(--error);margin-left:2px}.sm-input,.sm-select,.sm-textarea{border:1.5px solid var(--border);border-radius:var(--radius-md);font-size:.875rem;color:var(--text-primary);background:var(--surface);font-family:var(--font);width:100%;transition:border-color var(--transition),box-shadow var(--transition)}.sm-input,.sm-select{height:40px;padding:0 .75rem}.sm-textarea{padding:.625rem .75rem;resize:vertical}.sm-input:focus,.sm-select:focus,.sm-textarea:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-ring)}.sm-err{font-size:.75rem;color:var(--error);font-weight:500}.sm-select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .5rem center;background-size:13px;padding-right:2rem;cursor:pointer}.sm-ecart-box{display:flex;align-items:center;justify-content:space-between;padding:.875rem 1.125rem;border-radius:var(--radius-md)}.sm-ecart-label{font-size:.875rem;font-weight:600;color:var(--text-secondary)}.sm-ecart-value{font-size:1.5rem;font-weight:800;letter-spacing:-.03em}.sm-submit-btn{height:40px;padding:0 1.25rem;border:none;border-radius:var(--radius-md);font-size:.875rem;font-weight:600;color:#fff;cursor:pointer;font-family:var(--font);display:flex;align-items:center;gap:.5rem;transition:filter var(--transition),box-shadow var(--transition)}.sm-submit-btn svg{width:15px;height:15px}.sm-submit-btn:hover{filter:brightness(.9);box-shadow:0 4px 12px #0003}@media (max-width:580px){.sm-grid-2{grid-template-columns:1fr}.sm-box{max-height:95vh}}.sm-api-loading{text-align:center;padding:.5rem 1rem;font-size:.8125rem;color:var(--text-muted);font-style:italic;background:var(--bg-subtle);border-radius:var(--radius-md);border:1px solid var(--border)}.sm-input-with-badge{position:relative;display:flex;align-items:center}.sm-input-with-badge .sm-input{padding-right:3.25rem}.sm-auto-badge{position:absolute;right:.5rem;font-size:.6875rem;font-weight:700;padding:2px 6px;background:var(--success-bg);color:#065f46;border-radius:var(--radius-full);pointer-events:none;white-space:nowrap;border:1px solid #A7F3D0}.sp-header{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:1rem}.sp-breadcrumb{display:flex;align-items:center;gap:2px;font-size:.75rem;color:var(--text-muted);margin-bottom:.375rem;flex-wrap:wrap}.sp-bc{font-weight:500;color:var(--text-muted);display:inline-flex;align-items:center;gap:2px}.sp-bc--active{color:var(--primary);font-weight:700}.sp-bc-sep{color:var(--border-strong);margin:0 2px;font-size:.875rem}.sp-title{font-size:1.375rem;font-weight:800;color:var(--text-primary);letter-spacing:-.025em;margin-bottom:3px}.sp-actions{display:flex;gap:.625rem;flex-wrap:wrap}.sp-btn{display:inline-flex;align-items:center;gap:.375rem;height:38px;padding:0 1rem;border:none;border-radius:var(--radius-md);font-size:.8125rem;font-weight:600;cursor:pointer;font-family:var(--font);transition:filter var(--transition),box-shadow var(--transition);white-space:nowrap}.sp-btn svg{width:15px;height:15px}.sp-btn:hover{filter:brightness(.9);box-shadow:0 3px 10px #00000026}.sp-btn--entry{background:var(--success);color:#fff}.sp-btn--exit{background:var(--error);color:#fff}.sp-btn--adjust{background:var(--warning);color:#fff}.sp-filters-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.25rem;box-shadow:var(--shadow-sm)}.sp-warehouse-placeholder{background:linear-gradient(135deg,#eff6ff,#f0fdf4);border:1px solid #BFDBFE;border-radius:var(--radius-lg);padding:1rem 1.25rem;display:flex;align-items:center;gap:1rem;flex-wrap:wrap}.sp-warehouse-placeholder svg{width:32px;height:32px;stroke:var(--info);flex-shrink:0}.sp-warehouse-title{font-size:.9375rem;font-weight:700;color:var(--info);margin-bottom:2px}.sp-warehouse-desc{font-size:.8125rem;color:#1e40af}.sp-warehouse-badge{font-size:.75rem;font-weight:700;padding:4px 12px;background:var(--info);color:#fff;border-radius:var(--radius-full);white-space:nowrap;margin-left:auto;flex-shrink:0}.page-error{background:var(--error-bg);border:1px solid var(--error);color:#991b1b;padding:.875rem 1rem;border-radius:var(--radius-md);font-size:.875rem;font-weight:500}.page-loading{text-align:center;padding:2.5rem;color:var(--text-muted);font-size:.9375rem}@media (max-width:640px){.sp-header{flex-direction:column;align-items:flex-start}.sp-actions{width:100%}.sp-btn{flex:1;justify-content:center}}.inv-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1rem}.inv-title{font-size:1.375rem;font-weight:800;color:var(--text-primary);letter-spacing:-.025em;margin-bottom:3px}.inv-subtitle{font-size:.875rem;color:var(--text-muted)}.inv-header-actions{display:flex;gap:.625rem;flex-wrap:wrap}.inv-btn{display:inline-flex;align-items:center;gap:.375rem;height:38px;padding:0 1rem;border:none;border-radius:var(--radius-md);font-size:.875rem;font-weight:600;cursor:pointer;font-family:var(--font);transition:filter var(--transition);white-space:nowrap}.inv-btn svg{width:15px;height:15px}.inv-btn--start{background:var(--primary);color:#fff}.inv-btn--export{background:var(--bg-subtle);color:var(--text-secondary);border:1.5px solid var(--border)}.inv-btn--export:hover{border-color:var(--primary);color:var(--primary)}.inv-btn--validate{background:var(--success);color:#fff;opacity:.5;cursor:not-allowed}.inv-info-banner{display:flex;align-items:flex-start;gap:1rem;padding:1rem 1.25rem;background:var(--info-bg);border:1px solid #BFDBFE;border-radius:var(--radius-lg)}.inv-info-banner svg{width:20px;height:20px;stroke:var(--info);flex-shrink:0;margin-top:2px}.inv-banner-title{font-size:.9375rem;font-weight:700;color:var(--info);margin-bottom:3px}.inv-banner-desc{font-size:.8125rem;color:#1e40af;line-height:1.5}.inv-search-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.25rem;box-shadow:var(--shadow-sm);display:flex;align-items:center;gap:1rem;flex-wrap:wrap}.inv-search-wrap{position:relative;flex:1;min-width:200px;max-width:380px}.inv-search-icon{position:absolute;left:.75rem;top:50%;transform:translateY(-50%);color:var(--text-muted);display:flex;pointer-events:none}.inv-search-icon svg{width:16px;height:16px}.inv-search{width:100%;height:38px;padding:0 .75rem 0 2.375rem;border:1.5px solid var(--border);border-radius:var(--radius-md);font-size:.875rem;color:var(--text-primary);background:var(--surface);font-family:var(--font);transition:border-color var(--transition)}.inv-search:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-ring)}.inv-search::-webkit-search-cancel-button{display:none}.inv-count{font-size:.8125rem;color:var(--text-muted);font-weight:500;margin-left:auto}.inv-filter-select{height:38px;padding:0 .75rem;border:1.5px solid var(--border);border-radius:var(--radius-md);font-size:.8125rem;color:var(--text-primary);background:var(--surface);font-family:var(--font);cursor:pointer}.inv-filter-select:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-ring)}.inv-table th{padding:.75rem .875rem;text-align:left;font-size:.6875rem;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.06em;white-space:nowrap}.inv-table td{padding:.8125rem .875rem;border-bottom:1px solid var(--border);vertical-align:middle}.inv-row:last-child td{border-bottom:none}.inv-row:hover td{background:var(--bg-subtle)}.inv-cell-name{display:flex;align-items:center;gap:.75rem;min-width:160px}.inv-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0}.inv-name{font-size:.9375rem;font-weight:700;color:var(--text-primary)}.inv-brand{font-size:.75rem;color:var(--text-muted)}.inv-sku{font-family:monospace;font-size:.75rem;color:var(--text-muted);background:var(--bg-subtle);padding:2px 5px;border-radius:var(--radius-xs);border:1px solid var(--border)}.inv-dept{font-size:.75rem;font-weight:600;padding:2px 7px;border-radius:var(--radius-full)}.inv-meta{font-size:.8125rem;color:var(--text-secondary)}.inv-qty{font-size:.9375rem;font-weight:700}.inv-qty--theo{color:var(--text-primary)}.inv-physical-input{width:80px;height:34px;padding:0 .5rem;border:1.5px solid var(--border);border-radius:var(--radius-md);font-size:.875rem;font-weight:600;color:var(--text-primary);background:var(--surface);font-family:var(--font);transition:border-color var(--transition)}.inv-physical-input:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-ring)}.inv-ecart{font-size:.875rem;font-weight:700;color:var(--text-muted)}.inv-ecart--pos{color:var(--success)}.inv-ecart--neg{color:var(--error)}.inv-status{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border-radius:var(--radius-full);font-size:.75rem;font-weight:600;white-space:nowrap}.inv-status-dot{width:5px;height:5px;border-radius:50%;background:currentColor}.inv-footer-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.75rem;padding:1rem 1.25rem;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg)}.inv-footer-note{font-size:.8125rem;color:var(--text-muted);font-style:italic}@media (max-width:640px){.inv-header{flex-direction:column;align-items:flex-start}.inv-header-actions{width:100%}}.crm-stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem}.crm-stat-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.125rem;display:flex;align-items:center;gap:.875rem;box-shadow:var(--shadow-sm);transition:box-shadow var(--transition),transform var(--transition)}.crm-stat-card:hover{box-shadow:var(--shadow-md);transform:translateY(-1px)}.crm-stat-icon{width:44px;height:44px;border-radius:var(--radius-md);display:flex;align-items:center;justify-content:center;flex-shrink:0}.crm-stat-icon svg{width:22px;height:22px}.crm-stat-value{font-size:1.5rem;font-weight:800;color:var(--text-primary);letter-spacing:-.03em;line-height:1}.crm-stat-label{font-size:.8125rem;font-weight:500;color:var(--text-secondary);margin-top:3px}@media (max-width:900px){.crm-stats-grid{grid-template-columns:repeat(2,1fr)}}@media (max-width:480px){.crm-stat-value{font-size:1.25rem}}.crmf-wrap{display:flex;flex-direction:column;gap:.625rem}.crmf-row{display:flex;gap:.75rem;flex-wrap:wrap;align-items:center}.crmf-search-wrap{position:relative;flex:1;min-width:200px;max-width:320px}.crmf-icon{position:absolute;left:.75rem;top:50%;transform:translateY(-50%);color:var(--text-muted);display:flex;pointer-events:none}.crmf-icon svg{width:16px;height:16px}.crmf-input{width:100%;height:38px;padding:0 2rem 0 2.375rem;border:1.5px solid var(--border);border-radius:var(--radius-md);font-size:.875rem;color:var(--text-primary);background:var(--surface);font-family:var(--font);transition:border-color var(--transition),box-shadow var(--transition)}.crmf-input::placeholder{color:var(--text-muted)}.crmf-input:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-ring)}.crmf-input::-webkit-search-cancel-button{display:none}.crmf-clear{position:absolute;right:.5rem;top:50%;transform:translateY(-50%);background:none;border:none;cursor:pointer;color:var(--text-muted);display:flex}.crmf-clear svg{width:14px;height:14px}.crmf-selects{display:flex;gap:.5rem;flex-wrap:wrap;align-items:center}.crmf-select{height:38px;padding:0 1.75rem 0 .75rem;border:1.5px solid var(--border);border-radius:var(--radius-md);font-size:.8125rem;color:var(--text-secondary);background:var(--surface);font-family:var(--font);cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .5rem center;background-size:13px;transition:border-color var(--transition)}.crmf-select:focus{outline:none;border-color:var(--primary)}.crmf-reset{display:flex;align-items:center;gap:4px;height:38px;padding:0 .875rem;background:none;border:1.5px solid var(--border);border-radius:var(--radius-md);font-size:.8125rem;font-weight:600;color:var(--text-secondary);cursor:pointer;font-family:var(--font);white-space:nowrap;transition:border-color var(--transition),color var(--transition)}.crmf-reset svg{width:13px;height:13px}.crmf-reset:hover{border-color:var(--error);color:var(--error)}.crmf-count{font-size:.8125rem;color:var(--text-muted);font-weight:500}@media (max-width:640px){.crmf-search-wrap{max-width:100%}.crmf-selects{width:100%}.crmf-select{flex:1}}.crm-an-section{display:flex;flex-direction:column;gap:1.25rem}.crm-an-header{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:1rem}.crm-an-title{font-size:.9375rem;font-weight:700;color:var(--text-primary)}.crm-an-filters{display:flex;gap:3px;flex-wrap:wrap}.crm-an-btn{padding:4px 10px;border:1.5px solid var(--border);border-radius:var(--radius-full);background:var(--surface);font-size:.8125rem;font-weight:500;color:var(--text-secondary);cursor:pointer;font-family:var(--font);transition:border-color var(--transition),background var(--transition),color var(--transition);white-space:nowrap}.crm-an-btn:hover{border-color:var(--primary);color:var(--primary)}.crm-an-btn--active{background:var(--primary);border-color:var(--primary);color:#fff;font-weight:600}.crm-an-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1.25rem}.crm-an-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.25rem;box-shadow:var(--shadow-sm)}.crm-an-card--wide{grid-column:1/-1}.crm-an-card-title{font-size:.875rem;font-weight:700;color:var(--text-primary);margin-bottom:.875rem}.crm-top-item{display:flex;align-items:center;gap:.75rem}.crm-top-rank{width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.6875rem;font-weight:800;color:#fff;flex-shrink:0}.crm-top-bar-wrap{flex:1;display:flex;flex-direction:column;gap:3px}.crm-top-name-row{display:flex;justify-content:space-between;align-items:center;gap:.5rem}.crm-top-name{font-size:.875rem;font-weight:600;color:var(--text-primary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:200px}.crm-top-bg{height:5px;background:var(--bg-subtle);border-radius:var(--radius-full);overflow:hidden;border:1px solid var(--border)}.crm-top-fill{height:100%;border-radius:var(--radius-full);transition:width .6s var(--ease)}.crm-top-val{font-size:.75rem;font-weight:600;color:var(--text-muted);white-space:nowrap;flex-shrink:0;min-width:90px;text-align:right}@media (max-width:768px){.crm-an-grid{grid-template-columns:1fr}}.crm-an-loading,.crm-an-empty{text-align:center;padding:2rem;color:var(--text-muted);font-size:.875rem;font-style:italic}.crm-table-wrap{overflow-x:auto;border-radius:var(--radius-lg);border:1px solid var(--border);box-shadow:var(--shadow-sm)}.crm-table{width:100%;border-collapse:collapse;background:var(--surface);font-size:.875rem}.crm-table thead{background:var(--bg-subtle);border-bottom:1px solid var(--border)}.crm-table th{padding:.75rem 1rem;text-align:left;font-size:.6875rem;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.06em;white-space:nowrap}.crm-table td{padding:.8125rem 1rem;border-bottom:1px solid var(--border);vertical-align:middle}.crm-row:last-child td{border-bottom:none}.crm-row:hover td{background:var(--bg-subtle)}.crm-cell-name{display:flex;align-items:center;gap:.75rem;min-width:180px}.crm-avatar{border-radius:var(--radius-sm);background:var(--primary);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;flex-shrink:0;letter-spacing:.02em}.crm-name{font-size:.9375rem;font-weight:700;color:var(--text-primary)}.crm-sub{font-size:.75rem;color:var(--text-muted)}.crm-text{font-size:.875rem;color:var(--text-secondary)}.crm-local{font-size:.875rem;font-weight:600;color:var(--text-secondary);white-space:nowrap}.crm-num{font-size:.9375rem;font-weight:700;color:var(--text-primary)}.crm-balance{font-size:.875rem;color:var(--text-muted)}.crm-balance--due{font-size:.875rem;font-weight:700;color:var(--error)}.crm-ca{font-size:.875rem;font-weight:600;color:var(--success);white-space:nowrap}.crm-actions{display:flex;gap:4px}.crm-btn{width:30px;height:30px;border:none;border-radius:var(--radius-sm);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:filter var(--transition)}.crm-btn svg{width:14px;height:14px}.crm-btn--view{background:var(--info-bg);color:var(--info)}.crm-btn--edit{background:var(--warning-bg);color:var(--warning)}.crm-btn:hover{filter:brightness(.88)}.crm-empty{text-align:center;padding:3rem 2rem;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg)}.crm-empty svg{width:40px;height:40px;stroke:var(--text-muted);margin:0 auto .875rem}.crm-empty p{font-weight:600;color:var(--text-secondary);margin-bottom:.25rem}.crm-empty span{font-size:.875rem;color:var(--text-muted)}.crm-cards-mobile{display:none;flex-direction:column;gap:.75rem}.crm-mobile-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1rem;display:flex;flex-direction:column;gap:.75rem;box-shadow:var(--shadow-sm)}.crm-mobile-top{display:flex;align-items:center;gap:.75rem}.crm-mobile-info{flex:1;min-width:0}.crm-mobile-meta{display:flex;gap:.5rem;flex-wrap:wrap;align-items:center}.crm-mobile-local{display:flex;align-items:center;gap:6px;font-size:.8125rem;font-weight:600;color:var(--text-secondary)}.crm-mobile-local svg{width:14px;height:14px;flex-shrink:0;color:var(--text-muted)}.crm-mobile-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:.5rem}.crm-mobile-label{display:block;font-size:.6875rem;color:var(--text-muted);font-weight:600;text-transform:uppercase;letter-spacing:.05em;margin-bottom:2px}.crm-mobile-actions{display:flex;gap:.5rem}.crm-mobile-btn{flex:1;height:36px;border:none;border-radius:var(--radius-md);display:flex;align-items:center;justify-content:center;gap:5px;font-size:.8125rem;font-weight:600;cursor:pointer;font-family:var(--font)}.crm-mobile-btn svg{width:14px;height:14px}.crm-mobile-btn.crm-btn--view{background:var(--info-bg);color:var(--info)}.crm-mobile-btn.crm-btn--edit{background:var(--warning-bg);color:var(--warning)}@media (max-width:768px){.crm-table-wrap{display:none}.crm-cards-mobile{display:flex}}.crm-text-muted{color:var(--text-muted);font-size:.875rem}.crm-pagination{display:flex;align-items:center;justify-content:center;gap:.375rem;padding:.75rem 0;flex-wrap:wrap}.crm-page-btn{height:32px;min-width:32px;padding:0 .625rem;border:1.5px solid var(--border);border-radius:var(--radius-md);background:var(--surface);font-size:.8125rem;font-weight:500;color:var(--text-secondary);cursor:pointer;font-family:var(--font);transition:border-color var(--transition),background var(--transition)}.crm-page-btn:hover:not(:disabled){border-color:var(--primary);color:var(--primary)}.crm-page-btn--active{background:var(--primary);border-color:var(--primary);color:#fff;font-weight:700}.crm-page-btn:disabled{opacity:.4;cursor:not-allowed}.cm-box{background:var(--surface);border-radius:var(--radius-xl);width:100%;max-width:640px;max-height:90vh;display:flex;flex-direction:column;overflow:hidden;box-shadow:var(--shadow-lg);animation:modalSlideUp .2s var(--ease)}.cm-icon{width:40px;height:40px;background:var(--primary-light);border-radius:var(--radius-md);display:flex;align-items:center;justify-content:center;flex-shrink:0}.cm-icon svg{width:20px;height:20px;stroke:var(--primary)}.cm-body{overflow-y:auto;padding:1.5rem;display:flex;flex-direction:column;gap:1.125rem;flex:1;min-height:0}.cm-section-title{display:flex;align-items:center;gap:.5rem;font-size:.8125rem;font-weight:700;color:var(--text-secondary);padding-bottom:.5rem;border-bottom:1px solid var(--border);text-transform:uppercase;letter-spacing:.06em}.cm-section-title svg{width:15px;height:15px}.cm-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:.875rem}.cm-field{display:flex;flex-direction:column;gap:4px}.cm-label{font-size:.8125rem;font-weight:600;color:var(--text-primary)}.cm-req{color:var(--error);margin-left:2px}.cm-input,.cm-select,.cm-textarea{border:1.5px solid var(--border);border-radius:var(--radius-md);font-size:.875rem;color:var(--text-primary);background:var(--surface);font-family:var(--font);width:100%;transition:border-color var(--transition),box-shadow var(--transition)}.cm-input,.cm-select{height:40px;padding:0 .75rem}.cm-textarea{padding:.625rem .75rem;resize:vertical}.cm-input:focus,.cm-select:focus,.cm-textarea:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-ring)}.cm-err-border{border-color:var(--error)}.cm-err{font-size:.75rem;color:var(--error);font-weight:500}.cm-select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .5rem center;background-size:14px;padding-right:2rem;cursor:pointer}.cm-select:disabled{background-color:var(--bg-subtle);color:var(--text-muted);cursor:not-allowed}.cm-hint{font-size:.75rem;color:var(--text-muted)}@media (max-width:560px){.cm-grid-2{grid-template-columns:1fr}.cm-box{max-height:95vh}}.cm-country-picker{position:relative;width:100%}.cm-country-trigger{width:100%;height:40px;padding:0 .75rem;border:1.5px solid var(--border);border-radius:var(--radius-md);background:var(--surface);font-family:var(--font);font-size:.875rem;color:var(--text-primary);cursor:pointer;display:flex;align-items:center;gap:.5rem;transition:border-color var(--transition),box-shadow var(--transition)}.cm-country-trigger:focus,.cm-country-trigger:hover{border-color:var(--primary)}.cm-country-flag{font-size:.75rem;font-weight:700;color:var(--primary);background:var(--primary-light);padding:2px 6px;border-radius:var(--radius-sm);flex-shrink:0}.cm-country-name{flex:1;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cm-country-chevron{width:14px;height:14px;stroke:var(--text-muted);flex-shrink:0;transition:transform var(--transition)}.cm-country-chevron--up{transform:rotate(180deg)}.cm-country-dropdown{position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:200;background:var(--surface);border:1.5px solid var(--primary);border-radius:var(--radius-md);box-shadow:var(--shadow-lg);overflow:hidden;animation:ssDropIn .14s var(--ease)}@keyframes ssDropIn{0%{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}.cm-country-search-wrap{display:flex;align-items:center;gap:.5rem;padding:.5rem .75rem;border-bottom:1px solid var(--border)}.cm-country-search-wrap svg{width:14px;height:14px;stroke:var(--text-muted);flex-shrink:0}.cm-country-search{flex:1;border:none;outline:none;font-family:var(--font);font-size:.8125rem;color:var(--text-primary);background:transparent}.cm-country-search::placeholder{color:var(--text-muted)}.cm-country-list{list-style:none;margin:0;padding:.25rem 0;max-height:200px;overflow-y:auto}.cm-country-item{display:flex;align-items:center;gap:.625rem;padding:.5rem .75rem;cursor:pointer;font-size:.875rem;transition:background var(--transition)}.cm-country-item:hover{background:var(--primary-light)}.cm-country-item--active{background:var(--primary-light);color:var(--primary);font-weight:600}.cm-country-item-dial{font-size:.75rem;font-weight:700;color:var(--primary);width:3rem;flex-shrink:0}.cm-country-item-name{flex:1}.cm-country-check{width:13px;height:13px;stroke:var(--primary);flex-shrink:0}.cm-country-empty{text-align:center;padding:.75rem;color:var(--text-muted);font-style:italic;font-size:.875rem}.cm-phone-row{display:flex;align-items:center;gap:.5rem}.cm-phone-dial{height:40px;padding:0 .75rem;background:var(--bg-subtle);border:1.5px solid var(--border);border-radius:var(--radius-md);font-size:.875rem;font-weight:700;color:var(--primary);white-space:nowrap;display:flex;align-items:center;flex-shrink:0}.cm-input--phone{flex:1}.cdm-box{background:var(--surface);border-radius:var(--radius-xl);width:100%;max-width:700px;max-height:92vh;display:flex;flex-direction:column;overflow:hidden;box-shadow:var(--shadow-lg);animation:modalSlideUp .2s var(--ease)}.cdm-header{border-bottom:1px solid var(--border);flex-shrink:0;background:linear-gradient(135deg,var(--primary-light),#ECFDF5)}.cdm-header-top{display:flex;align-items:flex-start;gap:.875rem;padding:1.25rem 1.5rem .875rem;flex-wrap:wrap}.cdm-avatar-lg{width:56px;height:56px;border-radius:var(--radius-lg);background:var(--primary);color:#fff;display:flex;align-items:center;justify-content:center;font-size:1.125rem;font-weight:800;flex-shrink:0}.cdm-header-info{flex:1;min-width:0}.cdm-name{font-size:1.125rem;font-weight:700;color:var(--text-primary);margin-bottom:2px}.cdm-company{font-size:.8125rem;color:var(--text-muted);margin-bottom:.5rem}.cdm-badges{display:flex;gap:.375rem;flex-wrap:wrap}.cdm-geo-badge{font-size:.75rem;font-weight:500;color:var(--text-muted);background:#ffffffb3;padding:2px 8px;border-radius:var(--radius-full);border:1px solid var(--border)}.cdm-header-right{display:flex;align-items:center;gap:.5rem;flex-shrink:0;flex-wrap:wrap}.cdm-edit-btn{display:flex;align-items:center;gap:5px;height:34px;padding:0 .875rem;background:none;border:1.5px solid var(--border);border-radius:var(--radius-md);font-size:.8125rem;font-weight:600;color:var(--text-secondary);cursor:pointer;font-family:var(--font);transition:border-color var(--transition),color var(--transition)}.cdm-edit-btn svg{width:14px;height:14px}.cdm-edit-btn:hover{border-color:var(--primary);color:var(--primary)}.cdm-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:.5rem;padding:0 1.5rem .875rem}.cdm-kpi{background:#ffffffb3;border:1px solid var(--border);border-radius:var(--radius-md);padding:.625rem .875rem;text-align:center;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.cdm-kpi-label{font-size:.6875rem;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em;margin-bottom:3px}.cdm-kpi-value{font-size:.9375rem;font-weight:700;color:var(--text-primary)}.cdm-section{padding:1.5rem;display:flex;flex-direction:column;gap:1.25rem}.cdm-company-block{display:flex;align-items:center;gap:.875rem;background:var(--primary-light);border:1px solid var(--primary);border-radius:var(--radius-md);padding:.875rem 1rem;margin-bottom:.75rem}.cdm-info-label{font-size:.6875rem;color:var(--text-muted);font-weight:700;text-transform:uppercase;letter-spacing:.05em;margin-bottom:3px}.cdm-notes-box{background:var(--bg-subtle);border:1px solid var(--border);border-radius:var(--radius-md);padding:1rem}.cdm-notes-title{font-size:.6875rem;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.06em;margin-bottom:.375rem}.cdm-notes-text{font-size:.9375rem;color:var(--text-secondary);line-height:1.6}.cdm-commercial-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.875rem}.cdm-com-card{background:var(--bg-subtle);border:1px solid var(--border);border-radius:var(--radius-md);padding:1rem;text-align:center}.cdm-com-label{font-size:.6875rem;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em;margin-bottom:.5rem}.cdm-com-value{font-size:1.25rem;font-weight:800;color:var(--text-primary);letter-spacing:-.02em}.cdm-credit-bar{background:var(--bg-subtle);border:1px solid var(--border);border-radius:var(--radius-md);padding:1rem}.cdm-credit-bar-header{display:flex;justify-content:space-between;margin-bottom:.5rem;font-size:.875rem;font-weight:600;color:var(--text-secondary)}.cdm-credit-bar-bg{height:8px;background:var(--border);border-radius:var(--radius-full);overflow:hidden}.cdm-credit-bar-fill{height:100%;border-radius:var(--radius-full);transition:width .6s var(--ease)}.cdm-modules-future{background:var(--info-bg);border:1px solid #BFDBFE;border-radius:var(--radius-md);padding:1rem}.cdm-modules-title{font-size:.75rem;font-weight:700;color:var(--info);text-transform:uppercase;letter-spacing:.06em;margin-bottom:.75rem}.cdm-modules-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.5rem}.cdm-module-item{display:flex;align-items:center;gap:.5rem;font-size:.875rem;font-weight:600;color:#1e40af}.cdm-module-item svg{width:14px;height:14px;flex-shrink:0}.cdm-timeline{list-style:none;display:flex;flex-direction:column}.cdm-tl-item{display:flex;gap:.875rem}.cdm-tl-track{display:flex;flex-direction:column;align-items:center;flex-shrink:0}.cdm-tl-dot{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0}.cdm-tl-dot svg{width:15px;height:15px;stroke:#fff}.cdm-tl-line{width:1.5px;flex:1;min-height:12px;background:var(--border);margin:4px 0}.cdm-tl-content{flex:1;padding-bottom:1.125rem}.cdm-tl-row{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-bottom:2px}.cdm-tl-type{font-size:.875rem;font-weight:700;color:var(--text-primary)}.cdm-tl-date{font-size:.75rem;color:var(--text-muted);white-space:nowrap}.cdm-tl-desc{font-size:.8125rem;color:var(--text-secondary);margin-bottom:4px}.cdm-tl-amount{font-size:.875rem;font-weight:700;color:var(--success)}@media (max-width:600px){.cdm-info-grid,.cdm-commercial-grid{grid-template-columns:1fr}.cdm-kpis{grid-template-columns:repeat(2,1fr)}.cdm-box{max-height:95vh}}.cdm-history-loading{text-align:center;padding:2rem;color:var(--text-muted);font-size:.875rem;font-style:italic}.cdm-history-list{display:flex;flex-direction:column;gap:.625rem}.cdm-history-item{display:flex;align-items:flex-start;gap:.75rem;background:var(--bg-subtle);border:1px solid var(--border);border-radius:var(--radius-md);padding:.75rem 1rem}.cdm-history-icon{width:34px;height:34px;border-radius:var(--radius-sm);background:var(--success-bg);color:var(--success);display:flex;align-items:center;justify-content:center;flex-shrink:0}.cdm-history-icon svg{width:16px;height:16px}.cdm-history-content{flex:1;min-width:0}.cdm-history-row{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.cdm-history-type{font-size:.875rem;font-weight:700;color:var(--text-primary)}.cdm-history-date{font-size:.75rem;color:var(--text-muted);white-space:nowrap}.cdm-history-detail{font-size:.8125rem;color:var(--text-secondary);margin-top:2px}.crm-page{display:flex;flex-direction:column;gap:1.5rem;flex:1}.crm-page-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1rem}.crm-page-title{font-size:1.375rem;font-weight:800;color:var(--text-primary);letter-spacing:-.025em;margin-bottom:3px}.crm-page-sub{font-size:.875rem;color:var(--text-muted)}.crm-add-btn{display:inline-flex;align-items:center;gap:.5rem;height:40px;padding:0 1.25rem;background:var(--primary);color:#fff;border:none;border-radius:var(--radius-md);font-size:.875rem;font-weight:600;cursor:pointer;font-family:var(--font);transition:background var(--transition),box-shadow var(--transition);white-space:nowrap}.crm-add-btn svg{width:16px;height:16px}.crm-add-btn:hover{background:var(--primary-dark);box-shadow:0 4px 12px #4f46e54d}.crm-filters-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.25rem;box-shadow:var(--shadow-sm)}.crm-dept-badge{display:inline-block;padding:2px 9px;border-radius:var(--radius-full);font-size:.75rem;font-weight:600;background:var(--primary-light);color:var(--primary);white-space:nowrap}.crm-status{display:inline-flex;align-items:center;gap:4px;padding:2px 9px;border-radius:var(--radius-full);font-size:.75rem;font-weight:600;white-space:nowrap}.crm-dot{width:5px;height:5px;border-radius:50%;flex-shrink:0;background:currentColor}@media (max-width:640px){.crm-page-header{flex-direction:column;align-items:flex-start}.crm-add-btn{width:100%;justify-content:center}}.sup-table-wrap{overflow-x:auto;border-radius:var(--radius-lg);border:1px solid var(--border);box-shadow:var(--shadow-sm)}.sup-table{width:100%;border-collapse:collapse;background:var(--surface);font-size:.875rem}.sup-table thead{background:var(--bg-subtle);border-bottom:1px solid var(--border)}.sup-table th{padding:.75rem 1rem;text-align:left;font-size:.6875rem;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.06em;white-space:nowrap}.sup-table td{padding:.8125rem 1rem;border-bottom:1px solid var(--border);vertical-align:middle}.sup-row:last-child td{border-bottom:none}.sup-row:hover td{background:var(--bg-subtle)}.sup-cell-name{display:flex;align-items:center;gap:.75rem;min-width:180px}.sup-avatar{width:36px;height:36px;border-radius:var(--radius-sm);background:#10b981;color:#fff;display:flex;align-items:center;justify-content:center;font-size:.6875rem;font-weight:700;flex-shrink:0}.sup-tags{display:flex;flex-wrap:wrap;gap:3px}.sup-tag{font-size:.6875rem;font-weight:600;padding:2px 7px;background:var(--bg-subtle);border:1px solid var(--border);border-radius:var(--radius-full);color:var(--text-secondary);white-space:nowrap}.sup-tag--more{background:var(--primary-light);color:var(--primary);border-color:transparent}.sup-stars{display:flex;gap:1px}.sup-stars svg{width:13px;height:13px}.sup-vol-fcfa{font-size:.875rem;font-weight:700;color:#10b981;white-space:nowrap}.sup-local{font-size:.875rem;font-weight:600;color:var(--text-secondary);white-space:nowrap}.sup-mobile-local{display:flex;align-items:center;gap:6px;font-size:.8125rem;font-weight:600;color:var(--text-secondary)}.sup-mobile-local svg{width:14px;height:14px;flex-shrink:0;color:var(--text-muted)}.sup-modal-icon{width:40px;height:40px;background:#ecfdf5;border-radius:var(--radius-md);display:flex;align-items:center;justify-content:center;flex-shrink:0}.sup-modal-icon svg{width:20px;height:20px;stroke:#10b981}.sup-dept-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.5rem}.sup-dept-btn{padding:.5rem .75rem;border:1.5px solid var(--border);border-radius:var(--radius-md);background:var(--bg-subtle);font-size:.8125rem;font-weight:500;color:var(--text-secondary);cursor:pointer;font-family:var(--font);transition:border-color var(--transition),background var(--transition),color var(--transition);text-align:left}.sup-dept-btn:hover{border-color:#10b981;color:#10b981}.sup-dept-btn--active{border-color:#10b981;background:#ecfdf5;color:#065f46;font-weight:600}@media (max-width:480px){.sup-dept-grid{grid-template-columns:1fr 1fr}}.ms-root{position:relative;width:100%;margin-bottom:.75rem}.ms-trigger{width:100%;height:40px;padding:0 .75rem;border:1.5px solid var(--border);border-radius:var(--radius-md);background:var(--surface);font-family:var(--font);font-size:.875rem;color:var(--text-primary);cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:.5rem;transition:border-color var(--transition)}.ms-trigger:focus,.ms-trigger:hover{border-color:var(--primary)}.ms-placeholder{color:var(--text-muted)}.ms-selected-preview{flex:1;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-primary);font-size:.8125rem}.ms-dropdown{position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:200;background:var(--surface);border:1.5px solid var(--primary);border-radius:var(--radius-md);box-shadow:var(--shadow-lg);overflow:hidden;animation:ssDropIn .14s var(--ease)}.ms-checkbox{width:16px;height:16px;border:1.5px solid var(--border);border-radius:3px;display:inline-flex;align-items:center;justify-content:center;font-size:.75rem;font-weight:700;color:var(--primary);flex-shrink:0}.ms-loading{text-align:center;padding:.75rem;color:var(--text-muted);font-size:.8125rem;font-style:italic}.ms-footer{display:flex;align-items:center;justify-content:space-between;padding:.375rem .75rem;border-top:1px solid var(--border);font-size:.75rem;color:var(--text-muted)}.ms-clear{border:none;background:none;cursor:pointer;color:var(--error);font-size:.75rem;font-weight:600;padding:0}.sup-stars-input{display:flex;align-items:center;gap:2px;height:40px}.sdm-box{background:var(--surface);border-radius:var(--radius-xl);width:100%;max-width:680px;max-height:92vh;display:flex;flex-direction:column;overflow:hidden;box-shadow:var(--shadow-lg);animation:modalSlideUp .2s var(--ease)}.sdm-header{flex-wrap:wrap;border-bottom:1px solid var(--border);flex-shrink:0;background:linear-gradient(135deg,#ecfdf5,#f0fdf4)}.sdm-header-top{display:flex;align-items:flex-start;gap:.875rem;padding:1.25rem 1.5rem .875rem;flex-wrap:wrap}.sdm-avatar-lg{width:56px;height:56px;border-radius:var(--radius-lg);background:#10b981;color:#fff;display:flex;align-items:center;justify-content:center;font-size:1.125rem;font-weight:800;flex-shrink:0}.sdm-header-info{flex:1;min-width:0}.sdm-name{font-size:1.125rem;font-weight:700;color:var(--text-primary);margin-bottom:2px}.sdm-contact{font-size:.8125rem;color:var(--text-muted);margin-bottom:.5rem}.sdm-badges{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap}.sdm-geo-badge{font-size:.75rem;font-weight:500;color:var(--text-muted);background:#ffffffb3;padding:2px 8px;border-radius:var(--radius-full);border:1px solid var(--border)}.sdm-header-right{display:flex;align-items:center;gap:.5rem;flex-shrink:0;flex-wrap:wrap}.sdm-kpis{display:grid;grid-template-columns:repeat(2,1fr);gap:.5rem;padding:0 1.5rem .875rem;width:100%}.sdm-kpi-cards{display:grid;grid-template-columns:1fr 1fr;gap:.875rem}.sdm-kpi-card{background:var(--bg-subtle);border:1px solid var(--border);border-radius:var(--radius-md);padding:1rem;text-align:center}.sdm-kpi-card--buy{background:#ecfdf5;border-color:#a7f3d0}.sdm-kpi-label{font-size:.6875rem;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em;margin-bottom:.5rem}.sdm-kpi-value{font-size:1.25rem;font-weight:800;color:var(--text-primary)}.sdm-kpi-value--green{color:#065f46}.sdm-list-section{display:flex;flex-direction:column;gap:.625rem}.sdm-list-title{font-size:.8125rem;font-weight:700;color:var(--text-secondary);padding-bottom:.375rem;border-bottom:1px solid var(--border)}.sdm-tags-wrap{display:flex;flex-wrap:wrap;gap:.375rem}.sdm-products-list{list-style:none;display:flex;flex-direction:column;gap:.5rem}.sdm-product-item{display:flex;align-items:center;gap:.625rem;padding:.625rem .875rem;background:var(--bg-subtle);border:1px solid var(--border);border-radius:var(--radius-md);font-size:.875rem;font-weight:500;color:var(--text-secondary)}.sdm-product-item svg{width:15px;height:15px;stroke:#10b981;flex-shrink:0}@media (max-width:580px){.sdm-kpis{grid-template-columns:1fr 1fr}.sdm-kpi-cards{grid-template-columns:1fr}.sdm-box{max-height:95vh}}.cdm-history-empty{display:flex;flex-direction:column;align-items:center;gap:.5rem;padding:2.5rem 1rem;color:var(--text-muted);text-align:center}.cdm-history-empty svg{width:36px;height:36px;stroke:var(--border-strong)}.cdm-history-empty p{font-size:.9375rem;font-weight:600;color:var(--text-secondary);margin:0}.cdm-history-empty span{font-size:.8125rem}.cdm-notes-box{background:var(--bg-subtle);border-radius:var(--radius-md);padding:.875rem 1rem;margin-top:1rem}.cdm-notes-title{font-size:.8125rem;font-weight:700;color:var(--text-muted);margin-bottom:.375rem}.cdm-notes-text{font-size:.875rem;color:var(--text-secondary);line-height:1.6}.cdm-info-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.75rem}.cdm-info-item{background:var(--bg-subtle);border:1px solid var(--border);border-radius:var(--radius-md);padding:.75rem 1rem}.cdm-info-label{font-size:.6875rem;color:var(--text-muted);font-weight:600;text-transform:uppercase;letter-spacing:.05em;margin-bottom:4px}.cdm-info-value{font-size:.9375rem;font-weight:600;color:var(--text-primary)}.cdm-company-block{display:flex;align-items:center;gap:.875rem;background:var(--primary-light);border:1px solid var(--primary);border-radius:var(--radius-md);padding:.875rem 1rem;margin-bottom:.875rem}.cdm-company-icon{width:38px;height:38px;border-radius:var(--radius-sm);background:var(--surface);color:var(--primary);display:flex;align-items:center;justify-content:center;flex-shrink:0}.cdm-company-icon svg{width:18px;height:18px}.cdm-company-name{font-size:.9375rem;font-weight:700;color:var(--text-primary)}.cdm-company-city{font-size:.8125rem;color:var(--text-muted);margin-top:2px}@media (max-width:600px){.cdm-info-grid{grid-template-columns:1fr}}.crm-top-list{display:flex;flex-direction:column;gap:.875rem}.crm-top-item{display:flex;align-items:center;gap:.875rem}.crm-top-rank{width:26px;height:26px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.75rem;font-weight:800;color:#fff;flex-shrink:0}.crm-top-bar-wrap{flex:1}.crm-top-name-row{display:flex;align-items:center;gap:.5rem;margin-bottom:4px}.crm-top-name{font-size:.875rem;font-weight:600;color:var(--text-primary)}.crm-top-bg{height:6px;background:var(--bg-subtle);border-radius:3px;overflow:hidden}.crm-top-fill{height:100%;border-radius:3px;transition:width .5s}.crm-top-val{font-size:.8125rem;font-weight:700;color:var(--text-secondary);white-space:nowrap}.crm-add-btn--supplier{background:#10b981}.crm-add-btn--supplier:hover{background:#059669;box-shadow:0 4px 12px #10b9814d}.crm-page-breadcrumb{font-size:.8125rem;color:var(--text-muted);margin-bottom:.25rem}.cfs-root{position:relative;min-width:160px}.cfs-trigger{width:100%;height:36px;padding:0 .625rem;border:1.5px solid var(--border);border-radius:var(--radius-md);background:var(--surface);font-family:var(--font);font-size:.8125rem;color:var(--text-primary);cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:.375rem;transition:border-color var(--transition),box-shadow var(--transition)}.cfs-trigger:hover,.cfs-trigger--open{border-color:var(--primary)}.cfs-placeholder{color:var(--text-muted)}.cfs-chevron{width:13px;height:13px;stroke:var(--text-muted);flex-shrink:0;transition:transform var(--transition)}.cfs-chevron--up{transform:rotate(180deg)}.cfs-dropdown{position:absolute;top:calc(100% + 4px);left:0;min-width:220px;z-index:300;background:var(--surface);border:1.5px solid var(--primary);border-radius:var(--radius-md);box-shadow:var(--shadow-lg);overflow:hidden;animation:ssDropIn .14s var(--ease)}.cfs-search-wrap{display:flex;align-items:center;gap:.5rem;padding:.5rem .75rem;border-bottom:1px solid var(--border)}.cfs-search-wrap svg{width:13px;height:13px;stroke:var(--text-muted);flex-shrink:0}.cfs-search{flex:1;border:none;outline:none;font-family:var(--font);font-size:.8125rem;color:var(--text-primary);background:transparent}.cfs-search::placeholder{color:var(--text-muted)}.cfs-clear-btn{border:none;background:none;cursor:pointer;display:flex;align-items:center;padding:0;opacity:.6}.cfs-clear-btn:hover{opacity:1}.cfs-clear-btn svg{width:13px;height:13px;stroke:var(--text-muted)}.cfs-list{list-style:none;margin:0;padding:.25rem 0;max-height:220px;overflow-y:auto}.cfs-item{display:flex;align-items:center;gap:.5rem;padding:.4375rem .75rem;cursor:pointer;font-size:.8125rem;color:var(--text-primary);transition:background var(--transition)}.cfs-item:hover{background:var(--primary-light)}.cfs-item--active{background:var(--primary-light);color:var(--primary);font-weight:600}.cfs-item--empty{color:var(--text-muted);font-style:italic;cursor:default;justify-content:center}.ord-stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.875rem}.ord-stat-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1rem;display:flex;align-items:center;gap:.75rem;box-shadow:var(--shadow-sm);transition:box-shadow var(--transition),transform var(--transition)}.ord-stat-card:hover{box-shadow:var(--shadow-md);transform:translateY(-1px)}.ord-stat-icon{width:40px;height:40px;border-radius:var(--radius-md);display:flex;align-items:center;justify-content:center;flex-shrink:0}.ord-stat-icon svg{width:20px;height:20px}.ord-stat-value{font-size:1.375rem;font-weight:800;color:var(--text-primary);letter-spacing:-.03em;line-height:1}.ord-stat-label{font-size:.75rem;font-weight:500;color:var(--text-secondary);margin-top:3px}@media (max-width:1200px){.ord-stats-grid{grid-template-columns:repeat(3,1fr)}}@media (max-width:768px){.ord-stats-grid{grid-template-columns:repeat(2,1fr)}}@media (max-width:480px){.ord-stat-value{font-size:1.125rem}}.ord-filters-wrap{display:flex;flex-direction:column;gap:.625rem}.ord-filters-row{display:flex;gap:.75rem;flex-wrap:wrap;align-items:center}.ord-search-wrap{position:relative;flex:1;min-width:200px;max-width:320px}.ord-search-icon{position:absolute;left:.75rem;top:50%;transform:translateY(-50%);color:var(--text-muted);display:flex;pointer-events:none}.ord-search-icon svg{width:16px;height:16px}.ord-search-input{width:100%;height:38px;padding:0 2rem 0 2.375rem;border:1.5px solid var(--border);border-radius:var(--radius-md);font-size:.875rem;color:var(--text-primary);background:var(--surface);font-family:var(--font);transition:border-color var(--transition),box-shadow var(--transition)}.ord-search-input::placeholder{color:var(--text-muted)}.ord-search-input:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-ring)}.ord-search-input::-webkit-search-cancel-button{display:none}.ord-search-clear{position:absolute;right:.5rem;top:50%;transform:translateY(-50%);background:none;border:none;cursor:pointer;color:var(--text-muted);display:flex}.ord-search-clear svg{width:14px;height:14px}.ord-selects{display:flex;gap:.5rem;flex-wrap:wrap;align-items:center}.ord-select{height:38px;padding:0 1.75rem 0 .75rem;border:1.5px solid var(--border);border-radius:var(--radius-md);font-size:.8125rem;color:var(--text-secondary);background:var(--surface);font-family:var(--font);cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .5rem center;background-size:13px;transition:border-color var(--transition)}.ord-select:focus{outline:none;border-color:var(--primary)}.ord-reset{display:flex;align-items:center;gap:4px;height:38px;padding:0 .875rem;background:none;border:1.5px solid var(--border);border-radius:var(--radius-md);font-size:.8125rem;font-weight:600;color:var(--text-secondary);cursor:pointer;font-family:var(--font);white-space:nowrap;transition:border-color var(--transition),color var(--transition)}.ord-reset svg{width:13px;height:13px}.ord-reset:hover{border-color:var(--error);color:var(--error)}.ord-count{font-size:.8125rem;color:var(--text-muted);font-weight:500}@media (max-width:640px){.ord-search-wrap{max-width:100%}.ord-selects{width:100%}.ord-select{flex:1}}.ord-table-wrap{overflow-x:auto;border-radius:var(--radius-lg);border:1px solid var(--border);box-shadow:var(--shadow-sm)}.ord-table{width:100%;border-collapse:collapse;background:var(--surface);font-size:.875rem}.ord-table thead{background:var(--bg-subtle);border-bottom:1px solid var(--border)}.ord-table th{padding:.75rem 1rem;text-align:left;font-size:.6875rem;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.06em;white-space:nowrap}.ord-table td{padding:.8125rem 1rem;border-bottom:1px solid var(--border);vertical-align:middle}.ord-row:last-child td{border-bottom:none}.ord-row:hover td{background:var(--bg-subtle)}.ord-ref-link{background:none;border:none;cursor:pointer;font-size:.875rem;font-weight:700;color:var(--primary);font-family:var(--font);padding:0;text-decoration:none;transition:color var(--transition)}.ord-ref-link:hover{color:var(--primary-dark);text-decoration:underline}.ord-dept{font-size:.8125rem;font-weight:500;color:var(--text-secondary);white-space:nowrap}.ord-local{font-size:.8125rem;font-weight:600;color:var(--text-secondary);white-space:nowrap}.ord-party-name{font-size:.875rem;font-weight:600;color:var(--text-primary)}.ord-party-company{font-size:.75rem;color:var(--text-muted)}.ord-num{font-size:.875rem;font-weight:600;color:var(--text-secondary)}.ord-total{font-size:.9375rem;font-weight:700;color:var(--text-primary);white-space:nowrap}.ord-date{font-size:.8125rem;color:var(--text-muted);white-space:nowrap}.ord-actions{display:flex;gap:4px}.ord-btn{width:30px;height:30px;border:none;border-radius:var(--radius-sm);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:filter var(--transition)}.ord-btn svg{width:14px;height:14px}.ord-btn--view{background:var(--info-bg);color:var(--info)}.ord-btn--edit{background:var(--warning-bg);color:var(--warning)}.ord-btn--invoice{background:#ede9fe;color:#6d28d9}.ord-btn--delete{background:var(--error-bg);color:var(--error)}.ord-btn:hover{filter:brightness(.88)}.ord-empty{text-align:center;padding:3rem 2rem;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg)}.ord-empty svg{width:40px;height:40px;stroke:var(--text-muted);margin:0 auto .875rem}.ord-empty p{font-weight:600;color:var(--text-secondary);margin-bottom:.25rem}.ord-empty span{font-size:.875rem;color:var(--text-muted)}.ord-cards-mobile{display:none;flex-direction:column;gap:.75rem}.ord-mobile-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1rem;display:flex;flex-direction:column;gap:.75rem;box-shadow:var(--shadow-sm)}.ord-mobile-top{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.ord-mobile-footer{display:flex;align-items:center;justify-content:space-between}.ord-mobile-total{font-size:1rem;font-weight:800;color:var(--text-primary)}@media (max-width:768px){.ord-table-wrap{display:none}.ord-cards-mobile{display:flex}}.om-box{background:var(--surface);border-radius:var(--radius-xl);width:100%;max-width:1060px;max-height:92vh;display:flex;flex-direction:column;overflow:hidden;box-shadow:var(--shadow-lg);animation:modalSlideUp .2s var(--ease)}.om-icon{width:40px;height:40px;background:var(--primary-light);border-radius:var(--radius-md);display:flex;align-items:center;justify-content:center;flex-shrink:0}.om-icon svg{width:20px;height:20px;stroke:var(--primary)}.om-sections{display:flex;border-bottom:1px solid var(--border);padding:0 1.5rem;overflow-x:auto;flex-shrink:0}.om-section-btn{height:42px;padding:0 1.125rem;background:none;border:none;border-bottom:2.5px solid transparent;font-size:.875rem;font-weight:500;color:var(--text-muted);cursor:pointer;font-family:var(--font);white-space:nowrap;transition:color var(--transition);margin-bottom:-1px}.om-section-btn:hover{color:var(--text-primary)}.om-section-btn--active{color:var(--primary);border-bottom-color:var(--primary);font-weight:600}.om-body{overflow-y:auto;padding:1.5rem;display:flex;flex-direction:column;gap:1.125rem;flex:1;min-height:0}.om-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:.875rem}.om-field{display:flex;flex-direction:column;gap:4px}.om-label{font-size:.8125rem;font-weight:600;color:var(--text-primary)}.om-req{color:var(--error);margin-left:2px}.om-input,.om-select,.om-textarea{border:1.5px solid var(--border);border-radius:var(--radius-md);font-size:.875rem;color:var(--text-primary);background:var(--surface);font-family:var(--font);width:100%;transition:border-color var(--transition),box-shadow var(--transition)}.om-input,.om-select{height:40px;padding:0 .75rem}.om-textarea{padding:.625rem .75rem;resize:vertical}.om-input:focus,.om-select:focus,.om-textarea:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-ring)}.om-select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .5rem center;background-size:14px;padding-right:2rem;cursor:pointer}.om-select:disabled,.om-input:disabled{background-color:var(--bg-subtle);color:var(--text-muted);cursor:not-allowed}.om-type-btns{display:flex;gap:.5rem}.om-type-btn{flex:1;height:42px;display:flex;align-items:center;justify-content:center;gap:.5rem;border:1.5px solid var(--border);border-radius:var(--radius-md);background:var(--bg-subtle);font-size:.875rem;font-weight:500;color:var(--text-secondary);cursor:pointer;font-family:var(--font);transition:border-color var(--transition),background var(--transition),color var(--transition)}.om-type-btn svg{width:16px;height:16px}.om-type-btn:hover{border-color:var(--primary);color:var(--primary)}.om-type-btn--active{border-color:var(--primary);background:var(--primary-light);color:var(--primary);font-weight:600}.om-sub-title{font-size:.9375rem;font-weight:700;color:var(--text-primary)}.om-party-header{display:flex;align-items:center;justify-content:space-between;gap:.75rem}.om-quick-btn{display:flex;align-items:center;gap:5px;height:34px;padding:0 .875rem;background:var(--success);color:#fff;border:none;border-radius:var(--radius-md);font-size:.8125rem;font-weight:600;cursor:pointer;font-family:var(--font);transition:filter var(--transition);white-space:nowrap;flex-shrink:0}.om-quick-btn svg{width:14px;height:14px}.om-quick-btn:hover{filter:brightness(.9)}.om-party-list{display:flex;flex-direction:column;gap:.5rem}.om-party-item{display:flex;align-items:center;gap:.75rem;padding:.75rem 1rem;background:var(--bg-subtle);border:1.5px solid var(--border);border-radius:var(--radius-md);cursor:pointer;text-align:left;font-family:var(--font);transition:border-color var(--transition),background var(--transition)}.om-party-item:hover{border-color:var(--primary)}.om-party-item--selected{border-color:var(--primary);background:var(--primary-light)}.om-party-item--selected svg{width:16px;height:16px;stroke:var(--primary)}.om-party-avatar{width:32px;height:32px;border-radius:var(--radius-sm);display:flex;align-items:center;justify-content:center;font-size:.6875rem;font-weight:700;color:#fff;flex-shrink:0}.om-party-name{font-size:.875rem;font-weight:600;color:var(--text-primary)}.om-party-company{font-size:.75rem;color:var(--text-muted)}.om-lines-header{display:flex;align-items:center;justify-content:space-between}.om-bulk-tva-block{display:flex;align-items:center;justify-content:space-between;gap:1rem;background:var(--primary-light);border:1.5px solid var(--primary);border-radius:var(--radius-md);padding:.75rem 1rem;margin:.75rem 0}.om-bulk-tva-info{display:flex;align-items:center;gap:.625rem}.om-bulk-tva-info svg{width:20px;height:20px;color:var(--primary);flex-shrink:0}.om-bulk-tva-title{font-size:.8125rem;font-weight:700;color:var(--text-primary)}.om-bulk-tva-sub{font-size:.75rem;color:var(--text-muted)}.om-bulk-tva-block .om-line-select{width:auto;min-width:90px;background-color:var(--surface)}.om-add-line-btn{display:flex;align-items:center;gap:4px;height:34px;padding:0 .875rem;background:var(--primary);color:#fff;border:none;border-radius:var(--radius-md);font-size:.8125rem;font-weight:600;cursor:pointer;font-family:var(--font)}.om-add-line-btn svg{width:14px;height:14px}.om-add-line-btn:hover{background:var(--primary-dark)}.om-info-box{display:flex;align-items:center;gap:.5rem;padding:.75rem 1rem;background:var(--info-bg);border:1px solid #BFDBFE;border-radius:var(--radius-md);font-size:.875rem;color:#1e40af}.om-info-box svg{width:15px;height:15px;stroke:#2563eb;flex-shrink:0}.om-lines-table-wrap{overflow-x:auto;overflow-y:visible;border:1px solid var(--border);border-radius:var(--radius-md)}.om-lines-table{width:100%;border-collapse:collapse;font-size:.8125rem}.om-lines-table thead{background:var(--bg-subtle);border-bottom:1px solid var(--border)}.om-lines-table th{padding:.5rem .75rem;text-align:left;font-size:.6875rem;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.06em;white-space:nowrap}.om-line-row{border-bottom:1px solid var(--border)}.om-line-row:last-child{border-bottom:none}.om-line-row:hover td{background:var(--bg-subtle)}.om-line-row td{padding:.5rem .75rem;vertical-align:middle}.om-line-input,.om-line-select{height:34px;border:1.5px solid var(--border);border-radius:var(--radius-sm);font-size:.8125rem;color:var(--text-primary);background:var(--surface);font-family:var(--font);padding:0 .5rem;width:80px;transition:border-color var(--transition)}.om-line-select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .25rem center;background-size:10px;padding-right:1.25rem;width:auto;min-width:80px;cursor:pointer}.om-line-select:first-child{width:180px}.om-line-input--sm,.om-line-select--sm{width:60px}.om-line-input:focus,.om-line-select:focus{outline:none;border-color:var(--primary)}.om-line-total{font-size:.9375rem;font-weight:700;color:var(--text-primary);white-space:nowrap}.om-remove-line{width:26px;height:26px;background:var(--error-bg);border:none;border-radius:var(--radius-sm);display:flex;align-items:center;justify-content:center;cursor:pointer;color:var(--error)}.om-remove-line svg{width:13px;height:13px}.om-summary{display:flex;flex-direction:column;gap:1.25rem}.om-summary-rows{background:var(--bg-subtle);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.25rem;display:flex;flex-direction:column;gap:.625rem}.om-summary-row{display:flex;justify-content:space-between;font-size:.9375rem;color:var(--text-secondary)}.om-summary-row--muted{font-size:.875rem;color:var(--text-muted)}.om-summary-total{display:flex;justify-content:space-between;font-size:1.125rem;font-weight:800;color:var(--text-primary);padding-top:.75rem;border-top:2px solid var(--border);margin-top:.25rem}.om-summary-meta{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);padding:1rem;display:flex;flex-direction:column;gap:.375rem;font-size:.875rem;color:var(--text-secondary)}.om-summary-meta-label{font-size:.75rem;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.06em;margin-bottom:.25rem}.om-billing-actions{background:var(--info-bg);border:1px solid #BFDBFE;border-radius:var(--radius-md);padding:1rem}.om-billing-title{font-size:.8125rem;font-weight:700;color:var(--info);text-transform:uppercase;letter-spacing:.06em;margin-bottom:.75rem}.om-billing-btns{display:flex;gap:.625rem;flex-wrap:wrap}.om-billing-btn{display:flex;align-items:center;gap:.5rem;height:36px;padding:0 1rem;background:var(--surface);border:1.5px solid #BFDBFE;border-radius:var(--radius-md);font-size:.8125rem;font-weight:600;color:#1e40af;cursor:pointer;font-family:var(--font);transition:background var(--transition),border-color var(--transition)}.om-billing-btn svg{width:15px;height:15px}.om-billing-btn:hover{background:#eff6ff;border-color:var(--info)}.qm-overlay{z-index:600}.qm-box{background:var(--surface);border-radius:var(--radius-xl);width:100%;max-width:400px;max-height:85vh;display:flex;flex-direction:column;overflow:hidden;box-shadow:var(--shadow-lg);animation:modalSlideUp .15s var(--ease)}.qm-header{display:flex;align-items:center;justify-content:space-between;padding:1.125rem 1.25rem;border-bottom:1px solid var(--border)}.qm-header h3{font-size:.9375rem;font-weight:700;color:var(--text-primary)}.qm-close{margin-left:auto}.qm-body{display:flex;flex-direction:column;gap:.75rem;padding:1.25rem;overflow-y:auto;flex:1;min-height:0}.qm-input{height:40px;width:100%;padding:0 .75rem;border:1.5px solid var(--border);border-radius:var(--radius-md);font-size:.875rem;color:var(--text-primary);background:var(--surface);font-family:var(--font);transition:border-color var(--transition)}.qm-input::placeholder{color:var(--text-muted)}.qm-input:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-ring)}.qm-footer{display:flex;gap:.625rem;padding:1rem 1.25rem;border-top:1px solid var(--border)}@media (max-width:640px){.om-grid-2{grid-template-columns:1fr}.om-box{max-height:95vh}.om-type-btns{flex-direction:column}}.pss-root{position:relative;width:100%;overflow:visible}.pss-trigger{width:100%;height:36px;padding:0 .625rem;border:1.5px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);font-family:var(--font);font-size:.8125rem;color:var(--text-primary);cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:.375rem;transition:border-color var(--transition)}.pss-trigger:hover{border-color:var(--primary)}.pss-placeholder{color:var(--text-muted)}.pss-chevron{width:13px;height:13px;stroke:var(--text-muted);flex-shrink:0;transition:transform var(--transition)}.pss-chevron--up{transform:rotate(180deg)}.pss-dropdown{position:absolute;top:calc(100% + 2px);left:0;min-width:320px;width:100%;z-index:9999;background:var(--surface);border:1.5px solid var(--primary);border-radius:var(--radius-md);box-shadow:0 8px 32px #0000002e;animation:ssDropIn .12s var(--ease)}.pss-search-wrap{display:flex;align-items:center;gap:.5rem;padding:.5rem .625rem;border-bottom:1px solid var(--border)}.pss-search-wrap svg{width:13px;height:13px;stroke:var(--text-muted);flex-shrink:0}.pss-search{flex:1;border:none;outline:none;font-family:var(--font);font-size:.8125rem;color:var(--text-primary);background:transparent}.pss-list{list-style:none;margin:0;padding:.25rem 0;max-height:380px;min-height:48px;overflow-y:auto}.pss-item{display:flex;align-items:center;gap:.5rem;padding:.4375rem .75rem;cursor:pointer;font-size:.8125rem;transition:background var(--transition)}.pss-item:hover{background:var(--primary-light)}.pss-item--active{background:var(--primary-light);color:var(--primary);font-weight:600}.pss-item-name{flex:1;font-weight:500;color:var(--text-primary)}.pss-item-ref{font-size:.75rem;color:var(--text-muted);font-family:monospace}.pss-item-price{font-size:.75rem;font-weight:600;color:var(--success);white-space:nowrap}.pss-empty{text-align:center;padding:.75rem;color:var(--text-muted);font-style:italic;font-size:.8125rem}.om-hint{font-size:.75rem;color:var(--text-muted);margin-top:3px;font-style:italic}.om-auto-badge{font-size:.6875rem;font-weight:700;padding:1px 6px;background:var(--success-bg);color:#065f46;border-radius:var(--radius-full);margin-left:4px}.om-ref-row{display:flex;gap:.5rem;align-items:center}.om-ref-row .om-input{flex:1}.om-regen-btn{height:40px;width:40px;border:1.5px solid var(--border);border-radius:var(--radius-md);background:var(--bg-subtle);cursor:pointer;font-size:1.125rem;display:flex;align-items:center;justify-content:center;transition:border-color var(--transition);flex-shrink:0}.om-regen-btn:hover{border-color:var(--primary);color:var(--primary)}.om-party-search-wrap{display:flex;align-items:center;gap:.625rem;padding:.625rem .875rem;border:1.5px solid var(--border);border-radius:var(--radius-md);background:var(--surface);margin-bottom:.75rem}.om-party-search-wrap svg{width:15px;height:15px;stroke:var(--text-muted);flex-shrink:0}.om-party-search{flex:1;border:none;outline:none;font-family:var(--font);font-size:.875rem;color:var(--text-primary);background:transparent}.om-party-search::placeholder{color:var(--text-muted)}.om-count-badge{font-size:.75rem;font-weight:600;padding:2px 8px;background:var(--bg-subtle);color:var(--text-muted);border-radius:var(--radius-full);border:1px solid var(--border)}.om-section-btn--done{color:var(--success)!important}.om-done-check{margin-right:3px;font-weight:700}.om-billing-btn--primary{background:var(--primary)!important;color:#fff!important;border-color:var(--primary)!important}.om-billing-btn--primary:hover{opacity:.9}.ska-loading{text-align:center;padding:.875rem;color:var(--text-muted);font-size:.8125rem;font-style:italic}.pss-dropdown-fixed{position:fixed;z-index:9999;background:var(--surface);border:1.5px solid var(--primary);border-radius:var(--radius-md);box-shadow:0 8px 32px #00000038;min-width:280px;animation:ssDropIn .12s var(--ease)}.odm-box{background:var(--surface);border-radius:var(--radius-xl);width:100%;max-width:800px;max-height:92vh;display:flex;flex-direction:column;overflow:hidden;box-shadow:var(--shadow-lg);animation:modalSlideUp .2s var(--ease)}.odm-header{border-bottom:1px solid var(--border);flex-shrink:0}.odm-header-top{display:flex;align-items:flex-start;justify-content:space-between;padding:1.25rem 1.5rem .75rem;gap:.75rem;flex-wrap:wrap}.odm-ref-row{display:flex;align-items:center;gap:.625rem;flex-wrap:wrap;margin-bottom:4px}.odm-ref{font-size:1.125rem;font-weight:800;color:var(--text-primary)}.odm-meta{font-size:.8125rem;color:var(--text-muted)}.odm-header-actions{display:flex;align-items:center;gap:.5rem;flex-shrink:0}.odm-edit-btn{display:flex;align-items:center;gap:5px;height:34px;padding:0 .875rem;background:none;border:1.5px solid var(--border);border-radius:var(--radius-md);font-size:.8125rem;font-weight:600;color:var(--text-secondary);cursor:pointer;font-family:var(--font);transition:border-color var(--transition),color var(--transition)}.odm-edit-btn svg{width:14px;height:14px}.odm-edit-btn:hover{border-color:var(--primary);color:var(--primary)}.odm-stepper{display:flex;padding:.875rem 1.5rem;overflow-x:auto}.odm-step{display:flex;flex-direction:column;align-items:center;flex:1;min-width:80px}.odm-step-dot-wrap{display:flex;align-items:center;width:100%}.odm-step-dot{width:26px;height:26px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;border:2px solid var(--border);background:var(--surface)}.odm-step-dot svg{width:13px;height:13px;stroke:#fff}.odm-step-dot--active{color:#fff}.odm-step-line{flex:1;height:2px;background:var(--border)}.odm-step-line--done{background:var(--success)}.odm-step-label{font-size:.6875rem;font-weight:500;color:var(--text-muted);margin-top:5px;text-align:center}.odm-step-label--active{color:var(--primary);font-weight:700}.odm-section{padding:1.5rem;display:flex;flex-direction:column;gap:1.25rem}.odm-info-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.75rem}.odm-company-block{display:flex;align-items:center;gap:.875rem;background:var(--primary-light);border:1px solid var(--primary);border-radius:var(--radius-md);padding:.875rem 1rem;margin-bottom:.875rem}.odm-company-icon{width:38px;height:38px;border-radius:var(--radius-sm);background:var(--surface);color:var(--primary);display:flex;align-items:center;justify-content:center;flex-shrink:0}.odm-company-icon svg{width:18px;height:18px}.odm-company-name{font-size:.9375rem;font-weight:700;color:var(--text-primary)}.odm-company-city{font-size:.8125rem;color:var(--text-muted);margin-top:2px}.odm-payment-row{display:flex;gap:1.25rem;flex-wrap:wrap;font-size:.875rem;color:var(--text-secondary)}.odm-info-item{background:var(--bg-subtle);border:1px solid var(--border);border-radius:var(--radius-md);padding:.75rem 1rem}.odm-info-label{font-size:.6875rem;color:var(--text-muted);font-weight:700;text-transform:uppercase;letter-spacing:.05em;margin-bottom:3px}.odm-info-value{font-size:.9375rem;font-weight:600;color:var(--text-primary)}.odm-notes{background:var(--bg-subtle);border:1px solid var(--border);border-radius:var(--radius-md);padding:1rem}.odm-notes-label{font-size:.6875rem;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.06em;margin-bottom:.375rem}.odm-notes-text{font-size:.9375rem;color:var(--text-secondary);line-height:1.6}.odm-billing{background:var(--info-bg);border:1px solid #BFDBFE;border-radius:var(--radius-md);padding:1rem}.odm-billing-title{font-size:.75rem;font-weight:700;color:var(--info);text-transform:uppercase;letter-spacing:.06em;margin-bottom:.75rem}.odm-products-table-wrap{overflow-x:auto;border:1px solid var(--border);border-radius:var(--radius-md)}.odm-products-table{width:100%;border-collapse:collapse;font-size:.875rem}.odm-products-table thead{background:var(--bg-subtle);border-bottom:1px solid var(--border)}.odm-products-table th{padding:.625rem .875rem;text-align:left;font-size:.6875rem;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.06em;white-space:nowrap}.odm-products-table td{padding:.75rem .875rem;border-bottom:1px solid var(--border);vertical-align:middle}.odm-prod-row:last-child td{border-bottom:none}.odm-prod-row:hover td{background:var(--bg-subtle)}.odm-prod-name{font-size:.875rem;font-weight:700;color:var(--text-primary)}.odm-prod-cat{font-size:.8125rem;color:var(--text-muted)}.odm-prod-num,.odm-prod-unit{font-size:.875rem;color:var(--text-secondary);font-weight:500}.odm-prod-price,.odm-prod-total{font-weight:700;white-space:nowrap}.odm-prod-total{color:var(--success)}.odm-prod-disc{color:var(--error);font-size:.8125rem}.odm-prod-tva{font-size:.8125rem;color:var(--text-muted)}.odm-financial-grid{background:var(--bg-subtle);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.25rem;display:flex;flex-direction:column;gap:.625rem}.odm-fin-row{display:flex;justify-content:space-between;font-size:.9375rem;color:var(--text-secondary)}.odm-fin-row--muted{font-size:.875rem;color:var(--text-muted)}.odm-fin-total{display:flex;justify-content:space-between;font-size:1.125rem;font-weight:800;color:var(--text-primary);padding-top:.75rem;border-top:2px solid var(--border);margin-top:.25rem}.odm-currency-note{display:flex;align-items:center;gap:.625rem;padding:.75rem 1rem;background:#fefce8;border:1px solid #FDE68A;border-radius:var(--radius-md);font-size:.8125rem;color:#92400e}.odm-currency-note svg{width:16px;height:16px;stroke:#d97706;flex-shrink:0}.odm-timeline{list-style:none;display:flex;flex-direction:column}.odm-tl-item{display:flex;gap:.875rem}.odm-tl-track{display:flex;flex-direction:column;align-items:center;flex-shrink:0}.odm-tl-dot{width:30px;height:30px;border-radius:50%;flex-shrink:0}.odm-tl-line{width:1.5px;flex:1;min-height:12px;background:var(--border);margin:4px 0}.odm-tl-content{flex:1;padding-bottom:1rem}.odm-tl-row{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-bottom:3px}.odm-tl-event{font-size:.875rem;font-weight:700;color:var(--text-primary)}.odm-tl-date{font-size:.75rem;color:var(--text-muted);white-space:nowrap}.odm-tl-user{display:flex;align-items:center;gap:4px;font-size:.75rem;color:var(--text-muted)}.odm-tl-user svg{width:12px;height:12px}.cdm-tabs{display:flex;padding:0 1.5rem;border-top:1px solid var(--border);overflow-x:auto}.cdm-tab{height:42px;padding:0 1rem;background:none;border:none;border-bottom:2.5px solid transparent;font-size:.875rem;font-weight:500;color:var(--text-muted);cursor:pointer;font-family:var(--font);white-space:nowrap;transition:color var(--transition);margin-bottom:-1px}.cdm-tab:hover{color:var(--text-primary)}.cdm-tab--active{color:var(--primary);border-bottom-color:var(--primary);font-weight:600}.cdm-body{overflow-y:auto;flex:1;min-height:0}.ord-type-badge{display:inline-flex;align-items:center;gap:4px;padding:2px 9px;border-radius:var(--radius-full);font-size:.75rem;font-weight:600;white-space:nowrap}.ord-type-badge svg{width:12px;height:12px}.ord-type-badge--client{background:var(--primary-light);color:var(--primary)}.ord-type-badge--supplier{background:#ecfdf5;color:#065f46}.ord-status{display:inline-flex;align-items:center;gap:4px;padding:3px 9px;border-radius:var(--radius-full);font-size:.75rem;font-weight:600;white-space:nowrap}.ord-status-dot{width:5px;height:5px;border-radius:50%;flex-shrink:0;background:currentColor}.ord-currency{font-size:.6875rem;font-weight:700;color:var(--text-muted);background:var(--bg-subtle);padding:1px 5px;border-radius:var(--radius-xs);border:1px solid var(--border)}@media (max-width:600px){.odm-info-grid{grid-template-columns:repeat(2,1fr)}.odm-box{max-height:95vh}}.ord-an-section{display:flex;flex-direction:column;gap:1.25rem}.ord-an-header{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:1rem}.ord-an-title{font-size:.9375rem;font-weight:700;color:var(--text-primary)}.ord-an-controls{display:flex;flex-direction:column;gap:.5rem;align-items:flex-end}.ord-an-filter-group{display:flex;gap:3px;flex-wrap:wrap}.ord-an-btn{padding:4px 10px;border:1.5px solid var(--border);border-radius:var(--radius-full);background:var(--surface);font-size:.8125rem;font-weight:500;color:var(--text-secondary);cursor:pointer;font-family:var(--font);transition:border-color var(--transition),background var(--transition),color var(--transition);white-space:nowrap}.ord-an-btn:hover{border-color:var(--primary);color:var(--primary)}.ord-an-btn--active{background:var(--primary);border-color:var(--primary);color:#fff;font-weight:600}.ord-an-select{height:28px;padding:0 8px;border:1.5px solid var(--border);border-radius:var(--radius-md);font-size:.75rem;font-family:var(--font);color:var(--text-secondary);background:var(--surface);cursor:pointer}.ord-an-select:focus{outline:none;border-color:var(--primary)}.ord-an-date-group{display:flex;align-items:center;gap:4px}.ord-an-date-input{height:28px;padding:0 8px;border:1.5px solid var(--border);border-radius:var(--radius-md);font-size:.75rem;font-family:var(--font);color:var(--text-secondary);background:var(--surface);cursor:pointer}.ord-an-date-input:focus{outline:none;border-color:var(--primary)}.ord-an-date-clear{width:22px;height:22px;border:none;border-radius:var(--radius-full);background:var(--error-bg);color:var(--error);display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0}.ord-an-date-clear svg{width:12px;height:12px}.ord-an-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1.25rem}.ord-an-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.25rem;box-shadow:var(--shadow-sm)}.ord-an-card--wide{grid-column:1/-1}.ord-an-card-title{font-size:.875rem;font-weight:700;color:var(--text-primary);margin-bottom:.875rem}.ord-top-list{display:flex;flex-direction:column;gap:.875rem}.ord-top-item{display:flex;align-items:center;gap:.75rem}.ord-top-rank{width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.6875rem;font-weight:800;color:#fff;flex-shrink:0}.ord-top-bar-wrap{flex:1;display:flex;flex-direction:column;gap:3px}.ord-top-name-row{display:flex;justify-content:space-between;align-items:center;gap:.5rem}.ord-top-name{font-size:.875rem;font-weight:600;color:var(--text-primary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:200px}.ord-top-qty{font-size:.75rem;color:var(--text-muted);white-space:nowrap}.ord-top-bg{height:5px;background:var(--bg-subtle);border-radius:var(--radius-full);overflow:hidden;border:1px solid var(--border)}.ord-top-fill{height:100%;border-radius:var(--radius-full);transition:width .6s var(--ease)}.ord-top-ca{font-size:.75rem;font-weight:600;color:var(--text-muted);white-space:nowrap;flex-shrink:0;min-width:90px;text-align:right}@media (max-width:768px){.ord-an-grid{grid-template-columns:1fr}.ord-an-header{flex-direction:column}}.ord-page{display:flex;flex-direction:column;gap:1.5rem;flex:1}.ord-page-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1rem}.ord-page-title{font-size:1.375rem;font-weight:800;color:var(--text-primary);letter-spacing:-.025em;margin-bottom:3px}.ord-page-sub{font-size:.875rem;color:var(--text-muted)}.ord-page-btns{display:flex;gap:.625rem}.ord-create-btn{display:inline-flex;align-items:center;gap:.375rem;height:38px;padding:0 1rem;border:none;border-radius:var(--radius-md);font-size:.8125rem;font-weight:600;cursor:pointer;font-family:var(--font);transition:filter var(--transition),box-shadow var(--transition);white-space:nowrap}.ord-create-btn svg{width:14px;height:14px}.ord-create-btn:hover{filter:brightness(.9);box-shadow:0 3px 10px #00000026}.ord-create-btn--client{background:var(--primary);color:#fff}.ord-create-btn--supplier{background:#10b981;color:#fff}.ord-tabs-bar{display:flex;gap:0;border-bottom:1px solid var(--border);background:var(--surface);border-radius:var(--radius-lg) var(--radius-lg) 0 0;border:1px solid var(--border);overflow-x:auto}.ord-tab{display:flex;align-items:center;gap:.5rem;height:46px;padding:0 1.25rem;background:none;border:none;border-bottom:2.5px solid transparent;font-size:.875rem;font-weight:500;color:var(--text-muted);cursor:pointer;font-family:var(--font);white-space:nowrap;transition:color var(--transition);margin-bottom:-1px}.ord-tab:hover{color:var(--text-primary)}.ord-tab--active{color:var(--primary);border-bottom-color:var(--primary);font-weight:600}.ord-tab-count{font-size:.6875rem;font-weight:700;padding:1px 7px;background:var(--bg-subtle);border:1px solid var(--border);border-radius:var(--radius-full);color:var(--text-muted)}.ord-tab--active .ord-tab-count{background:var(--primary-light);border-color:transparent;color:var(--primary)}.ord-filters-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.25rem;box-shadow:var(--shadow-sm)}@media (max-width:640px){.ord-page-header{flex-direction:column;align-items:flex-start}.ord-page-btns{width:100%}.ord-create-btn{flex:1;justify-content:center}}.ord-page-breadcrumb{font-size:.8125rem;color:var(--text-muted);margin-bottom:.25rem}.ord-create-btn--supplier{background:#10b981!important}.ord-create-btn--supplier:hover{background:#059669!important;box-shadow:0 4px 12px #10b9814d!important}.ord-main-tabs-bar{display:flex;gap:4px;border-bottom:2px solid var(--border);margin-bottom:.75rem}.ord-main-tab{padding:.625rem 1rem;border:none;background:none;font-family:var(--font);font-size:.875rem;font-weight:500;color:var(--text-muted);cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-2px;display:flex;align-items:center;gap:.375rem;transition:color var(--transition),border-color var(--transition)}.ord-main-tab:hover{color:var(--primary)}.ord-main-tab--active{color:var(--primary);border-bottom-color:var(--primary);font-weight:700}.inv-stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem}.inv-stat-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.125rem;display:flex;align-items:center;gap:.875rem;box-shadow:var(--shadow-sm);transition:box-shadow var(--transition),transform var(--transition)}.inv-stat-card:hover{box-shadow:var(--shadow-md);transform:translateY(-1px)}.inv-stat-icon{width:44px;height:44px;border-radius:var(--radius-md);display:flex;align-items:center;justify-content:center;flex-shrink:0}.inv-stat-icon svg{width:22px;height:22px}.inv-stat-value{font-size:1.375rem;font-weight:800;color:var(--text-primary);letter-spacing:-.03em;line-height:1}.inv-stat-label{font-size:.75rem;font-weight:500;color:var(--text-secondary);margin-top:3px}@media (max-width:1200px){.inv-stats-grid{grid-template-columns:repeat(4,1fr)}}@media (max-width:900px){.inv-stats-grid{grid-template-columns:repeat(2,1fr)}}@media (max-width:480px){.inv-stat-value{font-size:1.125rem}}.idm-box{background:var(--surface);border-radius:var(--radius-xl);width:100%;max-width:820px;max-height:92vh;display:flex;flex-direction:column;overflow:hidden;box-shadow:var(--shadow-lg);animation:modalSlideUp .2s var(--ease)}.idm-header{border-bottom:1px solid var(--border);flex-shrink:0}.idm-header-top{display:flex;align-items:flex-start;justify-content:space-between;padding:1.25rem 1.5rem .75rem;gap:.75rem;flex-wrap:wrap}.idm-ref-row{display:flex;align-items:center;gap:.625rem;flex-wrap:wrap;margin-bottom:4px}.idm-ref{font-size:1.125rem;font-weight:800;color:var(--text-primary);font-family:monospace}.idm-meta{font-size:.8125rem;color:var(--text-muted)}.idm-header-right{display:flex;align-items:center;gap:.5rem;flex-shrink:0}.idm-edit-btn{display:flex;align-items:center;gap:5px;height:34px;padding:0 .875rem;background:none;border:1.5px solid var(--border);border-radius:var(--radius-md);font-size:.8125rem;font-weight:600;color:var(--text-secondary);cursor:pointer;font-family:var(--font);transition:border-color var(--transition),color var(--transition)}.idm-edit-btn svg{width:14px;height:14px}.idm-edit-btn:hover{border-color:var(--primary);color:var(--primary)}.idm-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:.5rem;padding:0 1.5rem .625rem}.idm-kpi{background:var(--bg-subtle);border:1px solid var(--border);border-radius:var(--radius-md);padding:.625rem .875rem;text-align:center}.idm-kpi-label{font-size:.6875rem;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em;margin-bottom:3px}.idm-kpi-value{font-size:.9375rem;font-weight:700;color:var(--text-primary)}.idm-pay-bar-wrap{display:flex;align-items:center;gap:.75rem;padding:0 1.5rem .75rem}.idm-pay-bar-bg{flex:1;height:8px;background:var(--border);border-radius:var(--radius-full);overflow:hidden}.idm-pay-bar-fill{height:100%;border-radius:var(--radius-full);transition:width .6s var(--ease)}.idm-pay-pct{font-size:.875rem;font-weight:700;color:var(--text-secondary);width:70px;text-align:right;flex-shrink:0}.idm-tabs{display:flex;padding:0 1.5rem;border-top:1px solid var(--border);overflow-x:auto}.idm-tab{height:42px;padding:0 1rem;background:none;border:none;border-bottom:2.5px solid transparent;font-size:.875rem;font-weight:500;color:var(--text-muted);cursor:pointer;font-family:var(--font);white-space:nowrap;transition:color var(--transition);margin-bottom:-1px}.idm-tab:hover{color:var(--text-primary)}.idm-tab--active{color:var(--primary);border-bottom-color:var(--primary);font-weight:600}.idm-body{overflow-y:auto;flex:1;min-height:0}.idm-section{padding:1.5rem;display:flex;flex-direction:column;gap:1.25rem}.idm-info-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.75rem}.idm-info-item{background:var(--bg-subtle);border:1px solid var(--border);border-radius:var(--radius-md);padding:.75rem 1rem}.idm-info-label{font-size:.6875rem;color:var(--text-muted);font-weight:700;text-transform:uppercase;letter-spacing:.05em;margin-bottom:3px}.idm-info-value{font-size:.9375rem;font-weight:600;color:var(--text-primary)}.idm-doc-actions{background:var(--bg-subtle);border:1px solid var(--border);border-radius:var(--radius-md);padding:1rem}.idm-doc-title{font-size:.75rem;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.06em;margin-bottom:.75rem}.idm-doc-btn{padding:6px 12px;border:1.5px solid var(--border);border-radius:var(--radius-md);background:var(--surface);font-size:.8125rem;font-weight:600;color:var(--text-secondary);cursor:pointer;font-family:var(--font);transition:border-color var(--transition),color var(--transition)}.idm-doc-btn:hover{border-color:var(--primary);color:var(--primary)}.idm-prod-table-wrap{overflow-x:auto;border:1px solid var(--border);border-radius:var(--radius-md)}.idm-prod-table{width:100%;border-collapse:collapse;font-size:.875rem}.idm-prod-table thead{background:var(--bg-subtle);border-bottom:1px solid var(--border)}.idm-prod-table th{padding:.625rem .875rem;text-align:left;font-size:.6875rem;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.06em;white-space:nowrap}.idm-prod-table td{padding:.75rem .875rem;border-bottom:1px solid var(--border);vertical-align:middle}.idm-prod-row:last-child td{border-bottom:none}.idm-prod-row:hover td{background:var(--bg-subtle)}.idm-prod-name{font-weight:700;color:var(--text-primary)}.idm-prod-cat{color:var(--text-muted);font-size:.8125rem}.idm-prod-price,.idm-prod-total{white-space:nowrap;font-weight:600}.idm-prod-total{color:var(--success)}.idm-cur{font-size:.6875rem;color:var(--text-muted);background:var(--bg-subtle);padding:1px 5px;border-radius:var(--radius-xs);border:1px solid var(--border);margin-left:3px}.idm-financial{background:var(--bg-subtle);border:1px solid var(--border);border-radius:var(--radius-md);padding:1.125rem;display:flex;flex-direction:column;gap:.5rem}.idm-fin-row{display:flex;justify-content:space-between;font-size:.9375rem;color:var(--text-secondary)}.idm-fin-total{display:flex;justify-content:space-between;font-size:1.125rem;font-weight:800;color:var(--text-primary);padding-top:.75rem;border-top:2px solid var(--border);margin-top:.25rem}.idm-pay-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:.875rem}.idm-pay-card{background:var(--bg-subtle);border:1px solid var(--border);border-radius:var(--radius-md);padding:1rem;text-align:center}.idm-pay-label{font-size:.6875rem;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em;margin-bottom:.5rem}.idm-pay-value{font-size:1.125rem;font-weight:800;color:var(--text-primary);letter-spacing:-.02em}.idm-pay-mode-box{background:var(--success-bg);border:1px solid #A7F3D0;border-radius:var(--radius-md);padding:.875rem 1rem;display:flex;align-items:center;gap:.75rem}.idm-pay-mode-label{font-size:.8125rem;color:var(--text-secondary);flex:1}.idm-pay-mode-badge{font-size:.875rem;font-weight:700;color:#065f46;background:#ffffffb3;padding:3px 12px;border-radius:var(--radius-full)}.idm-pay-btn{display:flex;align-items:center;justify-content:center;gap:.5rem;height:44px;width:100%;background:var(--primary);color:#fff;border:none;border-radius:var(--radius-md);font-size:.9375rem;font-weight:600;cursor:pointer;font-family:var(--font);transition:background var(--transition)}.idm-pay-btn svg{width:18px;height:18px}.idm-pay-btn:hover{background:var(--primary-dark)}.idm-signature-row{display:grid;grid-template-columns:1fr 1fr;gap:.875rem}.idm-signature-box,.idm-qr-box{background:var(--bg-subtle);border:1px solid var(--border);border-radius:var(--radius-md);padding:1rem;text-align:center}.idm-signature-label{font-size:.75rem;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em;margin-bottom:.75rem}.idm-signature-area{height:80px;border:1.5px dashed var(--border);border-radius:var(--radius-sm);display:flex;align-items:center;justify-content:center;color:var(--text-muted);font-size:.8125rem}.idm-qr-area{height:80px;border:1.5px dashed var(--border);border-radius:var(--radius-sm);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.375rem;color:var(--text-muted);font-size:.75rem}.idm-qr-area svg{width:28px;height:28px}.idm-timeline{list-style:none;display:flex;flex-direction:column}.idm-tl-item{display:flex;gap:.875rem}.idm-tl-track{display:flex;flex-direction:column;align-items:center;flex-shrink:0}.idm-tl-dot{width:28px;height:28px;border-radius:50%;flex-shrink:0}.idm-tl-line{width:1.5px;flex:1;min-height:12px;background:var(--border);margin:4px 0}.idm-tl-content{flex:1;padding-bottom:1rem}.idm-tl-event{font-size:.875rem;font-weight:700;color:var(--text-primary)}.idm-tl-user{display:flex;align-items:center;gap:4px;font-size:.75rem;color:var(--text-muted)}.idm-tl-user svg{width:12px;height:12px}.idm-preview-actions{display:flex;gap:.625rem;flex-wrap:wrap}.idm-preview-btn{padding:8px 16px;border:none;border-radius:var(--radius-md);font-size:.875rem;font-weight:600;cursor:pointer;font-family:var(--font);transition:filter var(--transition)}.idm-preview-btn:hover{filter:brightness(.9)}.idm-preview-btn--primary{background:var(--error);color:#fff}.idm-preview-btn--secondary{background:var(--bg-subtle);color:var(--text-secondary);border:1.5px solid var(--border)}.idm-preview-btn--whatsapp{background:#25d366;color:#fff}.idm-pdf-preview{background:#fff;border:1px solid var(--border);border-radius:var(--radius-lg);padding:2rem;font-family:Georgia,serif;box-shadow:0 4px 16px #00000014}.idm-pdf-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:2rem;padding-bottom:1.25rem;border-bottom:2px solid #0F172A}.idm-pdf-logo-text{font-size:1.125rem;font-weight:800;color:#0f172a;letter-spacing:.05em}.idm-pdf-logo-sub{font-size:.75rem;color:#64748b;margin-top:2px}.idm-pdf-facture{font-size:1.5rem;font-weight:800;color:#0f172a;text-align:right}.idm-pdf-ref{font-size:.875rem;color:#64748b;text-align:right;font-family:monospace}.idm-pdf-info{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem;margin-bottom:1.5rem}.idm-pdf-label{font-size:.75rem;font-weight:700;color:#64748b;text-transform:uppercase;letter-spacing:.06em;margin-bottom:.25rem}.idm-pdf-value-lg{font-size:1rem;font-weight:700;color:#0f172a}.idm-pdf-value{font-size:.875rem;color:#475569}.idm-pdf-dates{text-align:right;font-size:.875rem;color:#475569;display:flex;flex-direction:column;gap:.25rem}.idm-pdf-table{width:100%;border-collapse:collapse;margin-bottom:1.5rem;font-size:.875rem}.idm-pdf-table thead{background:#f8fafc}.idm-pdf-table th{padding:.625rem 1rem;text-align:left;font-size:.75rem;font-weight:700;color:#475569;text-transform:uppercase;letter-spacing:.06em;border-bottom:1.5px solid #E2E8F0}.idm-pdf-table td{padding:.75rem 1rem;border-bottom:1px solid #F1F5F9;color:#0f172a}.idm-pdf-total-cell{text-align:right;font-weight:700;color:#0f172a}.idm-pdf-totals{margin-left:auto;width:280px;border-top:1.5px solid #0F172A;padding-top:.875rem}.idm-pdf-total-row{display:flex;justify-content:space-between;font-size:.875rem;color:#475569;margin-bottom:.375rem}.idm-pdf-grand-total{display:flex;justify-content:space-between;font-size:1.0625rem;font-weight:800;color:#0f172a;padding-top:.625rem;border-top:2px solid #0F172A;margin-top:.5rem}.idm-pdf-footer{margin-top:2rem;padding-top:1rem;border-top:1px solid #E2E8F0;font-size:.75rem;color:#94a3b8;text-align:center;display:flex;flex-direction:column;gap:.25rem}@media (max-width:600px){.idm-info-grid,.idm-pay-summary{grid-template-columns:1fr}.idm-kpis{grid-template-columns:repeat(2,1fr)}.idm-signature-row{grid-template-columns:1fr}.idm-box{max-height:95vh}}.idm-loading,.idm-empty{text-align:center;padding:2rem;color:var(--text-muted);font-style:italic}.idm-order-link{font-size:.75rem;font-weight:600;padding:2px 8px;background:#eef2ff;color:#4f46e5;border-radius:var(--radius-full)}.idm-notes-box{background:var(--bg-subtle);border-radius:var(--radius-md);padding:.875rem 1rem;margin-top:1rem}.idm-notes-title{font-size:.8125rem;font-weight:700;color:var(--text-muted);margin-bottom:.375rem}.idm-notes-text{font-size:.875rem;color:var(--text-secondary);line-height:1.6}.idm-doc-actions{margin-top:1.25rem}.idm-doc-title{font-size:.8125rem;font-weight:700;color:var(--text-muted);margin-bottom:.5rem}.idm-doc-btns{display:flex;gap:.5rem;flex-wrap:wrap}.idm-doc-btn{padding:.5rem 1rem;border:1.5px solid var(--border);border-radius:var(--radius-md);background:var(--surface);font-size:.8125rem;cursor:pointer;transition:border-color var(--transition)}.idm-doc-btn:hover{border-color:var(--primary)}.idm-doc-btn--primary{background:var(--primary);color:#fff;border-color:var(--primary)}.idm-financial{margin-top:1rem;border-top:1px solid var(--border);padding-top:.75rem}.idm-fin-row{display:flex;justify-content:space-between;padding:.375rem 0;font-size:.875rem;color:var(--text-secondary)}.idm-fin-row--muted{color:var(--text-muted);font-style:italic}.idm-fin-total{display:flex;justify-content:space-between;padding:.625rem 0;font-size:1rem;font-weight:700;color:var(--text-primary);border-top:2px solid var(--border);margin-top:.375rem}.idm-pay-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-bottom:1.25rem}.idm-pay-kpi{text-align:center;background:var(--bg-subtle);border-radius:var(--radius-md);padding:.875rem}.idm-pay-table{width:100%;border-collapse:collapse;font-size:.875rem}.idm-pay-table th{padding:.5rem .75rem;text-align:left;font-size:.75rem;font-weight:700;color:var(--text-muted);text-transform:uppercase;border-bottom:1px solid var(--border)}.idm-pay-table td{padding:.5rem .75rem;border-bottom:1px solid var(--border);color:var(--text-primary)}.idm-pay-btn{margin-top:1rem;width:100%;padding:.75rem;border:1.5px solid var(--primary);border-radius:var(--radius-md);background:transparent;color:var(--primary);font-size:.875rem;font-weight:600;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:.5rem;transition:all var(--transition)}.idm-pay-btn:hover{background:var(--primary);color:#fff}.idm-pay-btn svg{width:16px;height:16px}.pdf-preview-root{display:flex;flex-direction:column;gap:.75rem;padding:25px}.pdf-preview-actions{display:flex;gap:.5rem;padding:.5rem 0}.pdf-act-btn{padding:.5rem 1rem;border:1.5px solid var(--border);border-radius:var(--radius-md);background:var(--surface);font-size:.8125rem;font-weight:600;cursor:pointer;display:flex;align-items:center;gap:.375rem;transition:all .15s}.pdf-act-btn:hover{border-color:var(--primary)}.pdf-act-btn--primary{background:#10b981;color:#fff;border-color:#10b981}.pdf-act-btn--primary:hover{background:#059669}.pdf-sheet{background:#fff;border:1px solid #E5E7EB;border-radius:8px;padding:0;overflow:hidden;box-shadow:0 4px 24px #00000014;font-family:sans-serif}.pdf-header{display:flex;align-items:flex-start;justify-content:space-between;padding:1.25rem 1.5rem .875rem}.pdf-header-left{display:flex;flex-direction:column;gap:.125rem}.pdf-company-name{font-size:1rem;font-weight:800;margin:0}.pdf-company-sub{font-size:.6875rem;font-weight:700;color:#6b7280;margin:0}.pdf-title{font-size:2.25rem;font-weight:900;margin:0;letter-spacing:-.5px}.pdf-sep{height:1px;margin:0 1.5rem;opacity:.4}.pdf-info-row{display:flex;gap:2rem;padding:1rem 1.5rem 1.25rem}.pdf-client,.pdf-meta{flex:1}.pdf-lbl{font-size:.625rem;color:#9ca3af;letter-spacing:.08em;text-transform:uppercase;margin-bottom:.375rem}.pdf-client-name{font-size:.9375rem;font-weight:700;color:#111827;margin:.25rem 0}.pdf-client-detail{font-size:.75rem;color:#6b7280;margin:.125rem 0}.pdf-meta-line{font-size:.8rem;color:#374151;margin:.2rem 0}.pdf-table{width:100%;border-collapse:collapse}.pdf-table thead{background:#111827}.pdf-table th{padding:.625rem 1.5rem;text-align:left;font-size:.6875rem;font-weight:700;color:#fff;text-transform:uppercase;letter-spacing:.06em}.pdf-th-left{text-align:left}.pdf-table td{padding:.5rem 1.5rem;font-size:.8125rem;color:#111827}.pdf-tr-even{background:#fff}.pdf-tr-odd{background:#f9fafb}.pdf-td-center{text-align:center}.pdf-td-right{text-align:right}.pdf-totals{display:flex;flex-direction:column;align-items:flex-end;padding:.875rem 1.5rem;gap:.375rem}.pdf-tot-row{display:flex;gap:3rem;font-size:.8125rem;color:#6b7280}.pdf-tot-row span:last-child{min-width:110px;text-align:right;color:#111827}.pdf-tot-grand{display:flex;gap:3rem;font-size:1rem;font-weight:800;padding:.5rem .875rem;background:#ede9fe;border-radius:6px;margin-top:.25rem}.pdf-tot-grand span:last-child{min-width:110px;text-align:right}.pdf-note{font-size:.75rem;color:#6b7280;padding:.25rem 1.5rem .75rem}.pdf-sigs{display:grid;grid-template-columns:1fr 1fr;gap:2rem;padding:1.5rem 1.5rem .5rem}.pdf-sig-title{font-size:.75rem;font-weight:700;color:#111827;margin-bottom:.75rem}.pdf-sig-line{height:1px;background:#d1d5db}.pdf-footer-sep{height:1px;background:#e5e7eb;margin:0 1.5rem}.pdf-footer-row{display:flex;justify-content:space-between;padding:.75rem 1.5rem .5rem}.pdf-footer-company{font-size:.875rem;font-weight:700;color:#111827;margin-bottom:.25rem}.pdf-footer-title{font-size:.8125rem;font-weight:700;color:#111827;margin-bottom:.25rem}.pdf-footer-detail{font-size:.6875rem;color:#6b7280}.pdf-footer-bottom{border-top:1px solid;margin:0 1.5rem;padding:.375rem 0}.pdf-footer-bottom span{font-size:.6875rem;color:#9ca3af}.idm-timeline{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.875rem}.idm-tl-item{display:flex;align-items:flex-start;gap:.75rem}.idm-tl-dot{width:10px;height:10px;border-radius:50%;background:#4f46e5;flex-shrink:0;margin-top:4px}.idm-tl-content{flex:1}.idm-tl-row{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-bottom:2px}.idm-tl-action{font-size:.875rem;font-weight:600;color:var(--text-primary)}.idm-tl-date{font-size:.75rem;color:var(--text-muted);white-space:nowrap}.idm-tl-user{font-size:.75rem;color:var(--text-muted);display:block}.idm-tl-ref{font-size:.75rem;color:#4f46e5;font-weight:600;display:block;margin-top:2px}.idm-pay-auto-badge{background:#f0fdf4;border:1px solid #BBF7D0;border-radius:var(--radius-md);padding:.625rem .875rem;font-size:.8125rem;font-weight:600;color:#065f46;margin-bottom:.875rem}.inv-an-section{display:flex;flex-direction:column;gap:1.25rem}.inv-an-header{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:1rem}.inv-an-title{font-size:.9375rem;font-weight:700;color:var(--text-primary)}.inv-an-filters{display:flex;gap:3px;flex-wrap:wrap}.inv-an-btn{padding:4px 10px;border:1.5px solid var(--border);border-radius:var(--radius-full);background:var(--surface);font-size:.8125rem;font-weight:500;color:var(--text-secondary);cursor:pointer;font-family:var(--font);transition:border-color var(--transition),background var(--transition),color var(--transition);white-space:nowrap}.inv-an-btn:hover{border-color:var(--primary);color:var(--primary)}.inv-an-btn--active{background:var(--primary);border-color:var(--primary);color:#fff;font-weight:600}.inv-an-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1.25rem}.inv-an-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.25rem;box-shadow:var(--shadow-sm)}.inv-an-card--wide{grid-column:1/-1}.inv-an-card-title{font-size:.875rem;font-weight:700;color:var(--text-primary);margin-bottom:.875rem}@media (max-width:768px){.inv-an-grid{grid-template-columns:1fr}}.inv-page{display:flex;flex-direction:column;gap:1.5rem;flex:1}.inv-page-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1rem}.inv-page-btns{display:flex;gap:.625rem;flex-wrap:wrap}.inv-add-btn{display:inline-flex;align-items:center;gap:.375rem;height:38px;padding:0 1rem;border:none;border-radius:var(--radius-md);font-size:.875rem;font-weight:600;cursor:pointer;font-family:var(--font);transition:filter var(--transition),box-shadow var(--transition);white-space:nowrap;background:var(--primary);color:#fff}.inv-add-btn svg{width:15px;height:15px}.inv-add-btn:hover{filter:brightness(.9);box-shadow:0 3px 10px #4f46e54d}.inv-add-btn--secondary{background:var(--bg-subtle);color:var(--text-secondary);border:1.5px solid var(--border)}.inv-add-btn--secondary:hover{border-color:var(--primary);color:var(--primary);box-shadow:none}.inv-accounting-banner{display:flex;align-items:center;gap:1rem;padding:1rem 1.25rem;background:linear-gradient(135deg,#ecfdf5,#eff6ff);border:1px solid #A7F3D0;border-radius:var(--radius-lg);flex-wrap:wrap}.inv-accounting-banner svg{width:24px;height:24px;stroke:#059669;flex-shrink:0}.inv-accounting-banner-title{font-size:.9375rem;font-weight:700;color:#065f46;margin-bottom:2px}.inv-accounting-banner-desc{font-size:.8125rem;color:#047857}.inv-accounting-badge{font-size:.75rem;font-weight:700;padding:4px 12px;background:var(--success);color:#fff;border-radius:var(--radius-full);white-space:nowrap;margin-left:auto;flex-shrink:0}.inv-tabs-bar{display:flex;gap:0;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);overflow-x:auto}.inv-tab{display:flex;align-items:center;gap:.5rem;height:48px;padding:0 1.125rem;background:none;border:none;border-bottom:2.5px solid transparent;font-size:.875rem;font-weight:500;color:var(--text-muted);cursor:pointer;font-family:var(--font);white-space:nowrap;transition:color var(--transition);margin-bottom:-1px}.inv-tab:hover{color:var(--text-primary)}.inv-tab--active{color:var(--primary);border-bottom-color:var(--primary);font-weight:600}.inv-tab-count{font-size:.6875rem;font-weight:700;padding:1px 7px;background:var(--bg-subtle);border:1px solid var(--border);border-radius:var(--radius-full);color:var(--text-muted)}.inv-tab--active .inv-tab-count{background:var(--primary-light);border-color:transparent;color:var(--primary)}.inv-filter-bar{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.125rem 1.25rem;display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;box-shadow:var(--shadow-sm)}.inv-filter-search-wrap{position:relative;flex:1;min-width:180px;max-width:300px}.inv-filter-search-icon{position:absolute;left:.75rem;top:50%;transform:translateY(-50%);color:var(--text-muted);display:flex;pointer-events:none}.inv-filter-search-icon svg{width:15px;height:15px}.inv-filter-search{width:100%;height:36px;padding:0 2rem 0 2.25rem;border:1.5px solid var(--border);border-radius:var(--radius-md);font-size:.8125rem;color:var(--text-primary);background:var(--surface);font-family:var(--font);transition:border-color var(--transition)}.inv-filter-search:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-ring)}.inv-filter-search::-webkit-search-cancel-button{display:none}.inv-filter-clear{position:absolute;right:.5rem;top:50%;transform:translateY(-50%);background:none;border:none;cursor:pointer;color:var(--text-muted);display:flex}.inv-filter-clear svg{width:14px;height:14px}.inv-filter-select{height:36px;padding:0 1.75rem 0 .75rem;border:1.5px solid var(--border);border-radius:var(--radius-md);font-size:.8125rem;color:var(--text-secondary);background:var(--surface);font-family:var(--font);cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .5rem center;background-size:12px;transition:border-color var(--transition)}.inv-filter-select:focus{outline:none;border-color:var(--primary)}.inv-filter-reset{height:36px;padding:0 .875rem;background:none;border:1.5px solid var(--border);border-radius:var(--radius-md);font-size:.8125rem;font-weight:600;color:var(--text-secondary);cursor:pointer;font-family:var(--font);transition:border-color var(--transition),color var(--transition)}.inv-filter-reset:hover{border-color:var(--error);color:var(--error)}.inv-filter-count{font-size:.8125rem;color:var(--text-muted);font-weight:500;margin-left:auto}.inv-cell-name{font-size:.875rem;font-weight:700;color:var(--text-primary)}.inv-cell-sub{font-size:.75rem;color:var(--text-muted)}.inv-dept-badge{display:inline-block;padding:2px 8px;border-radius:var(--radius-full);font-size:.75rem;font-weight:600;background:var(--primary-light);color:var(--primary);white-space:nowrap}.inv-amount{font-size:.875rem;font-weight:600;color:var(--text-secondary);white-space:nowrap}.inv-amount-bold{font-size:.9375rem;font-weight:700;color:var(--text-primary);white-space:nowrap}.inv-amount-muted{font-size:.875rem;color:var(--text-muted);white-space:nowrap}.inv-cur-sm{font-size:.6875rem;font-weight:700;color:var(--text-muted);background:var(--bg-subtle);padding:1px 5px;border-radius:var(--radius-xs);border:1px solid var(--border);margin-left:3px}.inv-ref-sm{font-family:monospace;font-size:.8125rem;color:var(--primary);font-weight:600}.inv-pay-mode{font-size:.8125rem;font-weight:600;color:var(--text-secondary);background:var(--success-bg);padding:2px 8px;border-radius:var(--radius-full)}.inv-status-badge{display:inline-flex;align-items:center;gap:4px;padding:2px 9px;border-radius:var(--radius-full);font-size:.75rem;font-weight:600;white-space:nowrap}.inv-status-dot{width:5px;height:5px;border-radius:50%;flex-shrink:0;background:currentColor}@media (max-width:640px){.inv-page-header{flex-direction:column;align-items:flex-start}.inv-page-btns{width:100%}.inv-add-btn{flex:1;justify-content:center}.inv-filter-search-wrap{max-width:100%}}.pf-wrap{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}.pf-presets{display:flex;align-items:center;gap:.375rem;flex-wrap:wrap}.pf-preset-btn{padding:.4375rem .875rem;border:1.5px solid var(--border);border-radius:var(--radius-md);font-size:.8125rem;font-weight:500;background:var(--surface);color:var(--text-secondary);cursor:pointer;transition:all .15s;white-space:nowrap}.pf-preset-btn:hover{border-color:var(--primary);color:var(--primary)}.pf-preset-btn--active{background:var(--primary);color:#fff;border-color:var(--primary);font-weight:600}.pf-custom{display:flex;align-items:center;gap:.5rem}.pf-date-field{position:relative}.pf-date-trigger{display:flex;align-items:center;gap:.5rem;padding:.4375rem .75rem;border:1.5px solid var(--border);border-radius:var(--radius-md);font-size:.8125rem;font-weight:500;background:var(--surface);color:var(--text-secondary);cursor:pointer;transition:border-color .15s}.pf-date-trigger:hover{border-color:var(--primary)}.pf-date-trigger svg{width:14px;height:14px;flex-shrink:0}.pf-date-sep{color:var(--text-muted);font-size:.8125rem}.pf-calendar{position:absolute;top:calc(100% + 6px);left:0;z-index:100;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);padding:.875rem;width:260px}.pf-cal-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:.625rem}.pf-cal-title{font-size:.8125rem;font-weight:700;color:var(--text-primary);text-transform:capitalize}.pf-cal-nav{width:26px;height:26px;border:none;background:var(--bg-subtle);border-radius:var(--radius-sm);font-size:1rem;color:var(--text-secondary);cursor:pointer;display:flex;align-items:center;justify-content:center}.pf-cal-nav:hover{background:var(--primary-light);color:var(--primary)}.pf-cal-weekdays{display:grid;grid-template-columns:repeat(7,1fr);margin-bottom:.25rem}.pf-cal-weekdays span{text-align:center;font-size:.6875rem;font-weight:700;color:var(--text-muted)}.pf-cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:2px}.pf-cal-cell{aspect-ratio:1;display:flex;align-items:center;justify-content:center;border:none;background:transparent;border-radius:var(--radius-sm);font-size:.75rem;color:var(--text-primary);cursor:pointer;transition:background .12s}.pf-cal-cell:hover{background:var(--primary-light)}.pf-cal-cell--empty{cursor:default}.pf-cal-cell--empty:hover{background:transparent}.pf-cal-cell--today{font-weight:700;color:var(--primary)}.pf-cal-cell--selected{background:var(--primary);color:#fff;font-weight:700}.pf-cal-cell--selected:hover{background:var(--primary)}@media (max-width: 640px){.pf-wrap{flex-direction:column;align-items:flex-start}.pf-presets{width:100%}}.acc-page{display:flex;flex-direction:column;gap:1.25rem;padding:1.5rem 2rem}.acc-page-top{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;flex-wrap:wrap}.acc-page-title{font-size:1.5rem;font-weight:800;color:var(--text-primary);margin:0}.acc-page-sub{font-size:.8125rem;color:var(--text-muted);margin:.25rem 0 0}.acc-page-actions{display:flex;align-items:center;gap:.5rem;flex-shrink:0}.acc-text-btn{padding:.5rem 1rem;border:1.5px solid var(--border);border-radius:var(--radius-md);font-size:.8125rem;font-weight:600;background:var(--surface);color:var(--text-primary);cursor:pointer;transition:all .15s}.acc-text-btn:hover{border-color:var(--primary);color:var(--primary);background:var(--primary-light)}.acc-scope-bar{display:flex;align-items:center;gap:.75rem;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:.875rem 1.25rem}.acc-scope-label{font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--text-muted)}.acc-scope-select{padding:.5rem .875rem;border:1.5px solid var(--border);border-radius:var(--radius-md);font-size:.875rem;font-weight:600;color:var(--text-primary);background:var(--surface);cursor:pointer;min-width:220px}.acc-kpi-grid6{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}.acc-kpi6{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.125rem;display:flex;align-items:center;gap:1rem;transition:box-shadow .15s}.acc-kpi6:hover{box-shadow:0 4px 16px #0000000f}.acc-kpi6-icon{width:48px;height:48px;border-radius:var(--radius-md);display:flex;align-items:center;justify-content:center;flex-shrink:0}.acc-kpi6-val{font-size:1.25rem;font-weight:800;margin:0;line-height:1.2}.acc-kpi6-cur{font-size:.75rem;font-weight:500;color:var(--text-muted)}.acc-kpi6-label{font-size:.8125rem;color:var(--text-muted);margin:.125rem 0 0}.acc-month-card{background:var(--surface);border:1px solid var(--border);border-left:4px solid #10B981;border-radius:var(--radius-lg);padding:1.25rem 1.5rem}.acc-month-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}.acc-month-title{font-size:.9375rem;font-weight:700;color:var(--text-primary);margin:0}.acc-month-period{font-size:.75rem;color:var(--text-muted);text-transform:capitalize}.acc-month-amount{font-size:1.75rem;font-weight:800;margin:.25rem 0 .5rem}.acc-month-detail{font-size:.8125rem;color:var(--text-muted);margin:0}@media (max-width: 900px){.acc-page{padding:1rem}.acc-kpi-grid6{grid-template-columns:repeat(2,1fr)}.acc-scope-bar{flex-direction:column;align-items:flex-start}.acc-scope-select{width:100%}}@media (max-width: 560px){.acc-kpi-grid6{grid-template-columns:1fr}}@media print{.acc-page-actions,.acc-scope-bar{display:none}}.acc-scope-bar{display:flex;flex-direction:column;gap:.875rem;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:.875rem 1.25rem}.acc-scope-row{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}.rpt-page{display:flex;flex-direction:column;gap:1.25rem;padding:1.5rem 2rem}.rpt-page-top{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;flex-wrap:wrap}.rpt-page-title{font-size:1.5rem;font-weight:800;color:var(--text-primary);margin:0}.rpt-page-sub{font-size:.8125rem;color:var(--text-muted);margin:.25rem 0 0;text-transform:capitalize}.rpt-page-actions{display:flex;align-items:center;gap:.5rem;flex-shrink:0}.rpt-text-btn{padding:.5rem 1rem;border:1.5px solid var(--border);border-radius:var(--radius-md);font-size:.8125rem;font-weight:600;background:var(--surface);color:var(--text-primary);cursor:pointer;transition:all .15s}.rpt-text-btn:hover{border-color:var(--primary);color:var(--primary);background:var(--primary-light)}.rpt-filters-bar{display:flex;flex-direction:column;gap:.875rem;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:.875rem 1.25rem}.rpt-filter-row{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}.rpt-filter-label{font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--text-muted);min-width:90px;flex-shrink:0}.rpt-filter-select{padding:.5rem .875rem;border:1.5px solid var(--border);border-radius:var(--radius-md);font-size:.875rem;font-weight:600;color:var(--text-primary);background:var(--surface);cursor:pointer;min-width:220px}.rpt-view-tabs{display:flex;align-items:center;gap:.375rem;flex-wrap:wrap}.rpt-view-tab{padding:.4375rem .875rem;border:1.5px solid var(--border);border-radius:var(--radius-md);font-size:.8125rem;font-weight:500;background:var(--surface);color:var(--text-secondary);cursor:pointer;transition:all .15s}.rpt-view-tab:hover{border-color:var(--primary);color:var(--primary)}.rpt-view-tab--active{background:var(--primary);color:#fff;border-color:var(--primary);font-weight:600}.rpt-kpi-grid9{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}.rpt-kpi-grid4{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem}.rpt-kpi-grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}.rpt-kpi-grid2{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem}.rpt-kpi-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.125rem;display:flex;align-items:center;gap:1rem;transition:box-shadow .15s}.rpt-kpi-card:hover{box-shadow:0 4px 16px #0000000f}.rpt-kpi-icon{width:44px;height:44px;border-radius:var(--radius-md);flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:1.125rem}.rpt-kpi-value{font-size:1.125rem;font-weight:800;margin:0;line-height:1.2}.rpt-kpi-suffix{font-size:.6875rem;font-weight:500;color:var(--text-muted)}.rpt-kpi-label{font-size:.75rem;color:var(--text-muted);margin:.125rem 0 0}.rpt-charts-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.rpt-chart-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.125rem 1.25rem}.rpt-chart-title{font-size:.875rem;font-weight:700;color:var(--text-primary);margin:0 0 .75rem}.rpt-chart-body{height:260px;position:relative}.rpt-empty{text-align:center;color:var(--text-muted);font-size:.875rem;padding:2.5rem 0}.rpt-summary-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem}.rpt-summary-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1rem 1.125rem}.rpt-summary-title{font-size:.8125rem;font-weight:700;color:var(--text-primary);margin:0 0 .625rem}.rpt-summary-row{display:flex;justify-content:space-between;align-items:center;padding:.375rem 0;font-size:.8125rem;color:var(--text-muted);border-bottom:1px solid var(--border)}.rpt-summary-row:last-child{border-bottom:none}.rpt-summary-row strong{color:var(--text-primary);font-weight:700}.rpt-table-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.125rem 1.25rem}.rpt-table-title{font-size:.875rem;font-weight:700;color:var(--text-primary);margin:0 0 .75rem}.rpt-table{width:100%;border-collapse:collapse}.rpt-table th{text-align:left;padding:.5rem .625rem;font-size:.6875rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted);border-bottom:1.5px solid var(--border)}.rpt-table td{padding:.625rem;font-size:.8125rem;color:var(--text-primary);border-bottom:1px solid var(--border)}.rpt-table tr:last-child td{border-bottom:none}.rpt-empty-cell{text-align:center;color:var(--text-muted);padding:1.5rem 0}.rpt-badge{display:inline-block;padding:.1875rem .625rem;border-radius:var(--radius-full);font-size:.6875rem;font-weight:600;background:var(--primary-light);color:var(--primary)}@media (max-width: 1100px){.rpt-kpi-grid9,.rpt-summary-grid{grid-template-columns:repeat(2,1fr)}}@media (max-width: 900px){.rpt-page{padding:1rem}.rpt-charts-row{grid-template-columns:1fr}.rpt-kpi-grid4,.rpt-kpi-grid3,.rpt-kpi-grid2{grid-template-columns:repeat(2,1fr)}.rpt-filter-row{flex-direction:column;align-items:flex-start}.rpt-filter-select{width:100%}}@media (max-width: 560px){.rpt-kpi-grid9,.rpt-kpi-grid4,.rpt-kpi-grid3,.rpt-kpi-grid2,.rpt-summary-grid{grid-template-columns:1fr}}@media print{.rpt-page-actions,.rpt-filters-bar{display:none}}.ss-section{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden;box-shadow:var(--shadow-sm)}.ss-section+.ss-section{margin-top:1.25rem}.ss-section-header{display:flex;align-items:flex-start;justify-content:space-between;padding:1.125rem 1.5rem;border-bottom:1px solid var(--border);background:var(--bg-subtle);gap:1rem;flex-wrap:wrap}.ss-section-title{font-size:.9375rem;font-weight:800;color:var(--text-primary);margin-bottom:2px}.ss-section-desc{font-size:.8125rem;color:var(--text-muted)}.ss-section-actions{display:flex;gap:.5rem;flex-shrink:0}.ss-section-body{padding:1.25rem 1.5rem;display:flex;flex-direction:column;gap:1rem}.ss-row{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;padding:.75rem 0;border-bottom:1px solid var(--border)}.ss-row:last-child{border-bottom:none}.ss-row-label{flex:1}.ss-row-name{font-size:.9375rem;font-weight:600;color:var(--text-primary);margin-bottom:2px}.ss-row-desc{font-size:.8125rem;color:var(--text-muted)}.ss-row-control{flex-shrink:0;display:flex;align-items:center;gap:.75rem}.ss-toggle-wrap{display:flex;align-items:center;gap:.625rem;cursor:pointer;-webkit-user-select:none;user-select:none}.ss-toggle-input{position:absolute;opacity:0;width:0;height:0}.ss-toggle-track{width:44px;height:24px;background:var(--border-strong);border-radius:var(--radius-full);position:relative;transition:background var(--transition);flex-shrink:0}.ss-toggle-input:checked+.ss-toggle-track{background:var(--primary)}.ss-toggle-thumb{width:18px;height:18px;background:#fff;border-radius:50%;position:absolute;top:3px;left:3px;transition:transform var(--transition);box-shadow:0 1px 3px #0003}.ss-toggle-input:checked~.ss-toggle-track .ss-toggle-thumb,.ss-toggle-input:checked+.ss-toggle-track .ss-toggle-thumb{transform:translate(20px)}.ss-toggle-label{font-size:.875rem;font-weight:500;color:var(--text-secondary)}.ss-field{display:flex;flex-direction:column;gap:4px}.ss-field-label{font-size:.8125rem;font-weight:600;color:var(--text-primary)}.ss-field-req{color:var(--error);margin-left:2px}.ss-field-input{border:1.5px solid var(--border);border-radius:var(--radius-md);font-size:.875rem;color:var(--text-primary);background:var(--surface);font-family:var(--font);width:100%;transition:border-color var(--transition),box-shadow var(--transition)}.ss-field-input:not(.ss-field-textarea){height:40px;padding:0 .75rem}.ss-field-textarea{padding:.625rem .75rem;resize:vertical}.ss-field-input:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-ring)}.ss-field-input:disabled,.ss-field-input[readonly]{background:var(--bg-subtle);color:var(--text-muted);cursor:not-allowed}.ss-field-hint{font-size:.75rem;color:var(--text-muted)}select.ss-field-input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .5rem center;background-size:13px;padding-right:2rem;cursor:pointer}.ss-btn{display:inline-flex;align-items:center;justify-content:center;gap:.375rem;height:36px;padding:0 1rem;border:none;border-radius:var(--radius-md);font-size:.875rem;font-weight:600;cursor:pointer;font-family:var(--font);transition:background var(--transition),filter var(--transition)}.ss-btn svg{width:14px;height:14px}.ss-btn--primary{background:var(--primary);color:#fff}.ss-btn--primary:hover{background:var(--primary-dark)}.ss-btn--ghost{background:var(--bg-subtle);color:var(--text-secondary);border:1.5px solid var(--border)}.ss-btn--ghost:hover{border-color:var(--primary);color:var(--primary)}.ss-btn--danger{background:var(--error);color:#fff}.ss-btn--danger:hover{filter:brightness(.9)}.ss-save-bar{display:flex;align-items:center;justify-content:space-between;padding:.875rem 1.5rem;background:var(--warning-bg);border:1px solid #FDE68A;border-radius:var(--radius-lg);flex-wrap:wrap;gap:.75rem}.ss-save-bar-msg{font-size:.9375rem;font-weight:600;color:#92400e}.ss-save-bar-actions{display:flex;gap:.625rem}.set-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:.875rem}.set-logo-wrap{display:flex;align-items:center;gap:1.5rem;flex-wrap:wrap}.set-logo-preview{width:120px;height:60px;background:var(--bg-subtle);border:1.5px dashed var(--border);border-radius:var(--radius-md);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.25rem;color:var(--text-muted);font-size:.6875rem;font-weight:600;text-align:center}.set-logo-preview svg{width:24px;height:24px}.set-logo-actions{display:flex;flex-direction:column;gap:.375rem}.set-currencies-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}.set-currency-card{background:var(--bg-subtle);border:1.5px solid var(--border);border-radius:var(--radius-lg);padding:1rem;display:flex;flex-direction:column;gap:.75rem}.set-currency-card--main{border-color:var(--primary);background:var(--primary-light)}.set-currency-header{display:flex;align-items:center;gap:.75rem}.set-currency-symbol{width:40px;height:40px;background:var(--surface);border:1.5px solid var(--border);border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:1.125rem;font-weight:800;color:var(--primary);flex-shrink:0}.set-currency-code{font-size:.9375rem;font-weight:800;color:var(--text-primary);display:flex;align-items:center;gap:.375rem}.set-currency-name{font-size:.75rem;color:var(--text-muted)}.set-currency-main-badge{font-size:.6875rem;font-weight:700;padding:1px 7px;background:var(--primary);color:#fff;border-radius:var(--radius-full)}.set-currency-rate{display:flex;align-items:center;gap:.5rem;font-size:.8125rem;color:var(--text-muted)}.set-currency-rate-label{flex:1}.set-currency-rate-input{width:100px;height:32px;font-size:.8125rem!important;padding:0 .5rem!important}.set-units-add{margin-bottom:.75rem}.set-units-list{display:flex;flex-direction:column;gap:.5rem}.set-unit-item{display:flex;align-items:center;gap:.75rem;padding:.625rem .875rem;background:var(--bg-subtle);border:1px solid var(--border);border-radius:var(--radius-md)}.set-unit-abbr{font-family:monospace;font-size:.8125rem;font-weight:800;color:var(--primary);background:var(--primary-light);padding:2px 8px;border-radius:var(--radius-xs);flex-shrink:0}.set-unit-name{flex:1;font-size:.875rem;font-weight:600;color:var(--text-primary)}.set-unit-del{width:28px!important;height:28px!important;padding:0!important;background:var(--error-bg)!important;color:var(--error)!important;border:none!important;border-radius:var(--radius-sm)!important;font-size:.75rem!important}.set-taxes-table-wrap{overflow-x:auto;border-radius:var(--radius-md);border:1px solid var(--border)}.set-taxes-table{width:100%;border-collapse:collapse;font-size:.875rem}.set-taxes-table thead{background:var(--bg-subtle);border-bottom:1px solid var(--border)}.set-taxes-table th{padding:.625rem 1rem;text-align:left;font-size:.6875rem;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.06em;white-space:nowrap}.set-taxes-table td{padding:.625rem 1rem;border-bottom:1px solid var(--border);vertical-align:middle}.set-taxes-table tr:last-child td{border-bottom:none}.set-taxes-name{font-weight:600;color:var(--text-primary)}.set-taxes-rate{width:70px!important;height:32px!important;padding:0 .5rem!important;font-size:.8125rem!important}.set-taxes-dept{color:var(--text-muted);font-size:.8125rem}.set-tax-type-badge{font-size:.75rem;font-weight:600;padding:2px 8px;background:var(--info-bg);color:var(--info);border-radius:var(--radius-full)}.set-tax-default{color:var(--success);font-weight:700}.set-num-table-wrap{overflow-x:auto;border-radius:var(--radius-md);border:1px solid var(--border)}.set-num-table{width:100%;border-collapse:collapse;font-size:.875rem}.set-num-table thead{background:var(--bg-subtle);border-bottom:1px solid var(--border)}.set-num-table th{padding:.625rem 1rem;text-align:left;font-size:.6875rem;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.06em;white-space:nowrap}.set-num-table td{padding:.625rem 1rem;border-bottom:1px solid var(--border);vertical-align:middle}.set-num-table tr:last-child td{border-bottom:none}.set-num-doc{font-weight:700;color:var(--text-primary)}.set-num-field{width:90px!important;height:32px!important;padding:0 .5rem!important;font-size:.8125rem!important}.set-num-example{font-family:monospace;font-size:.8125rem;font-weight:700;color:var(--primary);background:var(--primary-light);padding:2px 8px;border-radius:var(--radius-xs)}.set-dept-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}.set-dept-card{background:var(--surface);border:1px solid var(--border);border-left:4px solid var(--primary);border-radius:var(--radius-lg);padding:1rem;display:flex;flex-direction:column;gap:.625rem;box-shadow:var(--shadow-sm)}.set-dept-header{display:flex;align-items:center;gap:.75rem}.set-dept-dot{width:12px;height:12px;border-radius:50%;flex-shrink:0}.set-dept-name{font-size:.9375rem;font-weight:700;color:var(--text-primary)}.set-dept-head{font-size:.75rem;color:var(--text-muted)}.set-dept-desc{font-size:.8125rem;color:var(--text-secondary)}.set-dept-modules{display:flex;flex-wrap:wrap;gap:.375rem}.set-dept-mod-badge{font-size:.6875rem;font-weight:600;padding:2px 7px;background:var(--bg-subtle);border:1px solid var(--border);border-radius:var(--radius-full);color:var(--text-secondary)}.set-backup-btns{display:flex;gap:.625rem;flex-wrap:wrap}.set-backup-ok{font-size:.875rem;font-weight:700;color:var(--success)}.set-backup-history{display:flex;flex-direction:column;gap:.5rem}.set-backup-item{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1rem;background:var(--bg-subtle);border:1px solid var(--border);border-radius:var(--radius-md);font-size:.875rem;color:var(--text-secondary)}.set-theme-btns{display:flex;gap:.375rem}.set-accent-colors{display:flex;gap:.375rem;flex-wrap:wrap}.set-accent-btn{width:28px;height:28px;border-radius:50%;border:2.5px solid transparent;cursor:pointer;transition:transform var(--transition),border-color var(--transition)}.set-accent-btn:hover{transform:scale(1.15)}.set-accent-btn--active{border-color:var(--text-primary)!important;transform:scale(1.15)}@media (max-width:900px){.set-currencies-grid,.set-dept-grid{grid-template-columns:1fr 1fr}}@media (max-width:640px){.set-grid-2,.set-currencies-grid,.set-dept-grid{grid-template-columns:1fr}}.set-page{display:flex;flex-direction:column;gap:1.5rem;flex:1}.set-page-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1rem}.set-page-title{font-size:1.375rem;font-weight:800;color:var(--text-primary);letter-spacing:-.025em;margin-bottom:3px}.set-page-sub{font-size:.875rem;color:var(--text-muted)}.set-layout{display:grid;grid-template-columns:240px 1fr;gap:1.5rem;align-items:start}.set-nav{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:.875rem;box-shadow:var(--shadow-sm);position:sticky;top:1.5rem;display:flex;flex-direction:column;gap:.25rem}.set-nav-group{display:flex;flex-direction:column;gap:1px}.set-nav-group+.set-nav-group{margin-top:.75rem;padding-top:.75rem;border-top:1px solid var(--border)}.set-nav-group-label{font-size:.6875rem;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.08em;padding:0 .5rem;margin-bottom:2px}.set-nav-item{display:flex;align-items:center;gap:.625rem;height:36px;padding:0 .5rem;background:none;border:none;border-radius:var(--radius-md);font-size:.875rem;font-weight:500;color:var(--text-secondary);cursor:pointer;font-family:var(--font);text-align:left;width:100%;transition:background var(--transition),color var(--transition)}.set-nav-item:hover{background:var(--bg-subtle);color:var(--text-primary)}.set-nav-item--active{background:var(--primary-light);color:var(--primary);font-weight:700}.set-nav-icon{font-size:1rem;flex-shrink:0;width:20px;text-align:center}.set-nav-chevron{width:14px;height:14px;margin-left:auto;flex-shrink:0}.set-content{display:flex;flex-direction:column;gap:0}.set-content-header{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg) var(--radius-lg) 0 0;padding:1rem 1.5rem;border-bottom:none}.set-content-title{font-size:1rem;font-weight:700;color:var(--text-primary)}.set-content-body{display:flex;flex-direction:column;gap:0}.set-content-body .ss-section:first-child{border-radius:0}.set-content-body .ss-section:last-child{border-radius:0 0 var(--radius-lg) var(--radius-lg)}@media (max-width:900px){.set-layout{grid-template-columns:1fr}.set-nav{position:static}.set-nav{display:grid;grid-template-columns:repeat(2,1fr);gap:.5rem;padding:1rem}}@media (max-width:640px){.set-nav{grid-template-columns:1fr}}.np-page{display:flex;flex-direction:column;gap:1.5rem;flex:1}.np-page-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1rem}.np-page-title{font-size:1.375rem;font-weight:800;color:var(--text-primary);letter-spacing:-.025em;margin-bottom:3px}.np-page-sub{font-size:.875rem;color:var(--text-muted)}.np-unread-header-badge{font-size:.8125rem;font-weight:700;padding:4px 14px;background:var(--error-bg);color:var(--error);border:1px solid #FECACA;border-radius:var(--radius-full)}.np-nav-container{display:flex;flex-direction:column;gap:.75rem;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.125rem 1.25rem;box-shadow:var(--shadow-sm)}.np-nav-group{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}.np-nav-group-label{font-size:.6875rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;width:100px;flex-shrink:0}.np-nav-tabs{display:flex;gap:.375rem;flex-wrap:wrap}.np-nav-tab{display:flex;align-items:center;gap:.375rem;height:34px;padding:0 .875rem;background:var(--bg-subtle);border:1.5px solid var(--border);border-radius:var(--radius-md);font-size:.8125rem;font-weight:500;color:var(--text-secondary);cursor:pointer;font-family:var(--font);transition:border-color var(--transition),background var(--transition),color var(--transition);white-space:nowrap}.np-nav-tab:hover{border-color:var(--primary);color:var(--primary)}.np-nav-tab--active{font-weight:700}.np-tab-count{font-size:.6875rem;font-weight:700;padding:1px 6px;background:var(--error);color:#fff;border-radius:var(--radius-full);min-width:18px;text-align:center}.np-content{flex:1;display:flex;flex-direction:column;gap:1.25rem}.sp-page{display:flex;flex-direction:column;gap:1.5rem;flex:1}.sp-page-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1rem}.sp-page-title{font-size:1.375rem;font-weight:800;color:var(--text-primary);letter-spacing:-.025em;margin-bottom:3px}.sp-page-sub{font-size:.875rem;color:var(--text-muted)}.sp-header-badges{display:flex;gap:.625rem}.sp-security-level{font-size:.875rem;font-weight:700;padding:6px 14px;background:var(--success-bg);border:1px solid #A7F3D0;border-radius:var(--radius-full);color:#065f46}.sp-nav-container{display:flex;flex-direction:column;gap:.75rem;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.125rem 1.25rem;box-shadow:var(--shadow-sm)}.sp-nav-group{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}.sp-nav-group-label{font-size:.6875rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;width:90px;flex-shrink:0}.sp-nav-tabs{display:flex;gap:.375rem;flex-wrap:wrap}.sp-nav-tab{display:flex;align-items:center;gap:.375rem;height:34px;padding:0 .875rem;background:var(--bg-subtle);border:1.5px solid var(--border);border-radius:var(--radius-md);font-size:.8125rem;font-weight:500;color:var(--text-secondary);cursor:pointer;font-family:var(--font);transition:border-color var(--transition),background var(--transition),color var(--transition);white-space:nowrap}.sp-nav-tab:hover{border-color:var(--primary);color:var(--primary)}.sp-nav-tab--active{font-weight:700}.sp-breadcrumb{display:flex;align-items:center;gap:.5rem;font-size:.875rem;color:var(--text-muted)}.sp-breadcrumb svg{width:16px;height:16px}.sp-breadcrumb-current{font-weight:700;color:var(--text-primary)}.sp-content{flex:1;display:flex;flex-direction:column;gap:1.25rem}*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}:root{--color-primary: #4F46E5;--color-primary-dark: #3730A3;--color-primary-light: #EEF2FF;--color-primary-ring: rgba(79, 70, 229, .25);--color-surface: #FFFFFF;--color-bg: #F5F5F7;--color-border: #E2E8F0;--color-border-focus: #4F46E5;--color-text-primary: #0F172A;--color-text-secondary: #64748B;--color-text-muted: #94A3B8;--color-text-inverse: #FFFFFF;--color-error: #EF4444;--color-error-bg: #FEF2F2;--color-error-border: #FECACA;--color-success: #10B981;--color-success-bg: #ECFDF5;--radius-sm: 6px;--radius-md: 10px;--radius-lg: 16px;--radius-xl: 24px;--shadow-sm: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);--shadow-md: 0 4px 16px rgba(15, 23, 42, .08), 0 2px 6px rgba(15, 23, 42, .05);--shadow-lg: 0 12px 40px rgba(15, 23, 42, .12), 0 4px 12px rgba(15, 23, 42, .06);--font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;--transition: .15s cubic-bezier(.4, 0, .2, 1)}html{font-size:16px;-webkit-text-size-adjust:100%}body{font-family:var(--font-sans);background-color:var(--color-bg);color:var(--color-text-primary);line-height:1.6;-webkit-font-smoothing:antialiased;min-height:100vh}#root{min-height:100vh;display:flex;flex-direction:column}a{color:var(--color-primary);text-decoration:none}a:hover{text-decoration:underline}button{font-family:inherit;cursor:pointer}input,textarea{font-family:inherit}*:focus-visible{outline:2px solid var(--color-primary);outline-offset:2px;border-radius:var(--radius-sm)}@media (prefers-reduced-motion: reduce){*,*:before,*:after{transition-duration:.01ms!important}}.page-error{padding:.875rem 1.25rem;background:var(--error-bg);border:1px solid #FECACA;border-radius:var(--radius-md);color:#991b1b;font-size:.875rem;font-weight:600;margin-bottom:1rem}.page-loading{text-align:center;padding:3rem 2rem;color:var(--text-muted);font-size:.9375rem;font-weight:600}.inv-page-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1rem;margin-bottom:1.5rem}.inv-page-title{font-size:1.375rem;font-weight:800;color:var(--text-primary);letter-spacing:-.025em;margin-bottom:3px}.inv-page-sub{font-size:.875rem;color:var(--text-muted)}.inv-add-btn{height:38px;padding:0 1.125rem;background:var(--primary);color:#fff;border:none;border-radius:var(--radius-md);font-size:.875rem;font-weight:600;cursor:pointer}.inv-filters{display:flex;gap:.75rem;flex-wrap:wrap;margin-bottom:1rem}.inv-search{flex:1;min-width:180px;height:38px;padding:0 .75rem;border:1.5px solid var(--border);border-radius:var(--radius-md);font-size:.875rem;color:var(--text-primary);background:var(--surface)}.inv-select{height:38px;padding:0 .75rem;border:1.5px solid var(--border);border-radius:var(--radius-md);font-size:.875rem;background:var(--surface);color:var(--text-primary)}.inv-tabs{display:flex;gap:.375rem;flex-wrap:wrap;margin-bottom:1rem}.inv-tab{height:32px;padding:0 .875rem;background:var(--bg-subtle);border:1.5px solid var(--border);border-radius:var(--radius-md);font-size:.8125rem;font-weight:500;color:var(--text-secondary);cursor:pointer}.inv-tab--active{background:var(--primary);border-color:var(--primary);color:#fff;font-weight:700}.inv-table-wrap{overflow-x:auto;border-radius:var(--radius-lg);border:1px solid var(--border);box-shadow:var(--shadow-sm)}.inv-table{width:100%;border-collapse:collapse;background:var(--surface);font-size:.875rem}.inv-table thead{background:var(--bg-subtle);border-bottom:1px solid var(--border)}.inv-table th{padding:.75rem 1rem;text-align:left;font-size:.6875rem;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.06em;white-space:nowrap}.inv-table td{padding:.75rem 1rem;border-bottom:1px solid var(--border);vertical-align:middle}.inv-table tr:last-child td{border-bottom:none}.inv-table tr:hover td{background:var(--bg-subtle)}.inv-action-btn{height:28px;padding:0 .625rem;background:var(--bg-subtle);border:1.5px solid var(--border);border-radius:var(--radius-sm);font-size:.75rem;font-weight:600;cursor:pointer;margin-right:.375rem}.inv-action-btn--pay{background:var(--success-bg);border-color:#a7f3d0;color:#065f46}.inv-empty{text-align:center;padding:2rem;color:var(--text-muted);font-weight:600}.inv-pagination{display:flex;gap:.375rem;justify-content:center;margin-top:1rem;flex-wrap:wrap}.inv-page-btn{min-width:32px;height:32px;border:1.5px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);font-size:.875rem;color:var(--text-secondary);cursor:pointer}.inv-page-btn.active{background:var(--primary);border-color:var(--primary);color:#fff;font-weight:700}.inv-pay-modal{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:var(--z-modal)}.inv-pay-modal-box{background:var(--surface);border-radius:var(--radius-lg);padding:1.75rem;max-width:480px;width:calc(100vw - 2rem);box-shadow:var(--shadow-lg)}.acc-page{display:flex;flex-direction:column;gap:1.5rem;flex:1}.acc-page-header{margin-bottom:.5rem}.acc-page-title{font-size:1.375rem;font-weight:800;color:var(--text-primary)}.acc-tabs{display:flex;gap:.375rem;flex-wrap:wrap;border-bottom:1px solid var(--border);padding-bottom:0;margin-bottom:1rem}.acc-tab{height:44px;padding:0 1rem;background:none;border:none;border-bottom:2.5px solid transparent;font-size:.875rem;font-weight:500;color:var(--text-muted);cursor:pointer;white-space:nowrap;display:flex;align-items:center;gap:.375rem;margin-bottom:-1px}.acc-tab--active{color:var(--primary);border-bottom-color:var(--primary);font-weight:700}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a8c;z-index:500;display:flex;align-items:center;justify-content:center;padding:1rem;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);animation:modalFadeIn .15s var(--ease)}@keyframes modalFadeIn{0%{opacity:0}to{opacity:1}}@keyframes modalSlideUp{0%{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}.modal-header{display:flex;align-items:center;gap:.875rem;padding:1.375rem 1.5rem;border-bottom:1px solid var(--border);flex-shrink:0}.modal-title{font-size:1rem;font-weight:700;color:var(--text-primary);margin-bottom:1px}.modal-subtitle{font-size:.8125rem;color:var(--text-muted)}.modal-close{width:32px;height:32px;background:none;border:1px solid var(--border);border-radius:var(--radius-sm);display:flex;align-items:center;justify-content:center;cursor:pointer;color:var(--text-muted);margin-left:auto;flex-shrink:0;transition:background var(--transition),color var(--transition)}.modal-close svg{width:15px;height:15px}.modal-close:hover{background:var(--error-bg);color:var(--error);border-color:var(--error)}.modal-footer{display:flex;justify-content:flex-end;gap:.75rem;padding:1.125rem 1.5rem;border-top:1px solid var(--border);flex-shrink:0}.modal-btn-cancel{height:40px;padding:0 1.25rem;background:none;border:1.5px solid var(--border);border-radius:var(--radius-md);font-size:.875rem;font-weight:600;color:var(--text-secondary);cursor:pointer;font-family:var(--font);transition:border-color var(--transition),color var(--transition)}.modal-btn-cancel:hover{border-color:var(--border-strong);color:var(--text-primary)}.modal-btn-save{height:40px;padding:0 1.25rem;background:var(--primary);border:none;border-radius:var(--radius-md);font-size:.875rem;font-weight:600;color:#fff;cursor:pointer;font-family:var(--font);display:flex;align-items:center;gap:.5rem;transition:background var(--transition),box-shadow var(--transition)}.modal-btn-save svg{width:15px;height:15px}.modal-btn-save:hover{background:var(--primary-dark);box-shadow:0 4px 12px #4f46e54d}:root{--primary: #4F46E5;--primary-dark: #3730A3;--primary-light: #EEF2FF;--primary-ring: rgba(79, 70, 229, .18);--sidebar-bg: #0F172A;--sidebar-width: 260px;--sidebar-collapsed: 68px;--sidebar-text: #94A3B8;--sidebar-text-hover:#F1F5F9;--sidebar-active-bg: rgba(79, 70, 229, .15);--sidebar-active-text:#818CF8;--sidebar-border: rgba(255,255,255,.06);--sidebar-section: #475569;--header-height: 64px;--header-bg: #FFFFFF;--header-border: #E2E8F0;--header-shadow: 0 1px 3px rgba(15,23,42,.06);--surface: #FFFFFF;--bg-page: #F1F5F9;--bg-subtle: #F8FAFC;--text-primary: #0F172A;--text-secondary: #475569;--text-muted: #94A3B8;--text-inverse: #FFFFFF;--border: #E2E8F0;--border-strong: #CBD5E1;--success: #10B981;--success-bg: #ECFDF5;--warning: #F59E0B;--warning-bg: #FFFBEB;--error: #EF4444;--error-bg: #FEF2F2;--info: #3B82F6;--info-bg: #EFF6FF;--shadow-xs: 0 1px 2px rgba(15,23,42,.05);--shadow-sm: 0 1px 3px rgba(15,23,42,.08), 0 1px 2px rgba(15,23,42,.04);--shadow-md: 0 4px 12px rgba(15,23,42,.08), 0 2px 4px rgba(15,23,42,.04);--shadow-lg: 0 12px 32px rgba(15,23,42,.1), 0 4px 8px rgba(15,23,42,.05);--radius-xs: 4px;--radius-sm: 6px;--radius-md: 10px;--radius-lg: 14px;--radius-xl: 20px;--radius-full: 9999px;--font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;--ease: cubic-bezier(.4, 0, .2, 1);--duration: .2s;--transition: var(--duration) var(--ease);--footer-height: 48px}--dark-surface: #1E293B; --dark-bg-page: #0F172A; --dark-bg-subtle: #172033; --dark-border: rgba(255,255,255,.08); --dark-border-strong: rgba(255,255,255,.14); --dark-text-primary: #F1F5F9; --dark-text-secondary:#94A3B8; --dark-text-muted: #64748B; --fs-xs: .6875rem; --fs-sm: .8125rem; --fs-base: .875rem; --fs-md: .9375rem; --fs-lg: 1.0625rem; --fs-xl: 1.125rem; --fs-2xl: 1.375rem; --fs-3xl: 1.75rem; --fw-normal: 400; --fw-medium: 500; --fw-semibold:600; --fw-bold: 700; --fw-black: 800; --lh-tight: 1.2; --lh-snug: 1.4; --lh-normal: 1.6; --lh-relaxed: 1.75; --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem; --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem; --space-12: 3rem; --space-16: 4rem; --chart-1: #4F46E5; --chart-2: #10B981; --chart-3: #F59E0B; --chart-4: #3B82F6; --chart-5: #EF4444; --chart-6: #8B5CF6; --chart-7: #EC4899; --chart-8: #06B6D4; --z-dropdown: 100; --z-modal: 300; --z-toast: 500; --z-tooltip: 400; } [data-theme="dark"] {--surface: var(--dark-surface);--bg-page: var(--dark-bg-page);--bg-subtle: var(--dark-bg-subtle);--border: var(--dark-border);--border-strong: var(--dark-border-strong);--text-primary: var(--dark-text-primary);--text-secondary: var(--dark-text-secondary);--text-muted: var(--dark-text-muted);--header-bg: var(--dark-surface);--header-border: var(--dark-border);--shadow-sm: 0 1px 3px rgba(0,0,0,.3), 0 1px 2px rgba(0,0,0,.2);--shadow-md: 0 4px 12px rgba(0,0,0,.4), 0 2px 4px rgba(0,0,0,.2);--shadow-lg: 0 12px 32px rgba(0,0,0,.5), 0 4px 8px rgba(0,0,0,.25)}.card{background:var(--surface);border-radius:var(--radius-lg);border:1px solid var(--border);box-shadow:var(--shadow-sm);padding:1.5rem}.card-sm{padding:1rem}.card-lg{padding:2rem}.badge{display:inline-flex;align-items:center;gap:4px;padding:2px 10px;border-radius:var(--radius-full);font-size:.75rem;font-weight:600;line-height:1.6}.badge-success{background:var(--success-bg);color:#065f46}.badge-warning{background:var(--warning-bg);color:#92400e}.badge-error{background:var(--error-bg);color:#991b1b}.badge-info{background:var(--info-bg);color:#1e40af}.badge-neutral{background:#f1f5f9;color:#475569}::-webkit-scrollbar{width:5px;height:5px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:var(--border-strong);border-radius:var(--radius-full)}::-webkit-scrollbar-thumb:hover{background:var(--text-muted)}
