@keyframes toastSlideUp{0%{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}@keyframes toastSlideDown{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(12px)}}@media (max-width:480px){.toast-container{bottom:8px;left:8px;right:8px}}:root,[data-theme=dark]{--sidebar-width:240px;--sidebar-collapsed:95px;--transition:.3s ease;--text-xs:.7rem;--text-sm:.78rem;--text-base:.85rem;--text-md:.95rem;--text-lg:1.1rem;--text-xl:1.5rem;--font-md:var(--text-base);--font-sm:var(--text-sm);--h1:1.25rem;--h2:1.1rem;--h3:.95rem;--space-xs:4px;--space-sm:8px;--space-md:16px;--space-lg:24px;--space-xl:32px;--space-2xl:48px;--radius-sm:6px;--radius-md:8px;--radius-lg:12px;--radius-xl:16px;--shadow-sm:0 1px 3px #0000001f;--shadow-md:0 4px 12px #00000026;--shadow-lg:0 8px 24px #0003;--shadow-xl:0 12px 40px #00000047;--btn-height-sm:28px;--btn-height-md:36px;--btn-height-lg:44px;--btn-radius:var(--radius-md);--btn-font-size:var(--text-base);--btn-font-weight:500;--btn-disabled-opacity:.45;--overlay-bg:#00000080;--bp-sm:480px;--bp-md:768px;--bp-lg:1024px;--sidebar-bg:#09090b;--sidebar-card-bg:#18181b;--sidebar-border:#ffffff0a;--sidebar-text:#a1a1aa;--sidebar-text-active:#fafafa;--sidebar-hover:#27272a;--sidebar-active:#27272a;--sidebar-card-radius:14px;--content-bg:#09090b;--header-bg:#18181b;--border-color:#27272a;--shadow:0 1px 2px #0000004d;--text-primary:#fafafa;--text-secondary:#a1a1aa;--text-tertiary:#71717a;--text-muted:#a1a1aa;--accent:#e63946;--accent-dark:#c5303c;--accent-light:#e639461f;--card-shadow:0 1px 3px #0000001f;--color-success:#22c55e;--color-success-dark:#16a34a;--color-warning:#f59e0b;--color-warning-dark:#d97706;--color-danger:#ef4444;--color-danger-dark:#dc2626;--color-info:#3b82f6;--color-teal:#14b8a6;--color-rank-primary:#a1a1aa;--color-rank-muted:#a1a1aa;--color-cat-1:#818cf8;--color-cat-2:#fb923c;--color-cat-3:#f87171;--color-cat-4:#34d399;--color-cat-5:#f472b6;--color-chart-cursor:#27272a}[data-theme=light]{--sidebar-bg:#f4f4f5;--sidebar-card-bg:#fff;--sidebar-border:#0000000f;--sidebar-text:#71717a;--sidebar-text-active:#18181b;--sidebar-hover:#0000000f;--sidebar-active:#0000000f;--content-bg:#f4f4f5;--header-bg:#fff;--border-color:#e4e4e7;--shadow:0 1px 2px #0000000f;--text-primary:#18181b;--text-secondary:#71717a;--text-tertiary:#a1a1aa;--text-muted:#71717a;--accent:#e63946;--accent-dark:#c5303c;--accent-light:#e6394614;--card-shadow:0 1px 3px #0000000f;--shadow-sm:0 1px 3px #0000000f;--shadow-md:0 4px 12px #00000014;--shadow-lg:0 8px 24px #0000001a;--btn-disabled-opacity:.45;--overlay-bg:#0006;--color-success:#22c55e;--color-success-dark:#16a34a;--color-warning:#f59e0b;--color-warning-dark:#d97706;--color-danger:#ef4444;--color-danger-dark:#dc2626;--color-info:#2563eb;--color-teal:#14b8a6;--color-rank-primary:#71717a;--color-rank-muted:#71717a;--color-cat-1:#818cf8;--color-cat-2:#fb923c;--color-cat-3:#f87171;--color-cat-4:#34d399;--color-cat-5:#f472b6;--color-chart-cursor:#0000000f}*,:before,:after{box-sizing:border-box;-webkit-tap-highlight-color:transparent;margin:0;padding:0;transition:border-color .3s}button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}body{background:var(--content-bg);color:var(--text-primary);font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;transition:background .3s,color .3s}.sidebar{width:var(--sidebar-width);background:var(--sidebar-bg);height:100vh;color:var(--sidebar-text);z-index:100;transition:width var(--transition), background .3s ease, color .3s ease, border-color .3s ease;flex-direction:column;display:flex;position:fixed;top:0;left:0;overflow:hidden}.sidebar.collapsed{width:var(--sidebar-collapsed)}.sidebar-header{flex-shrink:0;padding:12px 12px 0}.logo-card{flex-shrink:0}.sidebar-logo{white-space:nowrap;border-radius:10px;align-items:center;gap:12px;min-height:38px;margin:0 4px;padding:8px 12px 8px 4px;display:flex}.logo-icon{object-fit:contain;border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;width:44px;height:44px;margin:-8px 0;display:flex}.logo-full{color:var(--accent);letter-spacing:-.5px;justify-content:center;align-items:center;font-size:1.3rem;font-weight:700;line-height:1;display:flex}.logo-rest{opacity:1;white-space:nowrap;color:#dc143c;background:linear-gradient(90deg,#dc143c 0% 40%,#ff6b6b 50%,#dc143c 60% 100%) 0 0/200% 100%;-webkit-text-fill-color:transparent;-webkit-background-clip:text;background-clip:text;max-width:200px;transition:opacity .25s;animation:3s ease-in-out infinite shine;overflow:hidden}@keyframes shine{0%{background-position:100% 0}to{background-position:-100% 0}}.collapsed .logo-rest{opacity:0;pointer-events:none}.collapsed .logo-full{gap:0}.collapsed .logo-icon{margin:-8px 0}.sidebar-static{flex-shrink:0;padding:12px 12px 0}.sidebar-nav{flex-direction:column;flex:1;min-height:0;padding:12px;display:flex;overflow:hidden}.sidebar-nav>.sidebar-card-group:first-child{flex:1;min-height:0}.profile-card{flex-shrink:0;margin-bottom:0}.profile-card .profile-item,.profile-card .login-btn{border-radius:10px;align-items:center;gap:12px;min-height:36px;margin:0 4px;padding:8px 12px;transition:background .3s,color .3s;display:flex}.profile-card .login-btn{cursor:pointer;text-align:left;width:calc(100% - 8px);font-family:inherit;font-size:inherit;background:0 0;border:none}.profile-card .login-btn:hover{background:var(--sidebar-hover)}.profile-avatar{width:28px;height:28px;color:var(--sidebar-text);flex-shrink:0;justify-content:center;align-items:center;transition:color .3s;display:flex}.profile-avatar svg{width:28px;height:28px}.nav-item:hover .profile-avatar,.login-btn:hover .profile-avatar{color:var(--sidebar-text-active)}.nav-item.active .profile-avatar{color:var(--accent)}.profile-info{flex-direction:column;gap:1px;min-width:0;transition:opacity .3s,width .3s;display:flex;overflow:hidden}.profile-name{color:var(--sidebar-text-active);font-size:.8rem;font-weight:600}.profile-status{color:var(--sidebar-text);font-size:.65rem}.collapsed .profile-card .profile-info{opacity:0;pointer-events:none}.profile-role{color:var(--accent);font-size:.65rem}.theme-toggle{color:var(--sidebar-text);cursor:pointer;white-space:nowrap;text-align:left;width:calc(100% - 8px);min-height:36px;font-family:inherit;font-size:inherit;background:0 0;border:none;border-radius:10px;align-items:center;gap:12px;margin:0 4px;padding:8px 12px;transition:background .2s,color .2s;display:flex}.theme-toggle:hover{background:var(--sidebar-hover);color:var(--sidebar-text-active)}.theme-toggle svg{flex-shrink:0;width:28px;height:28px}.theme-toggle .icon-sun{display:none}.theme-toggle .icon-moon,[data-theme=light] .theme-toggle .icon-sun{display:block}[data-theme=light] .theme-toggle .icon-moon{display:none}.theme-toggle-label{font-size:.95rem;font-weight:500;transition:opacity .25s}.collapsed .theme-toggle-label{opacity:0;pointer-events:none}.collapsed .theme-toggle{padding:8px 12px}.collapse-toggle{color:var(--sidebar-text);cursor:pointer;white-space:nowrap;text-align:left;width:calc(100% - 8px);min-height:36px;font-family:inherit;font-size:inherit;background:0 0;border:none;border-radius:10px;align-items:center;gap:12px;margin:0 4px;padding:8px 12px;transition:background .2s,color .2s;display:flex}.collapse-toggle:hover{background:var(--sidebar-hover);color:var(--sidebar-text-active)}.collapse-toggle svg{flex-shrink:0;width:28px;height:28px;transition:transform .3s}.collapsed .collapse-toggle svg{transform:rotate(180deg)}.collapse-toggle-label{font-size:.95rem;font-weight:500;transition:opacity .25s}.collapsed .collapse-toggle-label{opacity:0;pointer-events:none}.sidebar-card-group{background:var(--sidebar-card-bg);border-radius:var(--sidebar-card-radius);box-shadow:var(--card-shadow);flex-direction:column;gap:8px;margin-bottom:12px;padding:6px;transition:background .3s;display:flex}.menu-card{flex:1;min-height:0;overflow:hidden}.menu-card-items{scrollbar-width:none;flex-direction:column;flex:1;gap:8px;min-height:0;padding:0;display:flex;overflow-y:auto}.menu-card-items::-webkit-scrollbar{display:none}.collapsed .menu-card-items{overflow:hidden}.menu-card-bottom{flex-direction:column;flex-shrink:0;gap:8px;margin-top:4px;padding-top:4px;display:flex}.sidebar-divider{background:var(--border-color);height:1px;margin:0 10px 4px;transition:background .3s}.sidebar-card-group:last-child{margin-bottom:0}.sidebar-label{letter-spacing:1.5px;color:var(--sidebar-text);text-transform:uppercase;padding:12px 14px 8px 11px;font-size:.7rem;font-weight:600;transition:opacity .25s}.nav-item{color:var(--sidebar-text);white-space:nowrap;cursor:pointer;border-left:none;border-radius:10px;align-items:center;gap:12px;min-height:36px;margin:0 4px;padding:8px 12px;text-decoration:none;transition:background .3s,color .3s,box-shadow .3s;display:flex;position:relative;box-shadow:0 0 #0000}.nav-item svg{flex-shrink:0;width:28px;height:28px}.nav-icon-wrap{flex-shrink:0;justify-content:center;align-items:center;width:28px;height:28px;display:flex;position:relative}.nav-icon-wrap svg{width:28px;height:28px}.nav-dot{opacity:0;pointer-events:none;transition:opacity .3s}.collapsed .nav-dot{opacity:1;background:var(--color-danger);border:2px solid var(--sidebar-card-bg);z-index:1;border-radius:50%;width:8px;height:8px;position:absolute;top:-2px;right:-2px}.nav-item span{color:var(--sidebar-text);font-size:.95rem;font-weight:500;transition:opacity .25s,color .3s}.collapsed .nav-item span:not(.nav-icon-wrap):not(.nav-dot){opacity:0;pointer-events:none}.nav-item:hover{background:var(--sidebar-hover);color:var(--sidebar-text-active);box-shadow:none}.nav-item:hover span{color:var(--sidebar-text-active)}.nav-item:hover .sidebar-badge{color:#fff}.nav-item.active{background:var(--sidebar-active);color:var(--accent);box-shadow:none}.nav-item.active span{color:var(--accent)}.sidebar-badge{background:var(--color-danger);pointer-events:none;border-radius:10px;justify-content:center;align-items:center;min-width:20px;height:20px;margin-left:auto;padding:0 6px;font-size:.7rem;font-weight:700;line-height:1;transition:min-width .3s,height .3s,padding .3s,font-size .3s,margin-left .3s,opacity .3s;display:inline-flex;overflow:hidden;color:#fff!important}.collapsed .sidebar-badge{opacity:0;min-width:0;height:0;margin-left:0;padding:0;font-size:0}.main-content{margin-left:var(--sidebar-width);scrollbar-width:none;height:100vh;transition:margin-left var(--transition), background .3s ease, color .3s ease;flex-direction:column;display:flex;overflow:auto}.main-content::-webkit-scrollbar{display:none}.collapsed+.main-content,.collapsed-parent{margin-left:var(--sidebar-collapsed)}.content-header{display:none}.mobile-toggle{color:var(--text-primary);cursor:pointer;background:0 0;border:none;padding:4px;font-size:1.3rem}.content-body{flex-direction:column;flex:1;min-height:0;padding:32px;display:flex}#page-container{flex-direction:column;flex:1;min-height:0;transition:opacity .2s,transform .2s,background .3s,color .3s;display:flex}.form-group{margin-bottom:18px}.form-group:last-child{margin-bottom:0}.form-group label{color:var(--text-secondary);margin-bottom:6px;font-size:.8rem;font-weight:500;display:block}.form-fieldset{border:none;margin:0;padding:0}.form-legend{color:var(--text-secondary);margin-bottom:6px;font-size:.8rem;font-weight:500;display:block}.form-input{border:1px solid var(--border-color);color:var(--text-primary);background:0 0;border-radius:8px;flex:1;padding:9px 12px;font-family:inherit;font-size:.9rem;transition:border-color .2s}[data-theme=dark] .form-input{background:var(--header-bg)}[data-theme=dark] input[type=checkbox]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}.form-input:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-light);background:0 0;outline:none}.form-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.form-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.form-input[type=number]{-webkit-appearance:textfield;appearance:textfield}.custom-select-wrapper{width:100%;position:relative}.custom-select-trigger{background:var(--header-bg);border:1px solid var(--border-color);cursor:pointer;text-align:left;border-radius:8px;justify-content:space-between;align-items:center;width:100%;padding:9px 12px;font-family:inherit;font-size:.9rem;transition:border-color .2s;display:flex}.custom-select-trigger:hover:not(.disabled){border-color:var(--border-color)}.custom-select-trigger.disabled{opacity:.5;cursor:not-allowed}.custom-select-value{text-overflow:ellipsis;white-space:nowrap;color:var(--text-primary);overflow:hidden}.custom-select-value.placeholder{color:var(--text-secondary)}.custom-select-arrow{width:16px;height:16px;color:var(--text-secondary);flex-shrink:0;transition:transform .2s}.custom-select-arrow.open{transform:rotate(180deg)}.custom-select-dropdown{background:var(--header-bg);border:1px solid var(--border-color);z-index:100;border-radius:8px;min-width:120px;max-height:240px;padding:4px;animation:.15s selectSlideDown;position:absolute;top:calc(100% + 4px);left:0;right:0;overflow-y:auto;box-shadow:0 4px 16px #0000001a}.custom-select-dropdown::-webkit-scrollbar{width:4px}.custom-select-dropdown::-webkit-scrollbar-track{background:0 0}.custom-select-dropdown::-webkit-scrollbar-thumb{background:var(--border-color);border-radius:2px}.custom-select-option{cursor:pointer;text-align:left;width:100%;color:var(--text-secondary);white-space:nowrap;background:0 0;border:none;border-radius:4px;padding:6px 10px;font-family:inherit;font-size:.78rem;transition:background .12s,color .12s;display:block}.custom-select-option:hover,[data-theme=light] .custom-select-option:hover{background:var(--sidebar-hover);color:var(--text-primary)}.custom-select-option.selected{background:var(--accent);color:#fff}@keyframes selectSlideDown{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.custom-select-label{color:var(--text-secondary);justify-content:space-between;align-items:center;margin-bottom:6px;font-size:.78rem;font-weight:500;display:flex}.custom-select-label-right{color:var(--accent);cursor:pointer;align-items:center;gap:4px;font-size:.72rem;font-weight:500;transition:opacity .15s;display:inline-flex}.custom-select-label-right:hover{opacity:.8}.custom-select-search-icon{width:14px;height:14px;color:var(--text-secondary);flex-shrink:0}.custom-creatable-dropdown{padding:0;overflow:visible}.custom-select-trigger .custom-select-search-icon{color:var(--text-secondary);flex-shrink:0}.custom-creatable-wrapper .custom-select-trigger{justify-content:space-between}.custom-creatable-search-wrap{margin:8px;padding:0}.custom-creatable-search{background:var(--content-bg);border:1px solid var(--border-color);width:100%;color:var(--text-primary);box-sizing:border-box;border-radius:8px;outline:none;padding:12px 10px;font-family:inherit;font-size:.82rem}.custom-creatable-search::placeholder{color:var(--text-secondary)}.custom-creatable-options{max-height:180px;padding:4px;overflow-y:auto}.custom-creatable-options::-webkit-scrollbar{width:4px}.custom-creatable-options::-webkit-scrollbar-track{background:0 0}.custom-creatable-options::-webkit-scrollbar-thumb{background:var(--border-color);border-radius:2px}.custom-creatable-empty{color:var(--text-secondary);text-align:center;padding:12px 10px;font-size:.78rem}.custom-creatable-create{cursor:pointer;text-align:left;width:100%;color:var(--accent);background:0 0;border:none;border-radius:4px;align-items:center;gap:6px;padding:8px 10px;font-family:inherit;font-size:.82rem;transition:background .12s;display:flex}.custom-creatable-create:hover{background:var(--accent-light)}.custom-creatable-create:disabled{opacity:.6;cursor:not-allowed}.custom-creatable-error{color:#ef4444;text-align:center;border-top:1px solid var(--border);padding:6px 10px;font-size:.78rem}.custom-datepicker-wrapper{width:100%;position:relative}.custom-datepicker-input{width:100%;padding-right:40px}.custom-datepicker-icon{cursor:pointer;width:20px;height:20px;color:var(--text-secondary);background:0 0;border:none;justify-content:center;align-items:center;padding:0;display:flex;position:absolute;top:50%;right:10px;transform:translateY(-50%)}.custom-datepicker-icon svg{width:18px;height:18px}.custom-datepicker-dropdown{background:var(--header-bg);border:1px solid var(--border-color);z-index:100;border-radius:10px;margin-bottom:4px;padding:12px;animation:.15s selectSlideDown;position:absolute;bottom:100%;left:0;right:auto;box-shadow:0 4px 16px #0000001a}.custom-datepicker-header{justify-content:space-between;align-items:center;margin-bottom:12px;display:flex}.custom-datepicker-title{color:var(--text-primary);font-size:.9rem;font-weight:600}.custom-datepicker-nav{cursor:pointer;width:28px;height:28px;color:var(--text-secondary);background:0 0;border:none;border-radius:6px;justify-content:center;align-items:center;padding:0;transition:background .15s,color .15s;display:flex}.custom-datepicker-nav:hover{background:var(--sidebar-hover);color:var(--text-primary)}.custom-datepicker-nav svg{width:16px;height:16px}.custom-datepicker-weekdays{grid-template-columns:repeat(7,1fr);gap:0;margin-bottom:4px;display:grid}.custom-datepicker-weekday{text-align:center;color:var(--text-secondary);text-transform:uppercase;padding:4px 0;font-size:.7rem;font-weight:600}.custom-datepicker-grid{grid-template-columns:repeat(7,1fr);gap:2px;display:grid}.custom-datepicker-day{cursor:pointer;width:32px;height:32px;color:var(--text-primary);background:0 0;border:none;border-radius:8px;justify-content:center;align-items:center;padding:0;font-size:.82rem;transition:background .1s;display:flex}.custom-datepicker-day:hover:not(.empty):not(.selected){background:var(--sidebar-hover)}.custom-datepicker-day.today{color:var(--accent);font-weight:600}.custom-datepicker-day.selected{background:var(--accent);color:#fff;font-weight:600}.custom-datepicker-day.empty{cursor:default}.form-hint{color:var(--text-secondary);margin-top:4px;font-size:.75rem;display:block}.btn-edit{border:1px solid var(--border-color);color:var(--text-secondary);cursor:pointer;white-space:nowrap;background:0 0;border-radius:8px;padding:9px 14px;font-size:.9rem;font-weight:500;transition:background .2s,color .2s,border-color .2s}.btn-edit:hover{background:var(--sidebar-hover);color:var(--text-primary)}.btn{cursor:pointer;white-space:nowrap;background:0 0;border:none;justify-content:center;align-items:center;gap:6px;font-family:inherit;text-decoration:none;transition:background .15s,color .15s,border-color .15s,opacity .15s,transform .1s;display:inline-flex}.btn:disabled{opacity:var(--btn-disabled-opacity);cursor:not-allowed;pointer-events:none}.btn-primary{background:var(--accent);color:#fff;font-weight:var(--btn-font-weight);font-size:var(--btn-font-size)}.btn-primary:hover:not(:disabled){opacity:.9}.btn-primary:active:not(:disabled){transform:scale(.98)}.btn-secondary{border:1px solid var(--border-color);color:var(--text-secondary);font-weight:var(--btn-font-weight);font-size:var(--btn-font-size);background:0 0}.btn-secondary:hover:not(:disabled){background:var(--sidebar-hover);color:var(--text-primary)}.btn-danger{background:var(--color-danger);color:#fff;font-weight:var(--btn-font-weight);font-size:var(--btn-font-size)}.btn-danger:hover:not(:disabled){background:var(--color-danger-dark)}.btn-ghost{color:var(--text-secondary);font-weight:var(--btn-font-weight);font-size:var(--btn-font-size);background:0 0}.btn-ghost:hover:not(:disabled){background:var(--sidebar-hover);color:var(--text-primary)}.btn-icon{border-radius:var(--radius-sm);color:var(--text-secondary);justify-content:center;align-items:center;padding:0;display:inline-flex}.btn-icon:hover:not(:disabled){background:var(--sidebar-hover);color:var(--text-primary)}.btn-sm{height:var(--btn-height-sm);font-size:var(--text-sm);border-radius:var(--radius-sm);padding:0 12px}.btn-md{height:var(--btn-height-md);font-size:var(--btn-font-size);border-radius:var(--btn-radius);padding:0 16px}.btn-lg{height:var(--btn-height-lg);font-size:var(--text-md);border-radius:var(--btn-radius);padding:0 20px}.btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.schedule-days{align-items:center;gap:6px;display:flex}.schedule-day-btn{border:1.5px solid var(--border-color);width:36px;height:36px;color:var(--text-secondary);cursor:pointer;background:0 0;border-radius:50%;justify-content:center;align-items:center;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-size:.72rem;font-weight:600;transition:background .15s,color .15s,border-color .15s;display:flex}.schedule-day-btn:hover{border-color:var(--accent);color:var(--accent)}.schedule-day-btn.active{background:var(--accent);border-color:var(--accent);color:#fff}.schedule-day-btn:disabled{opacity:.5;cursor:not-allowed}.sidebar-overlay{z-index:99;opacity:0;transition:opacity var(--transition);background:#00000080;display:none;position:fixed;top:0;bottom:0;left:0;right:0}.sidebar-overlay.show{opacity:1}@media (max-width:768px){.sidebar{left:calc(-1 * var(--sidebar-width));transition:left var(--transition)}.sidebar.open{left:0}.sidebar.open .nav-item span,.sidebar.open .profile-info,.sidebar.open .theme-toggle-label,.sidebar.open .collapse-toggle-label,.sidebar.open .nav-item span:not(.nav-icon-wrap):not(.nav-dot){opacity:1;pointer-events:auto}.sidebar.open .sidebar-badge{opacity:1;min-width:20px;height:20px;margin-left:auto;padding:0 6px;font-size:.7rem}.sidebar.open .nav-dot{display:none}.sidebar.open .logo-rest{opacity:1;pointer-events:auto}.sidebar.open .collapse-toggle svg{transform:rotate(0)}.sidebar.collapsed{width:var(--sidebar-width)}.main-content{margin-left:0!important}.mobile-toggle{display:flex}.content-header{background:var(--header-bg);border-bottom:1px solid var(--border-color);box-shadow:var(--shadow);z-index:10;align-items:center;gap:12px;padding:12px 16px;display:flex;position:sticky;top:0}.content-header h1{color:var(--text-primary);font-size:1.15rem;font-weight:600}.content-body{padding:16px}.sidebar-overlay.show{display:block}.page-placeholder{min-height:250px;padding:32px 16px}.page-placeholder i{font-size:2.5rem}.form-row{flex-direction:column;align-items:stretch}.form-row-between{flex-direction:row;align-items:center}.btn-edit{align-self:flex-start}}.flex-row{gap:8px;display:flex}.flex-row-relative{gap:8px;display:flex;position:relative}.spinner-centered{width:32px;height:32px;margin:0 auto}.logo-full,.profile-name,.profile-role,.mobile-toggle,.form-legend,.form-hint,.custom-select-value,.custom-select-label,.custom-select-search-icon,.custom-creatable-empty,.custom-datepicker-icon,.custom-datepicker-title,.custom-datepicker-weekday,.btn-primary,.btn-secondary,.btn-danger,.btn-ghost,.btn-icon{transition:background .3s,color .3s,border-color .3s}.custom-select-dropdown,.custom-creatable-search,.custom-datepicker-dropdown{transition:background .3s,border-color .3s}.login-modal-overlay{background:var(--overlay-bg);z-index:1000;will-change:opacity;justify-content:center;align-items:center;animation:.15s forwards loginFadeIn;display:flex;position:fixed;top:0;bottom:0;left:0;right:0}.login-modal-overlay.closing{animation:.15s forwards loginFadeOut}.login-modal{background:var(--header-bg);border-radius:var(--radius-lg);will-change:transform;width:100%;max-width:420px;margin:16px;animation:.15s forwards loginSlideUp;position:relative;overflow:hidden;box-shadow:0 8px 40px #0000001f}.login-modal.closing{animation:.15s forwards loginSlideDown}.login-modal-header{justify-content:space-between;align-items:center;padding:24px 32px 0;display:flex}.login-modal-header h2{color:var(--text-primary);font-size:1.3rem;font-weight:700}.login-modal-close{cursor:pointer;color:var(--text-secondary);background:0 0;border:none;border-radius:10px;padding:8px;transition:background .2s,color .2s;position:static}.login-modal-close:hover{background:var(--sidebar-hover);color:var(--text-primary)}.login-modal-close svg{width:18px;height:18px}.login-modal-form{padding:24px 32px}.login-error{color:#ef4444;background:#ef444414;border:1px solid #ef444440;border-radius:10px;align-items:center;gap:10px;margin-bottom:20px;padding:12px 14px;font-size:.85rem;animation:.4s loginShake;display:flex}@keyframes loginShake{0%,to{transform:translate(0)}20%{transform:translate(-6px)}40%{transform:translate(6px)}60%{transform:translate(-4px)}80%{transform:translate(4px)}}.login-error svg{flex-shrink:0;width:18px;height:18px}.login-input-group{margin-bottom:18px}.login-input-group label{color:var(--text-secondary);margin-bottom:8px;font-size:.8rem;font-weight:500;display:block}.login-input-wrapper{align-items:center;display:flex;position:relative}.login-input-icon{pointer-events:none;color:var(--text-secondary);justify-content:center;align-items:center;transition:color .2s;display:flex;position:absolute;left:14px}.login-input-icon svg{width:18px;height:18px}.login-input{background:var(--content-bg);border:1.5px solid var(--border-color);width:100%;color:var(--text-primary);border-radius:10px;outline:none;padding:12px 14px 12px 44px;font-family:inherit;font-size:.9rem;transition:border-color .2s,box-shadow .2s,background .3s}.login-input::placeholder{color:var(--text-secondary);opacity:.6}.login-input:focus{border-color:var(--sidebar-hover);box-shadow:0 0 0 3px #27272a26}.login-input:focus+.login-input-icon,.login-input:focus~.login-input-icon{color:var(--sidebar-hover)}.login-input-wrapper:focus-within .login-input-icon{color:var(--text-secondary)}.login-password-toggle{cursor:pointer;color:var(--text-secondary);background:0 0;border:none;border-radius:6px;justify-content:center;align-items:center;padding:6px;transition:color .2s,background .2s;display:flex;position:absolute;right:10px}.login-password-toggle:hover{color:var(--text-primary);background:var(--sidebar-hover)}.login-password-toggle svg{width:18px;height:18px}.login-options-row{justify-content:flex-start;align-items:center;margin-bottom:24px;display:flex}.login-checkbox{cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;gap:8px;display:flex}.login-checkbox input{display:none}.login-checkbox-mark{border:1.5px solid var(--border-color);border-radius:5px;flex-shrink:0;justify-content:center;align-items:center;width:18px;height:18px;transition:background .2s,border-color .2s;display:flex}.login-checkbox-mark:after{content:"";border-bottom:2px solid #fff;border-left:2px solid #fff;width:10px;height:6px;margin-top:-2px;transition:transform .2s;transform:rotate(-45deg)scale(0)}.login-checkbox input:checked+.login-checkbox-mark{background:var(--sidebar-hover);border-color:var(--sidebar-hover)}.login-checkbox input:checked+.login-checkbox-mark:after{transform:rotate(-45deg)scale(1)}.login-checkbox-label{color:var(--text-secondary);font-size:.85rem}.login-submit-btn{background:var(--accent);color:#fff;cursor:pointer;letter-spacing:.3px;border:none;border-radius:10px;justify-content:center;align-items:center;gap:8px;width:100%;padding:13px 16px;font-size:.95rem;font-weight:600;transition:background .2s,transform .15s,opacity .2s;display:flex}.login-submit-btn:hover:not(:disabled){background:var(--accent-dark);transform:translateY(-1px)}.login-submit-btn:active:not(:disabled){transform:translateY(0)}.login-submit-btn:disabled{opacity:var(--btn-disabled-opacity);cursor:not-allowed}.login-submit-btn svg{width:18px;height:18px}.login-btn-spinner{border:2px solid #ffffff4d;border-top-color:#fff;border-radius:50%;width:18px;height:18px;animation:.7s linear infinite loginSpin}@keyframes loginSpin{to{transform:rotate(360deg)}}.login-modal-footer{text-align:center;padding:0 32px 24px}.login-modal-footer p{color:var(--text-secondary);opacity:.7;font-size:.75rem}@keyframes loginFadeIn{0%{opacity:0}to{opacity:1}}@keyframes loginFadeOut{0%{opacity:1}to{opacity:0}}@keyframes loginSlideUp{0%{transform:translateY(24px)}to{transform:translateY(0)}}@keyframes loginSlideDown{0%{transform:translateY(0)}to{transform:translateY(24px)}}@media (max-width:480px){.login-modal{border-radius:16px;max-width:none;margin:16px}.login-modal-header{padding:20px 24px 0}.login-modal-form{padding:20px 24px}.login-modal-footer{padding:0 24px 20px}}.login-modal,.login-checkbox-label{transition:background .3s,color .3s,border-color .3s}.confirm-modal-overlay{background:var(--overlay-bg);z-index:1000;will-change:opacity;justify-content:center;align-items:center;animation:.15s forwards confirmFadeIn;display:flex;position:fixed;top:0;bottom:0;left:0;right:0}.confirm-modal-overlay.closing{animation:.15s forwards confirmFadeOut}.confirm-modal-overlay.positioned{justify-content:flex-end;align-items:flex-start}.confirm-modal{background:var(--header-bg);will-change:transform;border-radius:12px;width:100%;max-width:320px;margin:16px;animation:.15s forwards confirmPopIn;overflow:hidden;box-shadow:0 4px 20px #0000001f}.confirm-modal.positioned{max-width:320px;margin:12px;position:absolute}.confirm-modal.closing{animation:.15s forwards confirmPopOut}.confirm-modal-body{padding:24px 24px 0}.confirm-modal-body h3{color:var(--text-primary);margin-bottom:8px;font-size:1.05rem;font-weight:600}.confirm-modal-body p{color:var(--text-secondary);font-size:.85rem;line-height:1.5}.confirm-modal-actions{justify-content:flex-end;gap:8px;padding:20px 24px;display:flex}.confirm-modal-cancel,.confirm-modal-confirm{cursor:pointer;border:1px solid var(--border-color);border-radius:8px;padding:9px 18px;font-family:inherit;font-size:.85rem;font-weight:500;transition:background .2s,color .2s,border-color .2s}.confirm-modal-cancel{color:var(--text-secondary);background:0 0;border:none}.confirm-modal-cancel:hover{color:var(--text-primary);background:0 0}.confirm-modal-confirm{background:var(--accent);color:#fff;border-color:var(--accent)}.confirm-modal-confirm:hover{background:var(--accent-dark);border-color:var(--accent-dark)}.confirm-modal-confirm.danger{background:var(--color-danger);border-color:var(--color-danger)}.confirm-modal-confirm.danger:hover:not(:disabled){background:var(--color-danger-dark);border-color:var(--color-danger-dark)}.confirm-modal-confirm:disabled{opacity:var(--btn-disabled-opacity);cursor:not-allowed}.confirm-modal-name-input{margin-top:12px}.confirm-modal-name-input label{color:var(--text-secondary);margin-bottom:6px;font-size:.8rem;display:block}.confirm-modal-name-input label strong{color:var(--text-primary)}.confirm-modal-name-input input{background:var(--content-bg);border:1px solid var(--border-color);width:100%;color:var(--text-primary);border-radius:6px;outline:none;padding:8px 10px;font-family:inherit;font-size:.85rem;transition:border-color .2s}.confirm-modal-name-input input:focus{border-color:#ef4444;box-shadow:0 0 0 3px #ef444426}.confirm-modal-name-input input::placeholder{color:var(--text-secondary);opacity:.5}@keyframes confirmFadeIn{0%{opacity:0}to{opacity:1}}@keyframes confirmFadeOut{0%{opacity:1}to{opacity:0}}@keyframes confirmPopIn{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes confirmPopOut{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.95)}}@media (max-width:480px){.confirm-modal{max-width:none;margin:16px}}.confirm-modal,.confirm-modal-cancel,.confirm-modal-confirm{transition:background .3s,color .3s,border-color .3s}.portal-dropdown{z-index:1000;animation:.12s portalDropdownIn}@keyframes portalDropdownIn{0%{opacity:0;transform:translateY(-4px)scale(.97)}to{opacity:1;transform:translateY(0)scale(1)}}.portal-dropdown-kebab{background:var(--header-bg);border:1px solid var(--border-color);border-radius:8px;min-width:180px;padding:4px;transition:background .3s,border-color .3s;box-shadow:0 2px 8px #00000014,0 1px 3px #0000000f}.status-page{justify-content:center;align-items:center;min-height:calc(100vh - 80px);padding:40px 32px;display:flex}.status-container{text-align:center;flex-direction:column;align-items:center;animation:.4s statusFadeIn;display:flex}.status-giant{letter-spacing:-.04em;color:var(--text-primary);-webkit-user-select:none;user-select:none;margin-bottom:24px;font-size:clamp(8rem,22vw,18rem);font-weight:900;line-height:.85}.status-label{text-transform:uppercase;letter-spacing:3px;color:var(--text-primary);margin-bottom:6px;font-size:.85rem;font-weight:700}.status-subtitle{color:var(--text-secondary);margin-bottom:0;font-size:.85rem;font-weight:400;line-height:1.5}.status-links{align-items:center;gap:8px;margin-top:20px;display:flex}.status-link{text-transform:uppercase;letter-spacing:1px;color:var(--text-primary);cursor:pointer;text-underline-offset:3px;background:0 0;border:none;padding:0;font-family:inherit;font-size:.8rem;font-weight:700;text-decoration:underline;text-decoration-thickness:1.5px;transition:opacity .2s}.status-link:hover{opacity:.6}.status-link-separator{color:var(--text-secondary);-webkit-user-select:none;user-select:none;font-size:.8rem;font-weight:400}.status-error-details{width:100%;max-width:400px;margin-top:32px}.status-error-toggle{color:var(--text-secondary);cursor:pointer;opacity:.6;background:0 0;border:none;border-radius:6px;align-items:center;gap:6px;margin:0 auto;padding:6px 10px;font-family:inherit;font-size:.75rem;font-weight:500;transition:background .2s,color .2s;display:flex}.status-error-toggle:hover{background:var(--sidebar-hover);color:var(--text-primary);opacity:1}.status-error-toggle svg{width:12px;height:12px;transition:transform .2s}.status-error-content{margin-top:12px;animation:.2s statusFadeIn}.status-error-message{background:#ef44440d;border:1px solid #ef44441f;border-radius:8px;flex-direction:column;gap:4px;margin-bottom:10px;padding:12px 14px;display:flex}.status-error-message strong{color:var(--color-danger-dark);font-size:.8rem;font-weight:600;transition:color .3s}.status-error-message span{color:var(--text-secondary);font-size:.75rem}.status-error-stack{background:var(--content-bg);border:1px solid var(--border-color);color:var(--text-secondary);white-space:pre-wrap;word-break:break-word;border-radius:8px;max-height:160px;padding:12px 14px;font-family:SF Mono,Fira Code,Consolas,monospace;font-size:.7rem;line-height:1.5;overflow:auto}@keyframes statusFadeIn{0%{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}.account-pending-page{flex-direction:column;flex:1;gap:12px;min-height:0;margin:-32px;padding:12px 12px 12px 0;transition:background .3s,color .3s;display:flex;position:relative;overflow:hidden}.account-pending-body{flex-direction:column;flex:1;min-height:0;display:flex}.account-pending-content{flex-direction:column;flex:1;min-width:0;min-height:0;display:flex}.account-pending-card{background:var(--header-bg);box-shadow:var(--card-shadow);border-radius:12px;flex-direction:column;flex:1;min-width:0;min-height:0;padding:16px;transition:background .3s,box-shadow .3s;display:flex;overflow:hidden}.account-pending-error-overlay{border-radius:var(--sidebar-card-radius);z-index:10;justify-content:center;align-items:center;display:flex;position:absolute;top:0;bottom:0;left:0;right:0}.account-pending-error-overlay .status-container{text-align:center;padding:32px 48px}.account-pending-error-overlay .status-giant{letter-spacing:-.04em;color:var(--text-primary);-webkit-user-select:none;user-select:none;text-shadow:0 2px 12px #00000040;margin-bottom:24px;font-size:clamp(8rem,22vw,18rem);font-weight:900;line-height:.85}.account-pending-error-overlay .status-label{text-shadow:0 1px 6px #0003}.account-pending-error-overlay .status-subtitle{text-shadow:0 1px 4px #00000026}@media (max-width:768px){.status-page{min-height:calc(100vh - 60px);padding:24px 16px}.status-giant{margin-bottom:16px}.status-label{letter-spacing:2px;font-size:.75rem}.status-subtitle{font-size:.8rem}}@media (max-width:480px){.status-link{font-size:.7rem}}.status-giant,.status-label,.status-subtitle,.status-link-separator{transition:color .3s}.status-error-stack{transition:background .3s,color .3s,border-color .3s}.tabs-card{background:var(--header-bg);box-shadow:var(--card-shadow);border-radius:14px;flex-direction:column;flex:1;transition:background .3s;display:flex;overflow:hidden}.tabs-card-header{border-bottom:1px solid var(--border-color);gap:4px;margin:0 24px;display:flex}.tabs-card-tab{color:var(--text-secondary);cursor:pointer;background:0 0;border:none;padding:14px 16px;font-family:inherit;font-size:.88rem;font-weight:500;transition:color .2s;position:relative}.tabs-card-tab:hover{color:var(--text-primary)}.tabs-card-tab.active{color:var(--accent);font-weight:600}.tabs-card-tab.active:after{content:"";background:var(--accent);border-radius:3px 3px 0 0;height:3px;position:absolute;bottom:-1px;left:0;right:0}.tabs-card-body{flex:1;min-height:0;padding:16px 24px;overflow:hidden}.notes-layout{grid-template-columns:220px 1fr;gap:16px;height:100%;display:grid}.notes-sidebar{flex-direction:column;gap:10px;min-height:0;display:flex}.notes-add-btn{border:1px solid var(--border-color);color:var(--text-primary);cursor:pointer;background:0 0;border-radius:8px;flex-shrink:0;align-items:center;gap:6px;padding:10px 12px;font-family:inherit;font-size:.85rem;font-weight:500;transition:background .2s;display:flex}.notes-add-btn svg{width:16px;height:16px}.notes-add-btn:hover{background:var(--sidebar-hover)}.notes-list{scrollbar-width:none;flex-direction:column;flex:1;gap:4px;display:flex;overflow-y:auto}.notes-list::-webkit-scrollbar{display:none}.notes-empty{color:var(--text-secondary);text-align:center;padding:16px 0;font-size:.82rem}.notes-item{cursor:pointer;border-radius:8px;padding:10px 12px;transition:background .15s;position:relative}.notes-item:hover,.notes-item.active{background:var(--sidebar-hover)}.notes-item-title{color:var(--text-primary);white-space:nowrap;text-overflow:ellipsis;margin-bottom:2px;padding-right:24px;font-size:.85rem;font-weight:600;overflow:hidden}.notes-item-preview{color:var(--text-secondary);white-space:nowrap;text-overflow:ellipsis;font-size:.75rem;overflow:hidden}.notes-item-delete{width:28px;height:28px;color:var(--text-secondary);cursor:pointer;opacity:0;background:0 0;border:none;border-radius:6px;justify-content:center;align-items:center;transition:opacity .15s,color .2s;display:flex;position:absolute;top:50%;right:8px;transform:translateY(-50%)}.notes-item:hover .notes-item-delete{opacity:1}.notes-item-delete svg{width:18px;height:18px}.notes-item-delete:hover{color:var(--color-danger)}.notes-editor{flex-direction:column;display:flex}.notes-editor-inner{flex-direction:column;flex:1;display:flex}.notes-title-input{border:1px solid var(--border-color);color:var(--text-primary);background:0 0;border-bottom:none;border-radius:8px 8px 0 0;outline:none;padding:10px 14px;font-family:inherit;font-size:1rem;font-weight:600;transition:border-color .2s}.notes-title-input:focus{border-color:var(--border-color);outline:none}.notes-title-input::placeholder{color:var(--text-secondary);opacity:.6}.notes-textarea{border:1px solid var(--border-color);min-height:200px;color:var(--text-primary);resize:none;background:0 0;border-radius:0 0 8px 8px;outline:none;flex:1;padding:14px;font-family:inherit;font-size:.88rem;transition:border-color .2s}.notes-textarea:focus{border-color:var(--border-color);outline:none}.notes-placeholder{color:var(--text-secondary);border:1px solid var(--border-color);border-radius:8px;flex:1;justify-content:center;align-items:center;min-height:200px;font-size:.88rem;display:flex}.calc-layout{grid-template-columns:1fr 280px 240px;gap:16px;height:100%;display:grid}.calc-left{flex-direction:column;min-height:0;display:flex}.calc-card{border:1px solid var(--border-color);border-radius:12px;flex-direction:column;flex:1;min-height:0;padding:16px;display:flex}.calc-display{cursor:pointer;border:1px solid var(--border-color);background:#ffffff05;border-radius:10px;flex-direction:column;justify-content:flex-end;align-items:flex-end;min-height:110px;margin-bottom:14px;padding:20px 16px;transition:border-color .2s;display:flex;position:relative}[data-theme=light] .calc-display{background:#00000005}.calc-display:hover{border-color:var(--text-secondary)}.calc-expression{color:var(--text-secondary);word-break:break-all;text-align:right;background:0 0;border:none;outline:none;width:100%;padding:0;font-family:inherit;font-size:.88rem}.calc-result{color:var(--text-primary);font-size:1.8rem;font-weight:700}.calc-toast{background:var(--accent);color:#fff;pointer-events:none;border-radius:6px;padding:4px 14px;font-size:.75rem;font-weight:600;animation:1.5s forwards toastFade;position:absolute;top:10px;left:50%;transform:translate(-50%)}@keyframes toastFade{0%{opacity:0;transform:translate(-50%)translateY(4px)}15%{opacity:1;transform:translate(-50%)translateY(0)}70%{opacity:1}to{opacity:0}}.calc-buttons{flex-direction:column;flex:1;gap:8px;display:flex}.calc-row{grid-template-columns:repeat(5,1fr);gap:8px;display:grid}.calc-btn{background:var(--sidebar-hover);color:var(--text-primary);cursor:pointer;border:none;border-radius:10px;justify-content:center;align-items:center;padding:14px 0;font-family:inherit;font-size:.95rem;font-weight:500;transition:background .15s,transform .1s,box-shadow .15s;display:flex;box-shadow:0 1px 2px #0000000a}.calc-btn:hover{background:var(--border-color);box-shadow:0 2px 4px #0000000f}.calc-btn:active{box-shadow:none;transform:scale(.95)}.calc-btn.op{color:var(--accent);background:#f973161a}.calc-btn.op:hover{background:#f973162e}.calc-btn.equals{background:var(--accent);color:#fff;font-weight:600}.calc-btn.equals:hover{opacity:.85}.calc-btn.clear{color:var(--color-danger);background:#ef444414}.calc-btn.clear:hover{background:#ef444426}.calc-btn.special{color:var(--text-secondary);font-size:.82rem}.calc-btn.special:hover{color:var(--text-primary)}.calc-btn.back svg{width:18px;height:18px}.calc-notes{border:1px solid var(--border-color);border-radius:12px;flex-direction:column;min-height:0;padding:16px;display:flex}.calc-notes-label{color:var(--text-primary);margin-bottom:10px;font-size:.88rem;font-weight:600}.calc-notes-textarea{min-height:0;color:var(--text-primary);resize:none;scrollbar-width:none;background:0 0;border:none;border-radius:0;outline:none;flex:1;padding:0;font-family:inherit;font-size:.88rem}.calc-notes-textarea::-webkit-scrollbar{display:none}.calc-notes-textarea:focus{outline:none}.calc-notes-textarea::placeholder{color:var(--text-secondary);opacity:.6}.calc-right{border:1px solid var(--border-color);border-radius:12px;flex-direction:column;min-height:0;padding:16px;display:flex}.calc-history-header{justify-content:space-between;align-items:center;margin-bottom:10px;display:flex}.calc-history-header h4{color:var(--text-primary);margin:0;font-size:.88rem;font-weight:600}.calc-clear-history{color:var(--color-danger);cursor:pointer;background:0 0;border:none;font-family:inherit;font-size:.78rem;font-weight:500;transition:opacity .2s}.calc-clear-history:hover{opacity:.8}.calc-history-list{scrollbar-width:none;flex-direction:column;flex:1;gap:6px;min-height:0;display:flex;overflow-y:auto}.calc-history-list::-webkit-scrollbar{display:none}.calc-empty{color:var(--text-secondary);text-align:center;padding:16px 0;font-size:.82rem}.calc-history-item{border:1px solid var(--border-color);cursor:pointer;border-radius:8px;padding:10px 12px;transition:background .15s,border-color .15s}.calc-history-item:hover{background:var(--sidebar-hover);border-color:#0000}.calc-history-top{justify-content:space-between;align-items:center;gap:8px;display:flex}.calc-history-expr{color:var(--text-secondary);text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:.78rem;overflow:hidden}.calc-history-delete{width:20px;height:20px;color:var(--text-secondary);cursor:pointer;opacity:0;background:0 0;border:none;border-radius:4px;flex-shrink:0;justify-content:center;align-items:center;transition:opacity .15s,color .15s,background .15s;display:flex}.calc-history-delete svg{width:12px;height:12px}.calc-history-item:hover .calc-history-delete{opacity:1}.calc-history-delete:hover{color:var(--color-danger);background:#ef44441f}.calc-history-result{color:var(--text-primary);font-size:.95rem;font-weight:600}.calc-history-time{color:var(--text-secondary);opacity:.5;margin-top:2px;font-size:.7rem}.edit-profile-layout{max-width:480px}.edit-profile-form{flex-direction:column;gap:14px;display:flex}.edit-row{grid-template-columns:1fr 1fr;gap:14px;display:grid}.edit-field{flex-direction:column;gap:5px;display:flex}.edit-field label{text-transform:uppercase;letter-spacing:.5px;color:var(--text-secondary);font-size:.72rem;font-weight:600}.edit-field input,.edit-field .custom-select-trigger{border:1px solid var(--border-color);color:var(--text-primary);background:0 0;border-radius:8px;outline:none;padding:10px 12px;font-family:inherit;font-size:.88rem;transition:border-color .2s}.edit-field input:focus,.edit-field .custom-select-trigger:not(.disabled):hover{border-color:var(--accent)}.edit-field .custom-select-trigger{background:0 0}.edit-actions{align-items:center;gap:12px;margin-top:4px;display:flex}.edit-saved-msg{color:var(--color-success);font-size:.85rem;font-weight:500;transition:color .3s}.edit-save-btn{background:var(--accent);color:#fff;cursor:pointer;border:none;border-radius:8px;margin-left:auto;padding:10px 20px;font-family:inherit;font-size:.88rem;font-weight:500;transition:opacity .2s}.edit-save-btn:hover{opacity:.9}.edit-save-btn:disabled{opacity:.5;cursor:not-allowed}@media (max-width:768px){.tabs-card{border-radius:0;padding:0}.tabs-card-body{padding:12px}}.notes-empty,.notes-item-title,.notes-item-preview,.notes-placeholder,.calc-expression,.calc-result,.calc-notes-label,.calc-notes-textarea,.calc-empty,.calc-history-expr,.calc-history-result,.calc-history-time{transition:color .3s}.tabs-card-header,.calc-card,.calc-notes,.calc-right{transition:border-color .3s}.calc-toast{transition:background .3s}@keyframes skeleton-shimmer{0%{background-position:-200% 0}to{background-position:200% 0}}.skeleton{background:linear-gradient(90deg, var(--border-color) 25%, #ffffff0d 50%, var(--border-color) 75%);background-size:200% 100%;border-radius:6px;animation:1.5s ease-in-out infinite skeleton-shimmer}[data-theme=light] .skeleton{background:linear-gradient(90deg, var(--border-color) 25%, #00000008 50%, var(--border-color) 75%);background-size:200% 100%}.skeleton-icon{border-radius:6px;flex-shrink:0;width:28px;height:28px}.skeleton-text{border-radius:4px;height:12px;display:block}.sidebar-skeleton-item{border-radius:10px;align-items:center;gap:12px;min-height:36px;margin:0 4px;padding:8px 12px;display:flex}.filter-sidebar{background:var(--header-bg);width:240px;box-shadow:var(--card-shadow);border-radius:12px;flex-direction:column;flex-shrink:0;transition:background .3s,box-shadow .3s;display:flex;overflow:hidden}.filter-sidebar.disabled .filter-sidebar-body{opacity:.55}.filter-sidebar-header{flex-shrink:0;justify-content:space-between;align-items:center;padding:14px 16px 10px;transition:border-color .3s;display:flex;position:relative}.filter-sidebar-header:after{content:"";background:var(--border-color);height:1px;transition:background .3s;position:absolute;bottom:0;left:16px;right:16px}.filter-sidebar-header h3{letter-spacing:.01em;color:var(--text-primary);margin:0;font-size:.95rem;font-weight:700}.filter-sidebar-clear{color:var(--color-danger);cursor:pointer;background:0 0;border:none;padding:2px 0 2px 8px;font-family:inherit;font-size:.72rem;font-weight:600;transition:background .15s,border-radius .15s}.filter-sidebar-clear:hover{background:var(--sidebar-hover);border-radius:var(--radius-sm)}.filter-sidebar-body{flex:1;min-height:0;padding:14px 16px 16px;transition:opacity .2s;overflow-y:auto}.filter-sidebar-body::-webkit-scrollbar{width:4px}.filter-sidebar-body::-webkit-scrollbar-track{background:0 0}.filter-sidebar-body::-webkit-scrollbar-thumb{background:var(--border-color);border-radius:2px}.filter-sidebar-search{align-items:center;margin-bottom:18px;display:flex;position:relative}.filter-sidebar-search svg{width:14px;height:14px;color:var(--text-secondary);pointer-events:none;position:absolute;left:10px}.filter-sidebar-search input{background:var(--content-bg);border:1px solid var(--border-color);width:100%;height:34px;color:var(--text-primary);border-radius:8px;outline:none;padding:0 10px 0 30px;font-family:inherit;font-size:.8rem;transition:background .3s,border-color .15s,color .3s}.filter-sidebar-search input:focus{border-color:var(--border-color)}.filter-sidebar-search input::placeholder{color:var(--text-secondary)}.filter-sidebar-section{margin-bottom:18px}.filter-sidebar-section:last-child{margin-bottom:0}.filter-sidebar-section-header{cursor:pointer;text-align:left;-webkit-user-select:none;user-select:none;background:0 0;border:none;align-items:center;width:100%;padding:0 0 10px;font-family:inherit;display:flex}.filter-sidebar-section-header:disabled{cursor:default}.filter-sidebar-section-title{color:var(--text-primary);align-items:center;gap:6px;font-size:.8rem;font-weight:600;display:flex}.filter-sidebar-chevron{width:13px;height:13px;color:var(--text-secondary);transition:transform .2s}.filter-sidebar-chevron.collapsed{transform:rotate(-90deg)}.filter-sidebar-section-body{opacity:1;flex-direction:column;gap:2px;max-height:400px;transition:max-height .25s,opacity .2s;display:flex;overflow:hidden}.filter-sidebar-section-body.collapsed{opacity:0;pointer-events:none;max-height:0}.filter-sidebar-checkbox{cursor:pointer;border-radius:7px;align-items:center;gap:9px;padding:6px;transition:background .1s;display:flex}.filter-sidebar-checkbox:hover{background:var(--sidebar-hover)}.filter-sidebar-checkbox input[type=checkbox]{opacity:0;pointer-events:none;width:1px;height:1px;margin:0;position:absolute}.filter-sidebar-checkbox-box{border:1.5px solid var(--border-color);background:var(--content-bg);border-radius:5px;flex-shrink:0;justify-content:center;align-items:center;width:16px;height:16px;transition:background .12s,border-color .12s;display:flex}.filter-sidebar-checkbox-box svg{color:#fff;opacity:0;width:10px;height:10px;transition:opacity .12s,transform .12s;transform:scale(.6)}.filter-sidebar-checkbox input[type=checkbox]:checked+.filter-sidebar-checkbox-box{background:var(--accent);border-color:var(--accent)}.filter-sidebar-checkbox input[type=checkbox]:checked+.filter-sidebar-checkbox-box svg{opacity:1;transform:scale(1)}.filter-sidebar-checkbox input[type=checkbox]:focus-visible+.filter-sidebar-checkbox-box{outline:2px solid var(--accent);outline-offset:2px}.filter-sidebar-checkbox input[type=checkbox]:disabled+.filter-sidebar-checkbox-box{opacity:.5}.filter-sidebar-checkbox-label{color:var(--text-secondary);white-space:nowrap;text-overflow:ellipsis;flex:1;font-size:.8rem;transition:color .12s;overflow:hidden}.filter-sidebar-checkbox input[type=checkbox]:checked~.filter-sidebar-checkbox-label{color:var(--text-primary);font-weight:500}.filter-sidebar-checkbox-count{color:var(--text-secondary);opacity:.65;font-variant-numeric:tabular-nums;font-size:.68rem;font-weight:500}.filter-sidebar-price-labels{justify-content:space-between;align-items:center;margin-top:-4px;padding:0 2px;display:flex}.filter-sidebar-price-labels span{color:var(--text-secondary);font-variant-numeric:tabular-nums;font-size:.72rem;font-weight:500}.range-slider{height:18px;margin:8px 2px 14px;position:relative}.range-slider-track{background:var(--border-color);border-radius:2px;height:4px;position:absolute;top:50%;left:0;right:0;transform:translateY(-50%)}.range-slider-fill{background:var(--accent);border-radius:2px;height:4px;position:absolute;top:50%;transform:translateY(-50%)}.range-slider input[type=range]{-webkit-appearance:none;appearance:none;pointer-events:none;background:0 0;outline:none;width:100%;height:18px;margin:0;position:absolute;top:50%;left:0;transform:translateY(-50%)}.range-slider input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;pointer-events:auto;background:var(--accent);border:2px solid var(--header-bg);width:15px;height:15px;box-shadow:0 0 0 1.5px var(--accent);cursor:grab;border-radius:50%;transition:transform .1s}.range-slider input[type=range]:active::-webkit-slider-thumb{cursor:grabbing;transform:scale(1.15)}.range-slider input[type=range]::-moz-range-thumb{pointer-events:auto;background:var(--accent);border:2px solid var(--header-bg);width:11px;height:11px;box-shadow:0 0 0 1.5px var(--accent);cursor:grab;border-radius:50%}.range-slider input[type=range]:active::-moz-range-thumb{cursor:grabbing}.range-slider input[type=range]:disabled::-webkit-slider-thumb{opacity:.45;cursor:default}.range-slider input[type=range]:disabled::-moz-range-thumb{opacity:.45;cursor:default}.range-slider.disabled{opacity:.6}.range-slider-tooltip{background:var(--accent);color:#fff;white-space:nowrap;pointer-events:none;z-index:5;font-variant-numeric:tabular-nums;border-radius:6px;padding:4px 8px;font-size:.68rem;font-weight:600;line-height:1;position:absolute;bottom:calc(100% + 7px);transform:translate(-50%)}.range-slider-tooltip:after{content:"";border:4px solid #0000;border-top-color:var(--accent);position:absolute;top:100%;left:50%;transform:translate(-50%)}@media (max-width:1024px){.filter-sidebar{width:220px}}@media (max-width:768px){.filter-sidebar{width:100%;max-height:300px}}.filter-sidebar-section-title,.filter-sidebar-checkbox-count{transition:color .3s}.range-slider-track,.range-slider-fill,.range-slider-tooltip{transition:background .3s}.toast-container{z-index:9999;pointer-events:none;position:fixed;bottom:24px;left:50%;transform:translate(-50%)}.toast{white-space:nowrap;pointer-events:auto;border-radius:8px;align-items:center;gap:8px;padding:10px 18px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-size:.82rem;font-weight:500;animation:.3s forwards toastSlideUp;display:flex;box-shadow:0 4px 16px #00000026}.toast-exit{animation:.3s forwards toastSlideDown}.toast-icon{flex-shrink:0;align-items:center;display:flex}.toast-success{background:var(--color-success);color:#fff}.toast-error{background:var(--color-danger-dark);color:#fff}.toast-info{color:#fff;background:#2563eb}@media (max-width:480px){.toast-container{bottom:8px;left:8px;right:8px}}.empty-state{text-align:center;flex-direction:column;justify-content:center;align-items:center;min-height:200px;padding:40px 20px;display:flex}.empty-state-icon{width:48px;height:48px;color:var(--text-muted);margin-bottom:12px}.empty-state-icon svg{width:100%;height:100%}.empty-state-title{font-size:var(--font-md);color:var(--text-primary);margin:0 0 4px;font-weight:600}.empty-state-subtitle{font-size:var(--font-sm);color:var(--text-muted);max-width:320px;margin:0 0 16px}.empty-state-actions{align-items:center;gap:8px;display:flex}@media (max-width:480px){.empty-state{min-height:120px;padding:24px 12px}}.empty-state-title{transition:color .3s}.staff-page{flex-direction:column;flex:1;gap:12px;min-height:0;margin:-32px;padding:12px 12px 12px 0;transition:background .3s,color .3s;display:flex;overflow:hidden}.staff-body{flex-direction:column;flex:1;gap:12px;min-height:0;display:flex}.staff-content{flex-direction:column;flex:1;gap:12px;min-width:0;min-height:0;transition:background .3s;display:flex}.staff-top-card{background:var(--sidebar-card-bg);border-radius:var(--sidebar-card-radius);box-shadow:var(--card-shadow);justify-content:space-between;align-items:center;padding:6px;transition:background .3s,box-shadow .3s;display:flex}.staff-top-card-left{border-radius:10px;align-items:center;gap:8px;min-height:36px;margin:0 4px;padding:8px 12px 8px 13px;display:flex}.staff-title{font-size:var(--h1);color:var(--sidebar-text-active);white-space:nowrap;margin:0;font-weight:700;line-height:1}.staff-count-badge{background:var(--border-color);min-width:20px;height:20px;color:var(--text-secondary);border-radius:5px;justify-content:center;align-items:center;padding:0 6px;font-size:.68rem;font-weight:600;display:inline-flex}.staff-top-card-right-group{border-radius:10px;align-items:center;gap:10px;min-height:44px;margin:0 4px;padding:8px 12px;display:flex}.staff-separator{background:var(--border-color);flex-shrink:0;width:1px;height:16px}.staff-top-divider{background:var(--border-color);width:1px;height:20px;margin:0 4px;transition:background .3s}.staff-add-btn{background:var(--content-bg);height:28px;color:var(--text-secondary);cursor:pointer;white-space:nowrap;border:none;border-radius:6px;justify-content:center;align-items:center;gap:5px;padding:0 12px;font-family:inherit;font-size:.78rem;font-weight:500;transition:background 95ms,color 95ms;display:flex}.staff-add-btn svg{width:13px;height:13px}.staff-add-btn:hover{background:var(--sidebar-hover);color:var(--text-primary)}.staff-add-btn:active{transform:scale(.97)}.staff-add-btn:disabled{opacity:.5;cursor:not-allowed}.staff-add-btn:disabled:hover{opacity:.5}.staff-add-btn:disabled:active{transform:none}.staff-table-card{background:var(--header-bg);box-shadow:var(--card-shadow);border-radius:12px;flex-direction:column;flex:1;min-height:0;padding:0 12px;transition:background .3s,box-shadow .3s;display:flex;overflow:hidden}.staff-table-wrapper{background:0 0;flex:1;min-height:0;padding:0;overflow:auto}.staff-table{border-collapse:separate;border-spacing:0;table-layout:fixed;width:100%;font-size:.85rem}.staff-table .col-name{width:280px}.staff-table .col-contact{width:200px}.staff-table .col-schedule{text-align:center;width:280px}.staff-table .col-actions{text-align:center;width:48px;padding:0 8px!important}.staff-table thead{z-index:1;background:var(--header-bg);transition:background .3s;position:sticky;top:0}.staff-table thead tr{border-bottom:none}.staff-table th{text-align:left;text-transform:uppercase;letter-spacing:.6px;color:var(--text-tertiary);white-space:nowrap;border-bottom:1px solid var(--border-color);padding:12px 24px;font-size:.7rem;font-weight:600;transition:background .3s,color .3s,border-color .3s}.staff-table td{border-bottom:1px solid var(--border-color);color:var(--text-primary);vertical-align:middle;padding:14px 24px;transition:background .3s,color .3s,border-color .3s}.staff-table tbody tr:last-child td{border-bottom:none}.staff-table tbody tr{transition:background .12s}.staff-table tbody tr:hover,[data-theme=light] .staff-table tbody tr:hover{background:var(--sidebar-hover)}.col-schedule{white-space:nowrap}.staff-schedule-cell{background:var(--content-bg);border-radius:6px;align-items:center;gap:2px;padding:2px;display:inline-flex}.schedule-dot{width:26px;height:22px;color:var(--text-tertiary);cursor:default;background:0 0;border-radius:4px;justify-content:center;align-items:center;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-size:.65rem;font-weight:600;transition:all .12s;display:flex}.schedule-dot.active{background:var(--header-bg);color:var(--accent);box-shadow:0 1px 3px #00000014}.staff-name-cell{align-items:center;gap:12px;display:flex}.staff-avatar{background:linear-gradient(135deg, var(--accent-light), var(--accent));border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;width:38px;height:38px;display:flex;overflow:hidden}.staff-avatar-initials{color:#fff;font-size:.8rem;font-weight:700;line-height:1;transition:color .3s}.staff-avatar svg{width:20px;height:20px;color:var(--accent)}.staff-avatar img{object-fit:cover;width:100%;height:100%}.staff-name-info{flex-direction:column;gap:3px;min-width:0;display:flex}.staff-name-text{color:var(--text-primary);white-space:nowrap;text-overflow:ellipsis;font-size:.88rem;font-weight:600;overflow:hidden}.staff-role-label{color:var(--text-secondary);align-items:center;gap:5px;font-size:.72rem;font-weight:500;display:inline-flex}.role-dot{border-radius:50%;flex-shrink:0;width:6px;height:6px}.role-admin{background:var(--color-danger);transition:background .3s}.role-manager{background:var(--color-warning);transition:background .3s}.role-staff{background:var(--color-info);transition:background .3s}.staff-email-text{color:var(--text-tertiary);white-space:nowrap;text-overflow:ellipsis;font-size:.78rem;overflow:hidden}.staff-contact-cell{flex-direction:column;gap:2px;min-width:0;display:flex}.staff-phone-text{color:var(--text-primary);white-space:nowrap;text-overflow:ellipsis;font-size:.84rem;font-weight:500;overflow:hidden}.col-actions{text-align:center;width:60px}.staff-menu-wrapper{display:inline-flex;position:relative}.staff-kebab-btn{width:32px;height:32px;color:var(--text-tertiary);cursor:pointer;background:0 0;border:none;border-radius:8px;justify-content:center;align-items:center;transition:all .12s;display:flex}.staff-kebab-btn svg{width:16px;height:16px}.staff-kebab-btn:hover{background:var(--sidebar-hover);color:var(--text-primary)}.staff-dropdown-item{width:100%;color:var(--text-primary);cursor:pointer;text-align:left;border-radius:var(--radius-sm);background:0 0;border:none;align-items:center;gap:8px;padding:8px 12px;font-family:inherit;font-size:.82rem;transition:background .12s;display:flex}.staff-dropdown-item:hover{background:var(--sidebar-hover)}.staff-dropdown-item svg{width:15px;height:15px;color:var(--text-tertiary);flex-shrink:0}.staff-dropdown-item.danger,.staff-dropdown-item.danger svg{color:var(--color-danger)}.staff-dropdown-item.danger:hover{background:#ef444414}.staff-dropdown-item.warning,.staff-dropdown-item.warning svg{color:var(--color-warning,#f59e0b)}.staff-dropdown-item.warning:hover{background:#f59e0b14}.staff-dropdown-item.success,.staff-dropdown-item.success svg{color:var(--color-success,#22c55e)}.staff-dropdown-item.success:hover{background:#22c55e14}.inactive-row{opacity:.5}.inactive-badge{text-transform:uppercase;letter-spacing:.03em;color:var(--color-danger,#ef4444);vertical-align:middle;background:#ef44441f;border-radius:4px;margin-left:6px;padding:1px 6px;font-size:.65rem;font-weight:600;display:inline-block}.staff-empty{text-align:center;flex-direction:column;justify-content:center;align-items:center;min-height:320px;padding:40px 20px;display:flex}.staff-empty-icon{background:var(--content-bg);border-radius:16px;justify-content:center;align-items:center;width:64px;height:64px;margin-bottom:16px;display:flex}.staff-empty-icon svg{width:32px;height:32px;color:var(--text-tertiary)}.staff-empty h3{color:var(--text-primary);margin-bottom:6px;font-size:1rem;font-weight:600}.staff-empty p{color:var(--text-tertiary);max-width:280px;font-size:.85rem;line-height:1.5}.staff-loading{text-align:center;flex-direction:column;flex:1;justify-content:center;align-items:center;min-height:0;display:flex}.staff-loading p{color:var(--text-secondary);margin-top:12px;font-size:.85rem}.staff-status-error{flex:1;justify-content:center;align-items:center;min-height:0;display:flex}@keyframes staffRowIn{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}.staff-table tbody tr{animation:.4s both staffRowIn}.staff-table tbody tr:first-child{animation-delay:0s}.staff-table tbody tr:nth-child(2){animation-delay:50ms}.staff-table tbody tr:nth-child(3){animation-delay:.1s}.staff-table tbody tr:nth-child(4){animation-delay:.15s}.staff-table tbody tr:nth-child(5){animation-delay:.2s}.staff-table tbody tr:nth-child(6){animation-delay:.25s}.staff-table tbody tr:nth-child(7){animation-delay:.3s}.staff-table tbody tr:nth-child(8){animation-delay:.35s}.staff-table tbody tr:nth-child(9){animation-delay:.4s}.staff-table tbody tr:nth-child(10){animation-delay:.45s}.staff-table tbody tr:nth-child(11){animation-delay:.5s}.staff-table tbody tr:nth-child(12){animation-delay:.55s}.staff-table tbody tr:nth-child(13){animation-delay:.6s}.staff-table tbody tr:nth-child(14){animation-delay:.65s}.staff-table tbody tr:nth-child(15){animation-delay:.7s}.staff-table tbody tr:nth-child(16){animation-delay:.75s}.staff-table tbody tr:nth-child(17){animation-delay:.8s}.staff-table tbody tr:nth-child(18){animation-delay:.85s}.staff-table tbody tr:nth-child(19){animation-delay:.9s}.staff-table tbody tr:nth-child(20){animation-delay:.95s}@media (max-width:768px){.staff-page{margin:0;padding:12px}.staff-top-card{flex-direction:column;align-items:stretch;gap:8px}.staff-top-card-left{justify-content:center}.staff-top-card-right-group{flex-wrap:wrap;justify-content:center}.staff-table-wrapper{overflow-x:auto}.staff-table{min-width:600px}.staff-table th,.staff-table td{padding:12px 16px}.staff-modal{border-radius:var(--radius-lg);width:100%;max-width:calc(100vw - 32px);margin:12px}}.staff-modal-overlay{z-index:1000;will-change:opacity;background:#00000073;justify-content:flex-end;align-items:stretch;animation:.2s forwards confirmFadeIn;display:flex;position:fixed;top:0;bottom:0;left:0;right:0}.staff-modal-overlay.closing{animation:.15s forwards confirmFadeOut}.staff-modal{background:var(--header-bg);border-radius:var(--radius-lg);will-change:transform;flex-direction:column;width:480px;max-width:90vw;height:auto;margin:12px 12px 12px 0;animation:.2s forwards staffSlideInRight;display:flex;overflow:hidden;box-shadow:0 4px 24px #0000001f}.staff-modal.closing{animation:.15s forwards staffSlideOutRight}@keyframes staffSlideInRight{0%{transform:translate(100%)}to{transform:translate(0)}}@keyframes staffSlideOutRight{0%{transform:translate(0)}to{transform:translate(100%)}}.staff-modal .staff-form-panel-inner{flex-direction:column;width:100%;min-width:0;height:100%;display:flex}.staff-modal .inventory-add-header{flex-shrink:0}.staff-modal .inventory-add-body{scrollbar-width:none;flex-direction:column;flex:1;gap:12px;min-height:0;padding:16px 20px 20px;display:flex;overflow-y:auto}.staff-modal .inventory-add-body::-webkit-scrollbar{display:none}.staff-modal .inventory-add-section{border:1px solid var(--border-color);border-radius:10px;padding:16px;box-shadow:0 1px 3px #0000000f}.staff-modal-page-access-row{align-items:flex-end;gap:16px;margin-bottom:12px;display:flex}.staff-modal-page-access-row>.inventory-add-field{flex:1;margin-bottom:0}.staff-modal-page-access-inline{flex-direction:column;flex-shrink:0;gap:5px;display:flex}.staff-modal-page-access-inline label{color:var(--text-secondary);font-size:.75rem;font-weight:500}.staff-modal .inventory-add-row:last-child,.staff-modal .inventory-add-row>.inventory-add-field:last-child{margin-bottom:0}.staff-modal .inventory-add-footer{border-top:1px solid var(--border-color);background:var(--header-bg);border-radius:0 0 16px 16px;flex-shrink:0;padding:14px 20px}.staff-modal .inventory-add-footer .inventory-form-cancel-btn{border:1px solid var(--border-color);height:40px;color:var(--text-secondary);cursor:pointer;background:0 0;border-radius:8px;flex:1;padding:0 16px;font-family:inherit;font-size:.85rem;font-weight:500;transition:background .12s,color .12s,border-color .12s}.staff-modal .inventory-add-footer .inventory-form-cancel-btn:hover{background:var(--sidebar-hover);color:var(--text-primary)}.staff-modal .inventory-add-footer .inventory-add-submit-btn{background:var(--accent);color:#fff;cursor:pointer;border:none;border-radius:8px;flex:1;justify-content:center;align-items:center;gap:6px;height:40px;padding:0 20px;font-family:inherit;font-size:.85rem;font-weight:600;transition:opacity .12s,transform .1s;display:flex}.staff-modal .inventory-add-footer .inventory-add-submit-btn svg{width:16px;height:16px}.staff-modal .inventory-add-footer .inventory-add-submit-btn:hover{opacity:.9}.staff-modal .inventory-add-footer .inventory-add-submit-btn:active{transform:scale(.98)}.staff-modal .inventory-add-footer .inventory-add-submit-btn:disabled{opacity:.5;cursor:not-allowed}.staff-modal .form-fieldset{border:none;margin:0;padding:0}.staff-modal .schedule-days{gap:6px;display:flex}.staff-modal .schedule-day-btn{border:1px solid var(--border-color);background:var(--header-bg);width:40px;height:36px;color:var(--text-secondary);cursor:pointer;border-radius:8px;justify-content:center;align-items:center;font-size:.8rem;font-weight:500;transition:all .15s;display:flex}.staff-modal .schedule-day-btn:hover{background:var(--sidebar-hover);color:var(--text-primary)}.staff-modal .schedule-day-btn.active{background:var(--accent);border-color:var(--accent);color:#fff}.staff-modal .page-permissions{gap:8px;display:flex}.staff-modal .page-perm-btn{border:1.5px solid var(--border-color);background:var(--header-bg);width:42px;height:42px;color:var(--text-muted);cursor:pointer;border-radius:12px;justify-content:center;align-items:center;transition:all .2s;display:flex}.staff-modal .page-perm-btn svg{width:20px;height:20px}.staff-modal .page-perm-btn:hover:not(:disabled){border-color:var(--accent);color:var(--accent);background:#e6394614}.staff-modal .page-perm-btn.active{background:var(--accent);border-color:var(--accent);color:#fff;box-shadow:0 2px 8px #e639464d}.staff-modal .page-perm-btn.active:hover:not(:disabled){background:var(--accent-dark);border-color:var(--accent-dark)}.staff-modal .page-perm-btn:disabled{opacity:.3;cursor:not-allowed}.staff-modal .page-perm-btn:disabled:hover{background:var(--header-bg);color:var(--text-muted);border-color:var(--border-color)}.staff-modal .page-perm-btn.active:disabled{background:var(--accent);border-color:var(--accent);color:#fff;opacity:.6}.staff-modal .flex-row{align-items:center;gap:8px;display:flex}.staff-modal .flex-row-relative{position:relative}.staff-modal .flex-row-relative input{width:100%;padding-right:40px}.staff-modal .staff-form-email-btn{background:var(--sidebar-hover);border:1px solid var(--border-color);width:36px;height:36px;color:var(--text-secondary);cursor:pointer;border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;transition:all .15s;display:flex}.staff-modal .staff-form-email-btn:hover{background:var(--accent);border-color:var(--accent);color:#fff}.staff-modal .staff-form-email-btn svg{width:16px;height:16px}.staff-modal .staff-form-success{text-align:center;flex-direction:column;align-items:center;gap:12px;padding:24px;display:flex}.staff-modal .staff-form-success svg{width:48px;height:48px;color:var(--color-success)}.staff-modal .staff-form-success p{color:var(--text-secondary);font-size:.9rem}.staff-modal .staff-form-success strong{color:var(--text-primary)}.staff-modal .staff-form-password-box{background:var(--content-bg);border:1px solid var(--border-color);border-radius:10px;padding:16px}.staff-modal .staff-form-password-box .form-label{color:var(--text-secondary);margin-bottom:8px;font-size:.75rem;font-weight:500;display:block}.staff-modal .staff-form-password-row{align-items:center;gap:8px;display:flex}.staff-modal .staff-form-password-value{background:var(--header-bg);border:1px solid var(--border-color);color:var(--text-primary);word-break:break-all;border-radius:6px;flex:1;padding:8px 12px;font-family:SF Mono,Fira Code,monospace;font-size:.85rem}.staff-modal .staff-form-copy-btn{background:var(--accent);color:#fff;cursor:pointer;border:none;border-radius:6px;padding:8px 12px;font-size:.8rem;font-weight:500;transition:opacity .15s}.staff-modal .staff-form-copy-btn:hover{opacity:.9}.staff-modal .form-hint{color:var(--text-tertiary);margin-top:6px;font-size:.72rem;display:block}.staff-modal .staff-form-reset-banner{background:var(--content-bg);border:1px dashed var(--border-color);width:100%;color:var(--text-secondary);cursor:pointer;border-radius:8px;justify-content:center;align-items:center;gap:8px;padding:10px 16px;font-size:.82rem;font-weight:500;transition:all .15s;display:flex}.staff-modal .staff-form-reset-banner:hover{background:var(--sidebar-hover);border-color:var(--accent);color:var(--accent)}.staff-modal .staff-form-reset-banner svg{width:16px;height:16px}.staff-modal .staff-form-checkbox-label{color:var(--text-secondary);cursor:pointer;align-items:center;gap:8px;font-size:.82rem;display:flex}.staff-modal .staff-form-checkbox-label input[type=checkbox]{width:16px;height:16px;accent-color:var(--accent)}.staff-form-panel-inner{flex-direction:column;width:100%;min-width:0;height:100%;min-height:0;display:flex}.staff-form-body .flex-row-relative{height:37px}.staff-form-body .form-input{width:100%}.staff-form-header{display:none}.staff-form-header h3{color:var(--text-primary);font-size:1.1rem;font-weight:600}.staff-form-body,.staff-form-fields{display:none}.staff-form-body>:not(.staff-form-fields):not(.staff-form-actions):not(.staff-form-error){flex-shrink:0}.staff-form-error{color:var(--color-danger);background:#ef44441a;border:1px solid #ef444440;border-radius:8px;align-items:center;gap:8px;margin-bottom:18px;padding:10px 14px;font-size:.84rem;transition:background .3s,color .3s;display:flex}.staff-form-error svg{flex-shrink:0;width:16px;height:16px}.staff-form-actions{display:none}.staff-form-actions .btn-edit{border:1px solid var(--border-color);height:40px;color:var(--text-secondary);cursor:pointer;white-space:nowrap;background:0 0;border-radius:8px;flex:1;padding:0 16px;font-family:inherit;font-size:.85rem;font-weight:500;transition:background .12s,color .12s}.staff-form-actions .btn-edit:hover{background:var(--sidebar-hover);color:var(--text-primary)}.staff-form-submit{background:var(--accent);color:#fff;cursor:pointer;opacity:.9;border:none;border-radius:8px;flex:1;justify-content:center;align-items:center;gap:6px;height:40px;padding:0 16px;font-family:inherit;font-size:.85rem;font-weight:500;transition:opacity .15s;display:flex}.staff-form-submit:hover{opacity:1}.staff-form-submit:disabled{opacity:.5;cursor:not-allowed}.staff-form-success{text-align:center;flex-direction:column;align-items:center;padding:8px 0 16px;display:flex}.staff-form-success svg{width:48px;height:48px;color:var(--color-success);margin-bottom:12px;transition:color .3s}.staff-form-success p{color:var(--text-secondary);font-size:.9rem}.staff-form-success strong{color:var(--text-primary)}.staff-form-password-box{background:var(--content-bg);border:1px solid var(--border-color);border-radius:8px;margin-bottom:8px;padding:14px}.staff-form-password-box label{text-transform:uppercase;letter-spacing:.5px;color:var(--text-secondary);margin-bottom:8px;font-size:.75rem;font-weight:600;display:block}.staff-form-password-row{align-items:center;gap:8px;display:flex}.staff-form-password-value{color:var(--accent);background:var(--header-bg);border:1px solid var(--border-color);word-break:break-all;-webkit-user-select:all;user-select:all;border-radius:6px;flex:1;padding:8px 12px;font-family:monospace;font-size:.95rem}.staff-form-copy-btn{background:var(--accent-light);color:var(--accent);border:1px solid var(--accent);cursor:pointer;white-space:nowrap;border-radius:6px;padding:8px 14px;font-size:.8rem;font-weight:500;transition:background .15s}.staff-form-copy-btn:hover{background:var(--sidebar-hover);color:var(--accent)}.staff-form-email-btn{background:var(--accent-light);width:37px;height:37px;color:var(--accent);border:1px solid var(--border-color);cursor:pointer;border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;padding:0;transition:background .15s,color .15s;display:flex}.staff-form-email-btn svg{width:18px;height:18px}.staff-form-email-btn:hover:not(:disabled){background:var(--sidebar-hover);color:var(--accent)}.staff-form-email-btn:disabled{opacity:.5;cursor:not-allowed}.staff-form-divider{background:var(--border-color);height:1px;margin:16px 0 0;transition:background .3s}.staff-status-bar{background:var(--header-bg);border:1px solid var(--border-color);border-radius:10px;align-items:center;gap:0;margin-top:16px;margin-bottom:0;padding:14px 16px;transition:background .3s;display:flex}[data-theme=light] .staff-status-bar{background:var(--header-bg)}.staff-status-steps{flex:1;align-items:center;gap:0;display:flex}.staff-status-item{color:var(--color-danger);white-space:nowrap;align-items:center;gap:6px;font-size:.72rem;font-weight:500;transition:color .2s;display:flex}.staff-status-item.completed{color:var(--color-success)}.staff-status-item svg{flex-shrink:0;width:14px;height:14px}.staff-status-connector{background:var(--border-color);flex-shrink:0;width:24px;height:1px;margin:0 8px}.staff-status-connector.filled{background:var(--color-success);transition:background .3s}.staff-status-count{color:var(--color-danger);border-left:1px solid var(--border-color);white-space:nowrap;margin-left:12px;padding-left:12px;font-size:.75rem;font-weight:600;transition:color .3s}.staff-status-count.complete{color:var(--color-success);transition:color .3s}.staff-status-count span{color:inherit}.staff-form-row-3{grid-template-columns:1.2fr .8fr 1fr;gap:12px;display:grid}.staff-form-row-2{grid-template-columns:1fr 1.5fr;gap:12px;display:grid}.staff-form-row-3 .form-group-wide{grid-column:2/span 2}.staff-form-reset-banner{width:100%;height:37px;color:var(--color-danger);cursor:pointer;background:#ef444414;border:1px solid #ef444433;border-radius:8px;justify-content:center;align-items:center;gap:8px;padding:0 12px;font-size:.9rem;font-weight:500;transition:background .15s,border-color .15s;display:flex}.staff-form-reset-banner svg{width:16px;height:16px}.staff-form-reset-banner:hover:not(:disabled){background:#ef444414;border-color:#ef444433}.staff-form-reset-banner:disabled{opacity:.5;cursor:not-allowed}@media (max-width:768px){.staff-form-row-3{grid-template-columns:1fr 1fr}.staff-form-row-2{grid-template-columns:1fr}.staff-top-card{flex-direction:column;align-items:stretch;gap:12px}.staff-top-card-left,.staff-top-card-right-group{justify-content:flex-start}.staff-table-wrapper{overflow-x:auto}}.staff-title,.staff-name-text,.staff-role-label,.staff-phone-text{transition:color .3s}.staff-count-badge,.staff-empty-icon{transition:background .3s,color .3s}.staff-separator,.staff-schedule-cell,.staff-avatar,.staff-status-connector,.staff-modal{transition:background .3s}.staff-form-password-box,.staff-form-password-value{transition:background .3s,border-color .3s,color .3s}.staff-photo-upload{align-items:center;gap:12px;display:flex}.staff-photo-upload-btn{background:var(--header-bg);border:1px dashed var(--border-color);color:var(--text-secondary);cursor:pointer;border-radius:8px;align-items:center;gap:8px;padding:8px 14px;font-family:inherit;font-size:.8125rem;transition:border-color .15s,color .15s;display:flex}.staff-photo-upload-btn:hover{border-color:var(--accent);color:var(--text-primary)}.staff-photo-upload-btn:disabled{opacity:.5;cursor:not-allowed}.staff-photo-preview-wrap{flex-shrink:0;width:64px;height:64px;position:relative}.staff-photo-preview{object-fit:cover;border:2px solid var(--border-color);border-radius:50%;width:64px;height:64px}.staff-photo-remove-btn{border:2px solid var(--header-bg);color:#fff;cursor:pointer;background:#ef4444;border-radius:50%;justify-content:center;align-items:center;width:22px;height:22px;padding:0;transition:background .15s;display:flex;position:absolute;top:-4px;right:-4px}.staff-photo-remove-btn:hover{background:#dc2626}.staff-photo-remove-btn:disabled{opacity:.5;cursor:not-allowed}.account-page{flex-direction:column;flex:1;gap:12px;min-height:0;margin:-32px;padding:12px 12px 12px 0;display:flex}.account-card{background:var(--header-bg);box-shadow:var(--card-shadow);border-radius:14px;grid-template-columns:auto 1fr auto;align-items:start;gap:24px;padding:28px;transition:background .3s;display:grid}.account-card-left{flex-shrink:0}.account-avatar{background:var(--accent-light);border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:80px;height:80px;display:flex;overflow:hidden}.account-avatar img{object-fit:cover;width:100%;height:100%}.account-avatar-initials{color:var(--accent);-webkit-user-select:none;user-select:none;font-size:1.8rem;font-weight:700}.account-card-center{min-width:0}.account-name-row{align-items:center;gap:10px;margin-bottom:6px;display:flex}.account-name-row h2{color:var(--text-primary);white-space:nowrap;text-overflow:ellipsis;margin:0;font-size:1.35rem;font-weight:700;overflow:hidden}.account-info-row{color:var(--text-secondary);align-items:center;gap:10px;margin-bottom:8px;font-size:.92rem;display:flex}.account-status-row{color:var(--text-primary);align-items:center;gap:14px;font-size:.88rem;display:flex}.account-status-item{align-items:center;gap:6px;display:flex}.account-status-item svg{width:16px;height:16px;color:var(--text-primary);flex-shrink:0}.account-status-divider{background:var(--border-color);flex-shrink:0;width:1px;height:18px;transition:background .3s}.status-label{color:var(--text-primary);font-weight:500}.meta-sep{color:var(--text-secondary);opacity:.5}.status-dot{vertical-align:middle;border-radius:50%;flex-shrink:0;width:9px;height:9px;margin-top:-1px}.status-dot.active{background:var(--color-success);transition:background .3s;box-shadow:0 0 6px #22c55e66}.status-dot.inactive{background:var(--color-danger);transition:background .3s;box-shadow:0 0 6px #ef444466}.account-card-right{flex-direction:column;flex-shrink:0;align-items:flex-end;gap:12px;display:flex}.account-contact-chips{flex-direction:column;gap:8px;display:flex}.contact-chip{border:1px solid var(--border-color);color:var(--text-secondary);white-space:nowrap;background:0 0;border-radius:8px;align-items:center;gap:10px;padding:10px 16px;font-size:.88rem;transition:border-color .3s;display:flex}.contact-chip svg{width:18px;height:18px;color:var(--text-secondary);flex-shrink:0}.account-actions{align-items:center;gap:6px;display:flex}.account-action-btn{color:var(--sidebar-text-active);cursor:pointer;white-space:nowrap;background:0 0;border:none;border-radius:6px;align-items:center;gap:6px;padding:8px 14px;font-family:inherit;font-size:.85rem;font-weight:500;transition:background .2s,color .2s;display:flex}.account-action-btn svg{width:16px;height:16px}.account-action-btn:hover{background:var(--sidebar-active)}.account-action-btn.action-danger{color:var(--color-danger)}.account-action-btn.action-danger:hover{background:#ef44441a}.account-login-alert{background:var(--header-bg);border:1px solid var(--border-color);border-radius:8px;align-items:center;gap:12px;padding:14px 18px;transition:background .3s,border-color .3s;display:flex}.account-login-alert svg{width:20px;height:20px;color:var(--text-secondary);flex-shrink:0}.account-login-alert p{color:var(--text-secondary);font-size:.85rem;line-height:1.4}.account-login-alert strong{color:var(--text-primary);font-weight:600}@media (max-width:1024px){.account-card{grid-template-columns:auto 1fr;gap:20px;padding:24px}.account-card-right{flex-direction:row;grid-column:1/-1;justify-content:space-between;align-items:center}.account-contact-chips{flex-direction:row}}@media (max-width:768px){.account-card{text-align:center;grid-template-columns:1fr;padding:24px 20px}.account-card-left{justify-self:center}.account-name-row{justify-content:center}.account-info-row,.account-status-row{flex-wrap:wrap;justify-content:center}.account-card-right{flex-direction:column;align-items:center}.account-contact-chips{align-items:center}.account-actions{flex-wrap:wrap;justify-content:center}.account-card{padding:16px}}.reports-page{flex-direction:column;flex:1;gap:12px;min-height:0;margin:-32px;padding:12px 12px 12px 0;transition:background .3s,color .3s;display:flex;position:relative;overflow:hidden}.reports-top-card{background:var(--sidebar-card-bg);border-radius:var(--sidebar-card-radius);box-shadow:var(--card-shadow);justify-content:space-between;align-items:center;padding:6px;transition:background .3s;display:flex}.reports-top-card-left{border-radius:10px;align-items:center;min-height:36px;margin:0 4px;padding:8px 12px 8px 13px;display:flex}.reports-top-card-title{font-size:var(--h1);color:var(--sidebar-text-active);white-space:nowrap;font-weight:700;line-height:1}.reports-top-card-right{align-items:center;gap:8px;display:flex;position:relative}.reports-top-card-right-group{border-radius:10px;align-items:center;gap:10px;min-height:36px;margin:0 4px;padding:8px 12px;display:flex}.reports-export-dropdown{left:auto;right:0}.reports-refresh-btn{background:var(--content-bg);color:var(--text-secondary);cursor:pointer;border:none;border-radius:6px;justify-content:center;align-items:center;width:28px;height:28px;transition:background .15s,color .15s,transform .3s;display:flex}.reports-refresh-btn svg{width:14px;height:14px}.reports-refresh-btn:hover{background:var(--sidebar-hover);color:var(--text-primary)}.reports-refresh-btn:active{transform:rotate(90deg)}.reports-export-btn{background:var(--content-bg);color:var(--text-secondary);cursor:pointer;border:none;border-radius:6px;align-items:center;gap:6px;height:28px;padding:0 10px;font-family:inherit;font-size:.78rem;font-weight:500;transition:background .15s,color .15s;display:flex}.reports-export-btn svg{width:13px;height:13px}.reports-export-btn:hover{background:var(--sidebar-hover);color:var(--text-primary)}.reports-export-btn .reports-chevron{width:10px;height:10px;margin-left:2px}.reports-section-header{justify-content:space-between;align-items:center;display:flex}.reports-section-export{width:28px;height:28px;color:var(--text-secondary);cursor:pointer;background:0 0;border:none;border-radius:6px;justify-content:center;align-items:center;padding:0;transition:background .15s,color .15s;display:flex}.reports-section-export svg{width:14px;height:14px}.reports-section-export:hover{background:var(--sidebar-hover);color:var(--accent)}.reports-loading{text-align:center;flex-direction:column;flex:1;justify-content:center;align-items:center;min-height:300px;display:flex}.reports-loading p{color:var(--text-secondary);margin-top:12px;font-size:.85rem}.loading-spinner{border:3px solid var(--border-color);border-top-color:var(--accent);border-radius:50%;width:32px;height:32px;animation:.7s linear infinite reportsSpin}@keyframes reportsSpin{to{transform:rotate(360deg)}}.reports-error-banner{color:#f87171;background:#ef444414;border:1px solid #ef444433;border-radius:8px;justify-content:space-between;align-items:center;gap:12px;padding:10px 16px;font-size:.82rem;font-weight:500;transition:background .3s,color .3s,border-color .3s;display:flex}.reports-error-banner button{background:var(--accent);color:#fff;cursor:pointer;white-space:nowrap;border:none;border-radius:6px;padding:5px 14px;font-family:inherit;font-size:.78rem;font-weight:600;transition:opacity .15s}.reports-error-banner button:hover{opacity:.85}.reports-error-overlay{border-radius:var(--sidebar-card-radius);z-index:10;justify-content:center;align-items:center;padding-top:60px;display:flex;position:absolute;top:0;bottom:0;left:0;right:0}.reports-error-overlay .status-container{text-align:center;padding:32px 48px}.reports-error-overlay .status-giant{letter-spacing:-.04em;color:var(--text-primary);-webkit-user-select:none;user-select:none;text-shadow:0 2px 12px #00000040;margin-bottom:24px;font-size:clamp(8rem,22vw,18rem);font-weight:900;line-height:.85}.reports-error-overlay .status-label{text-shadow:0 1px 6px #0003}.reports-error-overlay .status-subtitle{text-shadow:0 1px 4px #00000026}.reports-stats{grid-template-columns:repeat(4,1fr);gap:12px;display:grid}.reports-stat-card{background:var(--header-bg);border-radius:12px;flex-direction:column;justify-content:space-between;gap:8px;min-height:80px;padding:12px 14px;transition:background .3s;display:flex}.reports-stat-label{color:var(--text-secondary);text-transform:uppercase;letter-spacing:.3px;font-size:.72rem;font-weight:500}.reports-stat-row{justify-content:space-between;align-items:baseline;display:flex}.reports-stat-value{color:var(--text-primary);font-variant-numeric:tabular-nums;letter-spacing:-.5px;font-size:1.45rem;font-weight:700;line-height:1.2;transition:color .3s}.reports-stat-change{font-variant-numeric:tabular-nums;border-radius:4px;padding:1px 6px;font-size:.7rem;font-weight:600;line-height:1.5}.reports-stat-change.positive{color:var(--color-success);background:#22c55e1a;transition:background .3s,color .3s}.reports-stat-change.negative{color:var(--color-danger);background:#ef44441a;transition:background .3s,color .3s}.reports-charts{flex:1;grid-template-columns:1.5fr 1fr;gap:12px;min-height:0;display:grid}.reports-chart-card{background:var(--header-bg);border-radius:12px;outline:none;flex-direction:column;min-width:0;min-height:0;padding:14px 16px;transition:background .3s;display:flex;overflow:hidden}.reports-bottom .reports-chart-card{height:100%;min-height:280px}.reports-chart-header{justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;display:flex}.reports-chart-title{color:var(--text-primary);white-space:nowrap;font-size:.85rem;font-weight:600}.reports-chart-controls{align-items:center;gap:8px;display:flex}.reports-chart-divider{background:var(--border-color);flex-shrink:0;width:1px;height:18px;transition:background .3s}.reports-period-nav{align-items:center;gap:4px;display:flex;position:relative}.reports-nav-arrow{background:var(--content-bg);width:24px;height:24px;color:var(--text-secondary);cursor:pointer;border:none;border-radius:6px;justify-content:center;align-items:center;padding:0;transition:background .15s,color .15s;display:flex}.reports-nav-arrow svg{width:12px;height:12px}.reports-nav-arrow:hover{background:var(--sidebar-hover);color:var(--text-primary)}.reports-period-label{color:var(--text-secondary);cursor:pointer;background:0 0;border:none;border-radius:6px;align-items:center;gap:4px;padding:4px 8px;font-family:inherit;font-size:.82rem;font-weight:600;transition:background .15s,color .15s;display:flex}.reports-period-label:hover,.reports-period-label.open{background:var(--sidebar-hover);color:var(--text-primary)}.reports-chevron{width:12px;height:12px;color:var(--text-secondary);transition:transform .2s}.reports-period-dropdown{background:var(--header-bg);border:1px solid var(--border-color);z-index:50;border-radius:8px;min-width:160px;max-height:240px;padding:4px;position:absolute;top:calc(100% + 6px);right:0;overflow-y:auto;box-shadow:0 4px 16px #0000001a}.reports-period-dropdown::-webkit-scrollbar{width:4px}.reports-period-dropdown::-webkit-scrollbar-track{background:0 0}.reports-period-dropdown::-webkit-scrollbar-thumb{background:var(--border-color);border-radius:2px}.reports-dropdown-item{text-align:left;width:100%;color:var(--text-secondary);cursor:pointer;white-space:nowrap;background:0 0;border:none;border-radius:4px;padding:6px 10px;font-family:inherit;font-size:.78rem;transition:background .12s,color .12s;display:block}.reports-dropdown-item:hover,[data-theme=light] .reports-dropdown-item:hover{background:var(--sidebar-hover);color:var(--text-primary)}.reports-dropdown-item.active{background:var(--accent);color:#fff}.reports-chart-toggle{background:var(--content-bg);border-radius:6px;align-items:center;gap:2px;padding:2px;display:flex}.reports-toggle-btn{width:26px;height:22px;color:var(--text-secondary);cursor:pointer;background:0 0;border:none;border-radius:4px;justify-content:center;align-items:center;padding:0;transition:background .15s,color .15s;display:flex}.reports-toggle-btn svg{width:13px;height:13px}.reports-toggle-btn:hover{background:var(--sidebar-hover);color:var(--text-primary)}.reports-toggle-btn.active{background:var(--header-bg);color:var(--accent);box-shadow:0 1px 3px #00000014}.reports-chart-body{flex:1;width:100%;min-height:0}.reports-donut{flex:1;align-items:center;gap:24px;min-width:0;padding:16px;display:flex;overflow:hidden}.reports-donut-chart{width:min(var(--donut-size,240px), 100%);aspect-ratio:1;flex-shrink:1;min-width:0;position:relative}.reports-donut-svg{display:block}.reports-donut-svg.reports-donut-initial{animation:1.4s cubic-bezier(.22,1,.36,1) both donutRotateIn}@keyframes donutRotateIn{0%{transform:rotate(-20deg)}to{transform:rotate(0)}}.reports-donut-segment{transition:stroke-dasharray .5s cubic-bezier(.22,1,.36,1),stroke-dashoffset .5s cubic-bezier(.22,1,.36,1),opacity .2s}.reports-donut-initial .reports-donut-segment{transition:stroke-dasharray 1.4s cubic-bezier(.22,1,.36,1),stroke-dashoffset 1.4s cubic-bezier(.22,1,.36,1),opacity .2s}.reports-donut-segment:hover{opacity:.75}.reports-donut-center{text-align:center;pointer-events:none;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.reports-donut-total{color:var(--text-primary);letter-spacing:-1px;font-size:1.8rem;font-weight:800;line-height:1;display:block}.reports-donut-label{color:var(--text-secondary);letter-spacing:1px;text-transform:uppercase;margin-top:4px;font-size:.65rem;display:block}.reports-donut-legend{flex-direction:column;flex:1;gap:16px;min-width:0;display:flex}.reports-donut-legend .reports-legend-entry{animation:.4s both reportRowIn}.reports-donut-legend .reports-legend-entry:first-child{animation-delay:0s}.reports-donut-legend .reports-legend-entry:nth-child(2){animation-delay:50ms}.reports-donut-legend .reports-legend-entry:nth-child(3){animation-delay:.1s}.reports-donut-legend .reports-legend-entry:nth-child(4){animation-delay:.15s}.reports-donut-legend .reports-legend-entry:nth-child(5){animation-delay:.2s}.reports-donut[data-animated=true] .reports-donut-legend .reports-legend-entry{animation:none}.reports-legend-entry{align-items:center;gap:10px;display:flex}.reports-legend-dot{border-radius:2px;flex-shrink:0;width:8px;height:8px}.reports-legend-info{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.reports-legend-name{color:var(--text-primary);white-space:nowrap;font-size:.78rem;font-weight:500}.reports-legend-bar-track{background:var(--border-color);opacity:.3;border-radius:2px;width:100%;height:2px;transition:background .3s}.reports-legend-bar{border-radius:2px;height:100%;transition:width .4s,background .3s;display:block}.reports-legend-value{color:var(--text-primary);white-space:nowrap;font-variant-numeric:tabular-nums;margin-left:auto;font-size:.78rem;font-weight:700}.reports-legend-pct{color:var(--text-secondary);text-align:right;font-variant-numeric:tabular-nums;width:38px;font-size:.72rem}.reports-donut-size-toggle{background:var(--content-bg);border-radius:6px;align-items:center;gap:2px;padding:2px;display:flex}.reports-donut-size-btn{width:26px;height:22px;color:var(--text-secondary);cursor:pointer;background:0 0;border:none;border-radius:4px;justify-content:center;align-items:center;padding:0;transition:background .15s,color .15s;display:flex}.reports-donut-size-btn svg{width:14px;height:14px}.reports-donut-size-btn:hover{background:var(--sidebar-hover);color:var(--text-primary)}.reports-donut-size-btn.active{background:var(--header-bg);color:var(--accent);box-shadow:0 1px 3px #00000014}.reports-category-filter{position:relative}.reports-category-btn{background:var(--content-bg);color:var(--text-secondary);cursor:pointer;border:none;border-radius:6px;align-items:center;gap:6px;padding:6px 10px;font-family:inherit;font-size:.78rem;font-weight:500;transition:background .15s,color .15s;display:flex}.reports-category-btn:hover{background:var(--sidebar-hover);color:var(--text-primary)}.reports-category-btn svg{width:13px;height:13px}.reports-chevron{width:10px;height:10px;margin-left:2px;transition:transform .2s}.reports-chevron.open{transform:rotate(180deg)}.reports-category-dropdown{background:var(--header-bg);border:1px solid var(--border-color);z-index:50;border-radius:8px;min-width:160px;padding:4px;position:absolute;top:calc(100% + 4px);right:0;box-shadow:0 4px 12px #00000026}.reports-category-option{text-align:left;width:100%;color:var(--text-secondary);cursor:pointer;white-space:nowrap;background:0 0;border:none;border-radius:4px;padding:6px 10px;font-family:inherit;font-size:.78rem;transition:background .12s,color .12s;display:block}.reports-category-option:hover,[data-theme=light] .reports-category-option:hover{background:var(--sidebar-hover);color:var(--text-primary)}.reports-category-option.active{background:var(--accent);color:#fff}.reports-top5-list{flex-direction:column;flex:1;justify-content:center;gap:16px;min-width:0;display:flex}.reports-top5-empty{text-align:center;color:var(--text-secondary);padding:24px 0;font-size:.8rem}.reports-bottom{grid-template-columns:1fr 1.6fr;gap:12px;height:280px;min-height:280px;display:grid}.reports-top-items-list{flex-direction:column;flex:1;gap:0;min-height:0;margin-top:8px;display:flex;overflow-y:auto}.reports-top-items-list::-webkit-scrollbar{width:4px}.reports-top-items-list::-webkit-scrollbar-track{background:0 0}.reports-top-items-list::-webkit-scrollbar-thumb{background:var(--border-color);border-radius:2px}.reports-item-entry{border-bottom:1px solid var(--border-color);flex-direction:column;gap:6px;padding:8px 0;transition:border-color .3s,opacity .4s,transform .4s;display:flex}.reports-item-entry:last-child{border-bottom:none}.reports-item-entry:first-child{padding-top:0}.reports-item-row{align-items:center;gap:10px;display:flex}.reports-item-rank{text-align:center;font-variant-numeric:tabular-nums;min-width:16px;font-size:.8rem;font-weight:700}.reports-item-details{flex-direction:column;flex:1;gap:1px;min-width:0;display:flex}.reports-item-name{color:var(--text-primary);text-overflow:ellipsis;white-space:nowrap;font-size:.88rem;font-weight:500;overflow:hidden}.reports-item-stock{color:var(--text-secondary);font-variant-numeric:tabular-nums;font-size:.75rem}.reports-item-pct{color:var(--text-primary);font-variant-numeric:tabular-nums;font-size:.82rem;font-weight:600}.reports-item-bar-track{background:var(--border-color);border-radius:3px;height:5px;transition:background .3s;overflow:hidden}.reports-item-bar-fill{background:var(--accent);border-radius:3px;height:100%;transition:width .5s,background .3s}.reports-table-header{justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px;display:flex}.reports-table-actions{align-items:center;gap:12px;display:flex}.reports-search-wrapper{width:200px;position:relative}.reports-search-icon{width:14px;height:14px;color:var(--text-secondary);pointer-events:none;position:absolute;top:50%;left:10px;transform:translateY(-50%)}.reports-search-input{background:var(--content-bg);width:100%;height:32px;color:var(--text-primary);border:none;border-radius:6px;outline:none;padding:0 10px 0 28px;font-family:inherit;font-size:.8rem;transition:background .15s}.reports-search-input:focus{background:var(--sidebar-hover);transition:background .15s}.reports-search-input::placeholder{color:var(--text-secondary)}.reports-table-wrapper{flex:1;min-height:0;max-height:230px;overflow:auto}.reports-table-wrapper::-webkit-scrollbar{width:4px;height:4px}.reports-table-wrapper::-webkit-scrollbar-track{background:0 0}.reports-table-wrapper::-webkit-scrollbar-thumb{background:var(--border-color);border-radius:2px}.reports-table-wrapper::-webkit-scrollbar-thumb:hover{background:var(--text-secondary)}.reports-table{table-layout:fixed;border-collapse:separate;border-spacing:0;flex:1;width:100%;min-height:0;font-size:.82rem}.reports-table thead{z-index:1;background:var(--header-bg);transition:background .3s;position:sticky;top:0}.reports-table th{text-align:left;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.4px;border-bottom:1px solid var(--border-color);white-space:nowrap;padding:8px 12px;font-size:.72rem;font-weight:600;transition:background .3s,color .3s,border-color .3s}.reports-table th:first-child{width:280px}.reports-table th:nth-child(2),.reports-table th:nth-child(3),.reports-table th:nth-child(4){text-align:center;width:120px}.reports-table th:nth-child(5){text-align:center;width:100px}.reports-table td{border-bottom:1px solid var(--border-color);color:var(--text-primary);white-space:nowrap;padding:10px 12px;transition:background .3s,color .3s,border-color .3s}.reports-table tbody tr:hover{background:var(--sidebar-hover)}.reports-table tbody tr:last-child td{border-bottom:none}.reports-td-item{font-weight:500}.reports-table td:nth-child(2),.reports-table td:nth-child(5){text-align:center}.reports-td-num{text-align:center;font-variant-numeric:tabular-nums;font-weight:500}.reports-order-id{color:var(--accent);font-size:.78rem;font-weight:600}.reports-order-amount{font-weight:600}.reports-order-date{color:var(--text-secondary);font-size:.78rem}.reports-category-tag{background:var(--border-color);color:var(--text-secondary);border-radius:4px;padding:2px 8px;font-size:.72rem;font-weight:500;transition:background .3s,color .3s;display:inline-block}.reports-status-badge{white-space:nowrap;border-radius:4px;padding:2px 8px;font-size:.72rem;font-weight:600;display:inline-block}.reports-empty{text-align:center;color:var(--text-secondary);padding:32px 16px;font-size:.82rem}@media (max-width:1024px){.reports-page{padding:8px;overflow:auto}.reports-stats{grid-template-columns:repeat(2,1fr)}.reports-charts,.reports-bottom{grid-template-columns:1fr}}@media (max-width:768px){.reports-page{margin:0;padding:12px}.reports-top-card{flex-direction:column;align-items:stretch;gap:8px}.reports-top-card-left{justify-content:center}.reports-top-card-right-group{flex-wrap:wrap;justify-content:center}.reports-stats{grid-template-columns:1fr 1fr}.reports-stat-value{font-size:1.25rem}.reports-table-header{flex-direction:column;align-items:stretch}.reports-search-wrapper{width:100%}}@media (max-width:480px){.reports-stats{grid-template-columns:1fr}}@media (max-width:650px){.reports-donut{flex-direction:column;gap:16px;padding:12px 16px}.reports-donut-chart{flex:none;width:min(220px,65vw)}.reports-donut-legend,.reports-top5-list{width:100%}}.reports-bar-card .recharts-bar-rectangle rect{transition:opacity .3s,height .4s,y .4s}.reports-bar-card:hover .recharts-bar-rectangle rect{opacity:.8}.reports-bar-card .recharts-tooltip-wrapper{border:none;outline:none}.reports-bar-card .recharts-default-tooltip{background:var(--header-bg)!important;border:none!important;border-radius:8px!important;box-shadow:0 2px 8px #00000014!important}.reports-bar-card .recharts-tooltip-label{color:var(--text-primary)!important;font-weight:600!important}.reports-bar-card .recharts-tooltip-item{color:var(--text-secondary)!important}.reports-bar-card .recharts-cartesian-grid line{transition:stroke .3s;stroke:var(--border-color)!important}.reports-bar-card svg,.reports-bar-card svg:focus{outline:none}.reports-stat-value,.reports-stat-change{transition:all 1.2s cubic-bezier(.22,1,.36,1)}.reports-item-bar-fill,.reports-legend-bar{transition:width 1.4s cubic-bezier(.22,1,.36,1),background .3s}.reports-table tbody tr{transition:background .1s,opacity .4s,transform .4s}.reports-top-items-list,.reports-table-wrapper,.reports-chart-body,.reports-donut-chart{transition:opacity .5s}.reports-donut-center{transition:opacity .6s}.reports-legend-value,.reports-legend-pct,.reports-item-pct,.reports-item-stock{transition:all .6s}.reports-chart-title{transition:color .4s}@keyframes reportRowIn{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}.reports-table tbody tr{animation:.4s both reportRowIn}.reports-table tbody tr:first-child{animation-delay:0s}.reports-table tbody tr:nth-child(2){animation-delay:50ms}.reports-table tbody tr:nth-child(3){animation-delay:.1s}.reports-table tbody tr:nth-child(4){animation-delay:.15s}.reports-table tbody tr:nth-child(5){animation-delay:.2s}.reports-table tbody tr:nth-child(6){animation-delay:.25s}.reports-table tbody tr:nth-child(7){animation-delay:.3s}.reports-table tbody tr:nth-child(8){animation-delay:.35s}.reports-table tbody tr:nth-child(9){animation-delay:.4s}.reports-table tbody tr:nth-child(10){animation-delay:.45s}.reports-table tbody tr:nth-child(11){animation-delay:.5s}.reports-table tbody tr:nth-child(12){animation-delay:.55s}.reports-table tbody tr:nth-child(13){animation-delay:.6s}.reports-table tbody tr:nth-child(14){animation-delay:.65s}.reports-table tbody tr:nth-child(15){animation-delay:.7s}.reports-table tbody tr:nth-child(16){animation-delay:.75s}.reports-table tbody tr:nth-child(17){animation-delay:.8s}.reports-table tbody tr:nth-child(18){animation-delay:.85s}.reports-table tbody tr:nth-child(19){animation-delay:.9s}.reports-table tbody tr:nth-child(20){animation-delay:.95s}.reports-item-entry{animation:.4s both reportRowIn}.reports-item-entry:first-child{animation-delay:0s}.reports-item-entry:nth-child(2){animation-delay:50ms}.reports-item-entry:nth-child(3){animation-delay:.1s}.reports-item-entry:nth-child(4){animation-delay:.15s}.reports-item-entry:nth-child(5){animation-delay:.2s}.reports-item-entry:nth-child(6){animation-delay:.25s}.reports-item-entry:nth-child(7){animation-delay:.3s}.reports-item-entry:nth-child(8){animation-delay:.35s}.reports-item-entry:nth-child(9){animation-delay:.4s}.reports-item-entry:nth-child(10){animation-delay:.45s}.reports-item-entry:nth-child(11){animation-delay:.5s}.reports-item-entry:nth-child(12){animation-delay:.55s}.reports-item-entry:nth-child(13){animation-delay:.6s}.reports-item-entry:nth-child(14){animation-delay:.65s}.reports-item-entry:nth-child(15){animation-delay:.7s}.reports-item-entry:nth-child(16){animation-delay:.75s}.reports-item-entry:nth-child(17){animation-delay:.8s}.reports-item-entry:nth-child(18){animation-delay:.85s}.reports-item-entry:nth-child(19){animation-delay:.9s}.reports-item-entry:nth-child(20){animation-delay:.95s}@media (max-width:768px){.reports-top-card{flex-direction:column;align-items:stretch;gap:12px}.reports-top-card-left{justify-content:flex-start}.reports-top-card-right-group{flex-wrap:wrap;gap:8px}.reports-chart-header{flex-direction:column;align-items:stretch;gap:8px}}.reports-top-card-title,.reports-stat-label,.reports-chart-title,.reports-donut-total,.reports-donut-label,.reports-legend-name,.reports-legend-value,.reports-legend-pct,.reports-top5-empty,.reports-item-name,.reports-item-stock,.reports-item-pct,.reports-search-icon,.reports-order-id,.reports-order-date,.reports-empty{transition:color .3s}.reports-period-dropdown,.reports-category-dropdown{transition:background .3s,border-color .3s}.reports-chart-toggle,.reports-donut-size-toggle{transition:background .3s}.loading-spinner{transition:border-color .3s}.notification-page{flex-direction:column;flex:1;height:100vh;margin:-32px;padding:12px 12px 12px 0;transition:background .3s,color .3s;display:flex;overflow:hidden}.notification-body{flex-direction:column;flex:1;gap:12px;min-height:0;transition:background .3s;display:flex;overflow:hidden}.notification-top-card{background:var(--sidebar-card-bg);border-radius:var(--sidebar-card-radius);box-shadow:var(--card-shadow);justify-content:space-between;align-items:center;padding:6px;transition:background .3s;display:flex}.notification-top-card-left{border-radius:10px;align-items:center;gap:8px;min-height:36px;margin:0 4px;padding:8px 12px 8px 13px;display:flex}.notification-title{font-size:var(--h1);color:var(--sidebar-text-active);white-space:nowrap;margin:0;font-weight:700;line-height:1}.notification-count-badge{background:var(--border-color);min-width:20px;height:20px;color:var(--text-secondary);border-radius:5px;justify-content:center;align-items:center;padding:0 6px;font-size:.68rem;font-weight:600;display:inline-flex}.notification-top-card-right-group{border-radius:10px;align-items:center;gap:10px;min-height:36px;margin:0 4px;padding:8px 12px;display:flex}.notification-separator{background:var(--border-color);flex-shrink:0;width:1px;height:16px;transition:background .3s}.notification-main-layout{flex:1;grid-template-columns:1fr 320px;gap:12px;min-height:0;display:grid}.notification-table-card{background:var(--header-bg);box-shadow:var(--card-shadow);border-radius:12px;flex-direction:column;flex:1;min-height:0;padding:0 12px;transition:background .3s,box-shadow .3s;display:flex;overflow:hidden}.notification-table-header{border-bottom:1px solid var(--border-color);justify-content:space-between;align-items:center;gap:12px;padding:13px 16px;display:flex}.notification-table-title{color:var(--text-primary);flex:none;align-items:center;gap:8px;font-size:.9rem;font-weight:600;display:flex}.notification-alert-count{min-width:22px;height:20px;color:var(--color-danger);background:#ef44441f;border-radius:5px;justify-content:center;align-items:center;padding:0 7px;font-size:.68rem;font-weight:700;transition:background .3s,color .3s;display:inline-flex}.notification-filter-btn{background:var(--content-bg);height:28px;color:var(--text-secondary);cursor:pointer;white-space:nowrap;border:none;border-radius:6px;align-items:center;gap:6px;padding:0 10px;font-family:inherit;font-size:.78rem;font-weight:500;transition:background .15s,color .15s;display:flex}.notification-filter-btn:hover{background:var(--sidebar-hover);color:var(--text-primary)}.notification-filter-btn.active{background:var(--border-color);color:var(--text-primary)}.notification-filter-btn svg{width:13px;height:13px}.notification-table-wrapper{scrollbar-width:none;flex:auto;min-height:0;overflow:auto}.notification-table-wrapper::-webkit-scrollbar{display:none}.notification-table{table-layout:fixed;border-collapse:separate;border-spacing:0;width:100%}.notification-table th,.notification-table td{white-space:nowrap}.notification-table thead{z-index:1;background:var(--header-bg);transition:background .3s;position:sticky;top:0}.notification-table th{background:var(--header-bg);text-transform:uppercase;letter-spacing:.6px;color:var(--text-tertiary);text-align:left;border-bottom:1px solid var(--border-color);padding:12px 16px;font-size:.68rem;font-weight:600;transition:background .3s,color .3s,border-color .3s}.notification-table th:nth-child(2),.notification-table th:nth-child(3),.notification-table th:nth-child(4),.notification-table td:nth-child(2),.notification-table td:nth-child(3),.notification-table td:nth-child(4){text-align:center}.notification-table th:nth-child(5),.notification-table td:nth-child(5){text-align:left}.notification-table th:first-child{width:260px}.notification-table th:nth-child(2){width:120px}.notification-table th:nth-child(3){width:100px}.notification-table th:nth-child(4){width:120px}.notification-table th:nth-child(5){width:140px}.notification-table th:nth-child(6){width:48px}.notification-table td{color:var(--text-primary);border-bottom:1px solid var(--border-color);vertical-align:middle;padding:12px 16px;font-size:.82rem;transition:background .3s,color .3s,border-color .3s}.notification-table tbody tr{transition:background .12s}.notification-table tbody tr:hover{background:var(--sidebar-hover)}.notification-table tbody tr:last-child td{border-bottom:none}.notification-drug-cell{flex-direction:column;gap:3px;display:flex}.notification-drug-name{color:var(--text-primary);font-weight:600}.notification-drug-meta{color:var(--text-secondary);align-items:center;gap:6px;font-size:.72rem;display:flex}.notification-drug-sku{font-family:SF Mono,Fira Code,Consolas,monospace;font-weight:500}.notification-drug-dot{background:var(--text-secondary);border-radius:50%;width:3px;height:3px}.notification-category-text{color:var(--text-secondary);font-size:.82rem}.notification-stock-cell{flex-direction:column;gap:6px;display:flex}.notification-stock-fraction{font-variant-numeric:tabular-nums;align-items:center;gap:4px;font-size:.85rem;font-weight:600;display:flex}.notification-stock-fraction .current{color:var(--text-primary);text-align:center;min-width:2ch}.notification-stock-fraction .separator,.notification-stock-fraction .total{color:var(--text-secondary);font-weight:400}.notification-refresh-btn{background:var(--content-bg);color:var(--text-secondary);cursor:pointer;border:none;border-radius:6px;justify-content:center;align-items:center;width:28px;height:28px;transition:background .15s,color .15s,transform .3s;display:flex}.notification-refresh-btn svg{width:14px;height:14px}.notification-refresh-btn:hover{background:var(--sidebar-hover);color:var(--text-primary)}.notification-refresh-btn:active{transform:rotate(90deg)}.notification-refresh-wrapper{align-items:center;display:flex}.notification-time-text{color:var(--text-secondary,#888);white-space:nowrap;align-items:center;gap:4px;font-size:.8rem;display:inline-flex}.notification-time-text svg{opacity:.6;flex-shrink:0;width:13px;height:13px}.notification-stock-bar{background:var(--border-color);border-radius:2px;width:100%;height:6px;overflow:hidden}.notification-stock-bar-fill{border-radius:2px;height:100%;transition:width .6s cubic-bezier(.22,1,.36,1),background .3s}.notification-stock-bar-fill.critical{background:var(--color-danger)}.notification-stock-bar-fill.low{background:var(--color-warning)}.notification-stock-bar-fill.ok{background:var(--color-success)}.notification-status-badge{white-space:nowrap;border-radius:6px;align-items:center;gap:5px;padding:4px 10px;font-size:.72rem;font-weight:600;transition:background .3s,color .3s;display:inline-flex}.notification-status-dot{border-radius:50%;flex-shrink:0;width:6px;height:6px;transition:background .3s}.notification-status-badge.critical{color:var(--color-danger);background:#ef44441a}.notification-status-badge.critical .notification-status-dot{background:var(--color-danger)}.notification-status-badge.low{color:var(--color-warning);background:#f59e0b1a}.notification-status-badge.low .notification-status-dot{background:var(--color-warning)}.notification-status-badge.healthy{color:var(--color-success);background:#22c55e1a}.notification-status-badge.healthy .notification-status-dot{background:var(--color-success)}.notification-action-btn{cursor:pointer;white-space:nowrap;border:none;border-radius:6px;justify-content:center;align-items:center;height:30px;padding:0 12px;font-family:inherit;font-size:.72rem;font-weight:600;transition:all .12s,background .3s,color .3s;display:inline-flex}.notification-action-btn:hover{opacity:.85}.notification-action-btn.reorder{background:var(--color-warning);color:#fff}.notification-action-btn.restock{background:var(--color-danger-dark);color:#fff}.notification-action-btn.inspect{background:var(--color-warning);color:#fff}.notification-action-btn.view{background:var(--content-bg);color:var(--text-secondary);border:1px solid var(--border-color)}.notification-action-btn.view:hover{border-color:var(--accent);color:var(--accent)}.notification-dismiss-btn{color:var(--text-secondary);cursor:pointer;background:0 0;border:none;border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;width:30px;height:30px;padding:0;transition:background .15s,color .15s;display:flex}.notification-dismiss-btn svg{width:14px;height:14px}.notification-dismiss-btn:hover{color:var(--color-danger);background:#ef44441a}.notification-restore-btn{border:1px solid var(--border-color);background:var(--content-bg);height:30px;color:var(--text-secondary);cursor:pointer;white-space:nowrap;border-radius:6px;justify-content:center;align-items:center;padding:0 12px;font-family:inherit;font-size:.72rem;font-weight:600;transition:all .15s;display:inline-flex}.notification-restore-btn:hover{border-color:var(--color-success);color:var(--color-success);background:#22c55e14}.notification-action-group{justify-content:flex-end;align-items:center;gap:6px;display:flex}.notification-th-actions,.notification-td-actions{text-align:right}.notification-table tbody tr.dismissed{opacity:.45}.notification-table tbody tr.dismissed .notification-drug-name{text-decoration:line-through}.notification-status-badge.out-of-stock{color:var(--color-danger-dark);background:#dc262626}.notification-status-badge.out-of-stock .notification-status-dot{background:var(--color-danger-dark)}.notification-sidebar{flex-direction:column;flex:1;gap:12px;min-height:0;display:flex}.notification-sidebar-card{background:var(--header-bg);box-shadow:var(--card-shadow);border-radius:12px;flex-direction:column;flex:1;min-height:0;padding:0 12px;transition:background .3s,box-shadow .3s;display:flex;overflow:hidden}.notification-sidebar-header{border-bottom:1px solid var(--border-color);justify-content:space-between;align-items:center;padding:14px 16px;display:flex}.notification-sidebar-title{color:var(--text-primary);align-items:center;gap:8px;font-size:.88rem;font-weight:600;display:flex}.notification-sidebar-count{border-radius:5px;justify-content:center;align-items:center;min-width:20px;height:20px;padding:0 6px;font-size:.65rem;font-weight:700;display:inline-flex}.notification-sidebar-count.warning{color:var(--color-warning);background:#f59e0b1f;transition:background .3s,color .3s}.notification-sidebar-count.critical{color:var(--color-danger);background:#ef44441f;transition:background .3s,color .3s}.notification-sidebar-view-all{color:var(--accent);cursor:pointer;background:0 0;border:none;align-items:center;gap:4px;font-family:inherit;font-size:.72rem;font-weight:500;transition:opacity .12s;display:flex}.notification-sidebar-view-all:hover{opacity:.8}.notification-sidebar-view-all svg{width:12px;height:12px}.notification-sidebar-list{flex:1;padding:10px;overflow-y:auto}.notification-expiring-card{background:var(--content-bg);border-radius:8px;align-items:center;gap:12px;margin-bottom:8px;padding:10px 12px;transition:all .15s;display:flex}.notification-expiring-card:last-child{margin-bottom:0}.notification-expiring-card:hover{background:var(--sidebar-hover)}.notification-expiring-days{background:#ef44441a;border-radius:8px;flex-direction:column;flex-shrink:0;justify-content:center;align-items:center;min-width:44px;height:44px;transition:background .3s,color .3s;display:flex}.notification-expiring-days .num{color:var(--color-danger);font-size:1rem;font-weight:700;line-height:1;transition:color .3s}.notification-expiring-days .label{color:var(--color-danger);text-transform:uppercase;letter-spacing:.5px;margin-top:1px;font-size:.5rem;font-weight:600;transition:color .3s}.notification-expiring-days.warning{background:#f59e0b1f}.notification-expiring-days.warning .num,.notification-expiring-days.warning .label{color:var(--color-warning);transition:color .3s}.notification-expiring-info{flex:1;min-width:0}.notification-expiring-name{color:var(--text-primary);white-space:nowrap;text-overflow:ellipsis;margin-bottom:2px;font-size:.8rem;font-weight:600;overflow:hidden}.notification-expiring-meta{color:var(--text-secondary);font-size:.68rem}.notification-lowstock-card{background:var(--content-bg);border-radius:8px;align-items:center;gap:12px;margin-bottom:8px;padding:10px 12px;transition:all .15s;display:flex}.notification-lowstock-card:last-child{margin-bottom:0}.notification-lowstock-card:hover{background:var(--sidebar-hover)}.notification-lowstock-info{flex:1;min-width:0}.notification-lowstock-name{color:var(--text-primary);white-space:nowrap;text-overflow:ellipsis;margin-bottom:3px;font-size:.8rem;font-weight:600;overflow:hidden}.notification-lowstock-sku{color:var(--text-secondary);font-family:SF Mono,Fira Code,Consolas,monospace;font-size:.68rem}.notification-lowstock-stock{align-items:center;gap:6px;margin-top:4px;font-size:.72rem;display:flex}.notification-lowstock-stock .qty{color:var(--color-danger);font-weight:600;transition:color .3s}.notification-lowstock-stock .pct{color:var(--text-secondary)}.notification-lowstock-reorder{background:var(--color-danger);color:#fff;cursor:pointer;border:none;border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;height:28px;padding:0 10px;font-family:inherit;font-size:.68rem;font-weight:600;transition:opacity .12s;display:inline-flex}.notification-lowstock-reorder:hover{opacity:.85}.notification-sidebar-empty{text-align:center;flex-direction:column;justify-content:center;align-items:center;padding:24px 16px;display:flex}.notification-sidebar-empty svg{width:24px;height:24px;color:var(--text-secondary);opacity:.5;margin-bottom:8px}.notification-sidebar-empty p{color:var(--text-secondary);margin:0;font-size:.75rem}.stock-summary-card .notification-sidebar-header{border-bottom:1px solid var(--border-color)}.stock-summary-card{flex:none}.stock-summary-content{flex-direction:column;gap:16px;padding:14px 16px 17px;display:flex;overflow:hidden}.stock-summary-progress{flex-direction:column;gap:8px;display:flex}.stock-summary-progress-bar{background:var(--content-bg);border-radius:4px;width:100%;height:8px;display:flex;overflow:hidden}.stock-summary-progress-fill{height:100%;transition:width .6s cubic-bezier(.22,1,.36,1),background .3s}.stock-summary-progress-fill.critical{background:var(--color-danger)}.stock-summary-progress-fill.warning{background:var(--color-warning)}.stock-summary-percentage{color:var(--text-secondary);font-size:.72rem}.stock-summary-stats{grid-template-columns:1fr 1fr;gap:10px;display:grid}.stock-summary-stat{background:var(--content-bg);border-radius:8px;align-items:center;gap:10px;padding:10px 12px;display:flex}.stock-summary-stat-icon{border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;width:36px;height:36px;display:flex}.stock-summary-stat-icon svg{width:18px;height:18px}.stock-summary-stat-icon.critical{color:var(--color-danger);background:#ef44441f;transition:background .3s,color .3s}.stock-summary-stat-icon.warning{color:var(--color-warning);background:#f59e0b1f;transition:background .3s,color .3s}.stock-summary-stat-info{flex-direction:column;display:flex}.stock-summary-stat-value{color:var(--text-primary);font-size:1.1rem;font-weight:700;line-height:1.2}.stock-summary-stat-label{color:var(--text-secondary);font-size:.65rem;font-weight:500}.stock-summary-items{flex-direction:column;gap:8px;display:flex}.stock-summary-items-header{justify-content:space-between;align-items:center;display:flex}.stock-summary-items-title{color:var(--text-secondary);text-transform:uppercase;letter-spacing:.4px;font-size:.72rem;font-weight:600}.stock-summary-item{background:var(--content-bg);border-radius:8px;align-items:center;gap:10px;padding:10px 12px;transition:background .12s;display:flex}.stock-summary-item:hover{background:var(--sidebar-hover)}.stock-summary-item-qty{border-radius:8px;flex-direction:column;flex-shrink:0;justify-content:center;align-items:center;min-width:40px;height:40px;display:flex}.stock-summary-item-qty .num{font-size:.9rem;font-weight:700;line-height:1}.stock-summary-item-qty .label{text-transform:uppercase;letter-spacing:.5px;margin-top:1px;font-size:.45rem;font-weight:600}.stock-summary-item-qty.critical{color:var(--color-danger);background:#ef44441f;transition:background .3s,color .3s}.stock-summary-item-qty.warning{color:var(--color-warning);background:#f59e0b1f;transition:background .3s,color .3s}.stock-summary-item-info{flex:1;min-width:0}.stock-summary-item-name{color:var(--text-primary);white-space:nowrap;text-overflow:ellipsis;font-size:.78rem;font-weight:600;overflow:hidden}.stock-summary-item-meta{color:var(--text-secondary);font-size:.65rem}.stock-summary-item-action{background:var(--color-danger);color:#fff;cursor:pointer;border:none;border-radius:5px;flex-shrink:0;justify-content:center;align-items:center;height:26px;padding:0 10px;font-family:inherit;font-size:.65rem;font-weight:600;transition:opacity .12s;display:inline-flex}.stock-summary-item-action:hover{opacity:.85}.parts-filter-card .notification-sidebar-header{border-bottom:1px solid var(--border-color)}.parts-filter-card{flex-direction:column;flex:1;min-height:0;display:flex;overflow:hidden}.notification-sidebar-clear{color:var(--accent);cursor:pointer;background:0 0;border:none;font-family:inherit;font-size:.72rem;font-weight:500;transition:background .12s,border-radius .12s}.notification-sidebar-clear:hover{background:var(--sidebar-hover);border-radius:var(--radius-sm)}.parts-filter-content{scrollbar-width:thin;flex-direction:column;flex:1;gap:0;min-height:0;padding:14px 16px 17px;display:flex;overflow-y:auto}.parts-filter-content::-webkit-scrollbar{width:4px}.parts-filter-content::-webkit-scrollbar-thumb{background:var(--border-color);border-radius:2px}.parts-filter-section{border-bottom:1px solid var(--border-color);flex-direction:column;gap:0;padding:0 0 4px;display:flex}.parts-filter-section:last-of-type{border-bottom:none}.parts-filter-section-header{cursor:pointer;justify-content:space-between;align-items:center;padding:6px 0;display:flex}.parts-filter-section-title{color:var(--text-primary);font-size:.78rem;font-weight:600}.parts-filter-chevron{width:16px;height:16px;color:var(--text-secondary);transition:transform .2s}.parts-filter-chevron.open{transform:rotate(180deg)}.parts-filter-options{flex-direction:column;gap:6px;max-height:500px;transition:max-height .2s,opacity .2s;display:flex;overflow:hidden}.parts-filter-options.collapsed{opacity:0;gap:0;max-height:0}.parts-filter-option{cursor:pointer;color:var(--text-secondary);align-items:center;gap:8px;padding:6px 0;font-size:.78rem;transition:color .12s;display:flex}.parts-filter-option:hover{color:var(--text-primary)}.parts-filter-option input[type=checkbox]{border:1.5px solid var(--border-color);background:var(--content-bg);cursor:pointer;width:16px;height:16px;accent-color:var(--accent);-webkit-appearance:none;appearance:none;border-radius:4px;position:relative}.parts-filter-option input[type=checkbox]:checked{background:var(--accent);border-color:var(--accent)}.parts-filter-option input[type=checkbox]:checked:after{content:"";border:2px solid #fff;border-width:0 2px 2px 0;width:5px;height:9px;position:absolute;top:1px;left:4px;transform:rotate(45deg)}.parts-filter-option-dot{border-radius:50%;flex-shrink:0;width:8px;height:8px}.parts-filter-option-dot.critical{background:var(--color-danger);transition:background .3s}.parts-filter-option-dot.warning{background:var(--color-warning);transition:background .3s}.parts-filter-option-label{flex:1}.parts-filter-option-count{color:var(--text-secondary);background:var(--content-bg);border-radius:4px;padding:2px 6px;font-size:.68rem}.parts-filter-apply{background:var(--accent);color:#fff;cursor:pointer;border:none;border-radius:8px;width:100%;height:34px;margin-top:4px;font-family:inherit;font-size:.78rem;font-weight:600;transition:opacity .12s}.parts-filter-apply:hover{opacity:.85}.notification-empty{text-align:center;flex-direction:column;justify-content:center;align-items:center;min-height:320px;padding:40px 20px;display:flex}.notification-empty-icon{background:var(--content-bg);border-radius:16px;justify-content:center;align-items:center;width:64px;height:64px;margin-bottom:16px;display:flex}.notification-empty-icon svg{width:28px;height:28px;color:var(--text-secondary)}.notification-empty h3{color:var(--text-primary);margin:0 0 6px;font-size:1rem;font-weight:600}.notification-empty p{color:var(--text-secondary);margin:0;font-size:.82rem}.notification-error{text-align:center;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:12px;min-height:0;padding:60px 20px;display:flex}.notification-error-icon{width:40px;height:40px;color:var(--color-danger);background:#ef44441a;border-radius:10px;justify-content:center;align-items:center;transition:background .3s,color .3s;display:flex}.notification-error-icon svg{width:20px;height:20px}.notification-error h3{color:var(--text-primary);margin:0;font-size:.9rem;font-weight:600}.notification-error p{color:var(--text-secondary);max-width:300px;margin:0;font-size:.78rem}.notification-retry-btn{background:var(--accent);color:#fff;cursor:pointer;border:none;border-radius:8px;height:32px;padding:0 16px;font-family:inherit;font-size:.82rem;font-weight:600;transition:opacity .12s}.notification-retry-btn:hover{opacity:.85}.notification-loading{text-align:center;flex-direction:column;flex:1;justify-content:center;align-items:center;min-height:0;display:flex}.notification-loading p{color:var(--text-secondary);margin-top:12px;font-size:.85rem}@keyframes notifRowIn{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}.notification-table tbody tr{animation:.4s both notifRowIn}.notification-table tbody tr:first-child{animation-delay:0s}.notification-table tbody tr:nth-child(2){animation-delay:50ms}.notification-table tbody tr:nth-child(3){animation-delay:.1s}.notification-table tbody tr:nth-child(4){animation-delay:.15s}.notification-table tbody tr:nth-child(5){animation-delay:.2s}.notification-table tbody tr:nth-child(6){animation-delay:.25s}.notification-table tbody tr:nth-child(7){animation-delay:.3s}.notification-table tbody tr:nth-child(8){animation-delay:.35s}.notification-table tbody tr:nth-child(9){animation-delay:.4s}.notification-table tbody tr:nth-child(10){animation-delay:.45s}.notification-table tbody tr:nth-child(11){animation-delay:.5s}.notification-table tbody tr:nth-child(12){animation-delay:.55s}.notification-table tbody tr:nth-child(13){animation-delay:.6s}.notification-table tbody tr:nth-child(14){animation-delay:.65s}.notification-table tbody tr:nth-child(15){animation-delay:.7s}.notification-table tbody tr:nth-child(16){animation-delay:.75s}.notification-table tbody tr:nth-child(17){animation-delay:.8s}.notification-table tbody tr:nth-child(18){animation-delay:.85s}.notification-table tbody tr:nth-child(19){animation-delay:.9s}.notification-table tbody tr:nth-child(20){animation-delay:.95s}@media (max-width:1024px){.notification-main-layout{grid-template-columns:1fr}.notification-sidebar{grid-template-columns:1fr 1fr;gap:12px;display:grid}}@media (max-width:768px){.notification-page{margin:0;padding:12px}.notification-top-card{flex-direction:column;align-items:stretch;gap:8px}.notification-top-card-left{justify-content:center}.notification-top-card-right-group{flex-wrap:wrap;justify-content:center}.notification-main-layout,.notification-sidebar{grid-template-columns:1fr}.notification-table-wrapper{overflow-x:auto}.notification-table{min-width:600px}.notification-table th,.notification-table td{padding:10px 12px}}.notification-title,.notification-table-title,.notification-drug-name,.notification-drug-meta,.notification-category-text,.notification-sidebar-title,.notification-expiring-name,.notification-expiring-meta,.notification-lowstock-name,.notification-lowstock-sku,.stock-summary-percentage,.stock-summary-stat-value,.stock-summary-stat-label,.stock-summary-items-title,.stock-summary-item-name,.stock-summary-item-meta,.parts-filter-section-title{transition:color .3s}.notification-count-badge,.parts-filter-option-count,.notification-empty-icon{transition:background .3s,color .3s}.notification-table-header,.notification-sidebar-header,.parts-filter-section{transition:border-color .3s}.notification-drug-dot,.notification-stock-bar,.stock-summary-progress-bar,.stock-summary-stat{transition:background .3s}.inventory-page{flex-direction:column;flex:1;gap:12px;min-height:0;margin:-32px;padding:12px 12px 12px 0;transition:background .3s,color .3s;display:flex;overflow:hidden}.inventory-error-overlay{border-radius:var(--sidebar-card-radius);z-index:10;justify-content:center;align-items:center;display:flex;position:absolute;top:0;bottom:0;left:0;right:0}.inventory-error-overlay .status-container{text-align:center;padding:32px 48px}.inventory-error-overlay .status-giant{letter-spacing:-.04em;color:var(--text-primary);-webkit-user-select:none;user-select:none;text-shadow:0 2px 12px #00000040;margin-bottom:24px;font-size:clamp(8rem,22vw,18rem);font-weight:900;line-height:.85}.inventory-error-overlay .status-label{text-shadow:0 1px 6px #0003}.inventory-error-overlay .status-subtitle{text-shadow:0 1px 4px #00000026}.inventory-body{flex-direction:column;flex:1;gap:12px;min-height:0;display:flex}.inventory-content{flex-direction:column;flex:1;min-height:0;display:flex;overflow:hidden}.inventory-top-card{background:var(--sidebar-card-bg);border-radius:var(--sidebar-card-radius);box-shadow:var(--card-shadow);justify-content:space-between;align-items:center;padding:6px;transition:background .3s,box-shadow .3s;display:flex}.inventory-top-card-left{border-radius:10px;align-items:center;gap:8px;min-height:36px;margin:0 4px;padding:8px 12px 8px 13px;display:flex}.inventory-title{font-size:var(--h1);color:var(--sidebar-text-active);white-space:nowrap;margin:0;font-weight:700;line-height:1}.inventory-count-badge{background:var(--border-color);min-width:20px;height:20px;color:var(--text-secondary);border-radius:5px;justify-content:center;align-items:center;padding:0 6px;font-size:.68rem;font-weight:600;display:inline-flex}.inventory-badge{border-radius:5px;justify-content:center;align-items:center;min-width:20px;height:20px;margin-left:8px;padding:0 6px;font-size:.68rem;font-weight:600;display:inline-flex}.inventory-badge.new-badge{background:var(--accent);color:#fff}.inventory-badge.new-badge:before{content:"";background:currentColor;border-radius:50%;width:6px;height:6px;margin-right:5px;animation:1.5s ease-in-out infinite pulse;display:inline-block}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.inventory-top-card-right-group{border-radius:10px;align-items:center;gap:10px;min-height:44px;margin:0 4px;padding:8px 12px;display:flex}.inventory-sort-select{border-radius:6px;width:auto;min-width:120px;height:28px;font-size:.78rem}.inventory-sort-select .custom-select-trigger{background:var(--content-bg);border:none;border-radius:6px;height:28px;padding:0 10px;font-size:.78rem}.inventory-action-btn{background:var(--content-bg);height:28px;color:var(--text-secondary);cursor:pointer;white-space:nowrap;border:none;border-radius:6px;justify-content:center;align-items:center;gap:5px;padding:0 12px;font-size:.78rem;font-weight:600;transition:background .15s,color .15s;display:flex}.inventory-action-btn svg{width:13px;height:13px}.inventory-action-btn:hover{background:var(--sidebar-hover);color:var(--text-primary)}.inventory-action-btn:active{transform:scale(.97)}.inventory-action-btn.primary{background:var(--accent);color:#fff}.inventory-action-btn.primary:hover{opacity:.9;background:var(--accent);color:#fff}.inventory-action-btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.inventory-expand-btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.inventory-card-action-btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.inventory-main-layout{flex:1;gap:12px;min-width:0;min-height:0;display:flex}.inventory-product-table-card{background:var(--header-bg);min-width:0;box-shadow:var(--card-shadow);border-radius:12px;flex-direction:column;flex:1;padding:0 12px;transition:background .3s,box-shadow .3s;display:flex;position:relative;overflow:hidden}.inventory-table-wrapper{flex:1;min-height:0;padding-bottom:8px;overflow-y:auto}.inventory-table-wrapper::-webkit-scrollbar{display:none}.inventory-table-wrapper{scrollbar-width:none}.inventory-table{border-collapse:separate;border-spacing:0;width:100%;font-size:.85rem}.inventory-table .col-image{width:64px}.inventory-table .col-sku{width:110px}.inventory-table .col-name{width:auto}.inventory-table .col-category{width:130px}.inventory-table .col-price{width:110px}.inventory-table .col-stock{width:80px}.inventory-table .col-expand{width:44px}.inventory-table thead{z-index:1;background:var(--header-bg);transition:background .3s;position:sticky;top:0}.inventory-table thead tr{transition:border-color .3s}.inventory-table th{text-align:left;text-transform:uppercase;letter-spacing:.6px;color:var(--text-tertiary);white-space:nowrap;border-bottom:1px solid var(--border-color);-webkit-user-select:none;user-select:none;padding:12px 16px;font-size:.7rem;font-weight:600;transition:color .3s,border-color .3s}.inventory-table th.sortable{cursor:pointer;transition:color .15s}.inventory-table th.sortable:hover{color:var(--text-primary)}.sort-arrow{opacity:.3;align-items:center;margin-left:4px;transition:opacity .15s,transform .15s;display:inline-flex}.sort-arrow svg{width:12px;height:12px}.sort-arrow.active{opacity:1;color:var(--accent)}.sort-arrow.active.desc{transform:rotate(180deg)}.inventory-table td{border-bottom:1px solid var(--border-color);color:var(--text-primary);vertical-align:middle;padding:12px 16px;transition:background .3s,color .3s,border-color .3s}.inventory-table tbody tr:last-child td{border-bottom:none}.inventory-table tbody tr{transition:background .1s;animation:.4s both inventoryRowIn}@keyframes inventoryRowIn{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}.inventory-table tbody tr:first-child{animation-delay:0s}.inventory-table tbody tr:nth-child(2){animation-delay:50ms}.inventory-table tbody tr:nth-child(3){animation-delay:.1s}.inventory-table tbody tr:nth-child(4){animation-delay:.15s}.inventory-table tbody tr:nth-child(5){animation-delay:.2s}.inventory-table tbody tr:nth-child(6){animation-delay:.25s}.inventory-table tbody tr:nth-child(7){animation-delay:.3s}.inventory-table tbody tr:nth-child(8){animation-delay:.35s}.inventory-table tbody tr:nth-child(9){animation-delay:.4s}.inventory-table tbody tr:nth-child(10){animation-delay:.45s}.inventory-table tbody tr:nth-child(11){animation-delay:.5s}.inventory-table tbody tr:nth-child(12){animation-delay:.55s}.inventory-table tbody tr:nth-child(13){animation-delay:.6s}.inventory-table tbody tr:nth-child(14){animation-delay:.65s}.inventory-table tbody tr:nth-child(15){animation-delay:.7s}.inventory-table tbody tr:nth-child(16){animation-delay:.75s}.inventory-table tbody tr:nth-child(17){animation-delay:.8s}.inventory-table tbody tr:nth-child(18){animation-delay:.85s}.inventory-table tbody tr:nth-child(19){animation-delay:.9s}.inventory-table tbody tr:nth-child(20){animation-delay:.95s}.inventory-table tbody tr:hover .inventory-item-wrapper:not(.expanded) .inventory-item-main{background:var(--sidebar-hover)}.inventory-item-cell{padding:0!important}.inventory-item-wrapper{transition:background .2s}.row-low-stock .inventory-item-name{color:#f59e0b}.row-critical .inventory-item-name{color:#ef4444}.inventory-item-wrapper.expanded,.row-low-stock .inventory-item-wrapper.expanded,.row-critical .inventory-item-wrapper.expanded{background:#8080801a}.inventory-table tbody tr:last-child .inventory-item-wrapper{border-bottom:none}.inventory-item-main{cursor:pointer;grid-template-columns:64px 110px 1fr 130px 110px 80px 44px;align-items:center;min-height:48px;padding:0 4px;transition:background .1s;display:grid}.inventory-item-cell-content{align-items:center;padding:12px;display:flex}.inventory-item-cell-content.col-expand{justify-content:center}.inventory-item-cell-content.col-category{text-align:center;justify-content:center;padding-left:0;padding-right:0}.inventory-item-cell-content.col-stock{text-align:center;justify-content:center}.inventory-table th.col-category{text-align:center;padding:12px 0}.inventory-table th.col-stock,.inventory-table td.col-stock{text-align:center}.inventory-item-cell-content.col-name{overflow:hidden}.inventory-item-detail{border-top:1px solid var(--border-color);flex-direction:column;gap:12px;padding:4px 16px 16px;display:flex}.inventory-detail-content{align-items:flex-start;gap:16px;display:flex}.inventory-item-icon{background:var(--content-bg);border-radius:8px;justify-content:center;align-items:center;width:32px;height:32px;transition:background .3s;display:flex}.inventory-item-icon svg{width:16px;height:16px;color:var(--text-secondary)}.inventory-item-name{color:var(--text-primary);white-space:nowrap;text-overflow:ellipsis;font-size:.85rem;font-weight:500;overflow:hidden}.inventory-item-category{white-space:nowrap;border-radius:5px;align-items:center;height:22px;padding:0 8px;font-size:.68rem;font-weight:500;transition:background .3s,color .3s;display:inline-flex}.col-price{font-variant-numeric:tabular-nums;font-weight:500}.inventory-item-stock-badge{font-variant-numeric:tabular-nums;border-radius:5px;justify-content:center;align-items:center;min-width:28px;height:22px;padding:0 8px;font-size:.75rem;font-weight:600;display:inline-flex}.inventory-item-stock-badge.in-stock{color:#22c55e;background:#22c55e1f}.inventory-item-stock-badge.low-stock{color:#f59e0b;background:#f59e0b1f}.inventory-item-stock-badge.out-of-stock{color:#ef4444;background:#ef44441f}.inventory-menu-wrapper{position:relative}.inventory-kebab-btn{width:28px;height:28px;color:var(--text-secondary);cursor:pointer;background:0 0;border:none;border-radius:6px;justify-content:center;align-items:center;transition:background .12s,color .12s;display:flex}.inventory-kebab-btn:hover{background:var(--sidebar-hover);color:var(--text-primary)}.inventory-kebab-btn svg{width:16px;height:16px}.inventory-dropdown-menu{background:var(--header-bg);border:1px solid var(--border-color);z-index:100;isolation:isolate;border-radius:8px;min-width:180px;padding:4px;animation:.12s inventoryDropdownIn;position:absolute;top:100%;right:0;box-shadow:0 2px 8px #00000014,0 1px 3px #0000000f}@keyframes inventoryDropdownIn{0%{opacity:0;transform:translateY(-4px)scale(.97)}to{opacity:1;transform:translateY(0)scale(1)}}.inventory-dropdown-item{width:100%;color:var(--text-secondary);cursor:pointer;text-align:left;z-index:1;background:0 0;border:none;border-radius:6px;align-items:center;gap:8px;padding:8px 10px;font-family:inherit;font-size:.78rem;font-weight:500;transition:background .1s,color .1s;display:flex;position:relative}.inventory-dropdown-item:hover{background:var(--sidebar-hover);color:var(--text-primary)}.inventory-dropdown-item.danger:hover{color:#ef4444;background:#ef44441a}.inventory-dropdown-item svg{flex-shrink:0;width:14px;height:14px}.inventory-detail-grid{flex:1;grid-template-columns:repeat(3,1fr);gap:16px;min-width:0;padding:14px 0;display:grid}.inventory-detail-field{flex-direction:column;gap:4px;display:flex}.inventory-detail-label{color:var(--text-secondary);text-transform:uppercase;letter-spacing:.3px;font-size:.7rem;font-weight:500}.inventory-detail-value{color:var(--text-primary);font-size:.85rem;font-weight:600}.inventory-card-actions{border-top:1px solid var(--border-color);justify-content:flex-end;align-items:center;gap:8px;margin-top:12px;padding-top:12px;display:flex}.inventory-card-action-btn{border:1px solid var(--border-color);height:30px;color:var(--text-secondary);cursor:pointer;background:0 0;border-radius:6px;justify-content:center;align-items:center;gap:5px;padding:0 12px;font-family:inherit;font-size:.75rem;font-weight:500;transition:all .12s;display:flex}.inventory-card-action-btn svg{width:13px;height:13px}.inventory-card-action-btn:hover{border-color:var(--accent);color:var(--accent)}.inventory-card-action-btn.danger:hover{border-color:var(--color-danger);color:var(--color-danger)}.inventory-empty{text-align:center;flex-direction:column;justify-content:center;align-items:center;min-height:320px;padding:40px 20px;display:flex}.inventory-empty-icon{background:var(--content-bg);border-radius:16px;justify-content:center;align-items:center;width:64px;height:64px;margin-bottom:16px;display:flex}.inventory-empty-icon svg{width:32px;height:32px;color:var(--text-tertiary)}.inventory-empty h3{color:var(--text-primary);margin-bottom:6px;font-size:1rem;font-weight:600}.inventory-empty p{color:var(--text-tertiary);max-width:280px;font-size:.85rem;line-height:1.5}.inventory-loading{text-align:center;flex-direction:column;flex:1;justify-content:center;align-items:center;min-height:0;display:flex}.inventory-loading p{color:var(--text-secondary);margin-top:12px;font-size:.85rem}.inventory-modal-overlay{z-index:1000;will-change:opacity;background:#00000073;justify-content:flex-end;align-items:stretch;animation:.2s forwards inventoryFadeIn;display:flex;position:fixed;top:0;bottom:0;left:0;right:0}.inventory-modal-overlay.closing{animation:.15s forwards inventoryFadeOut}@keyframes inventoryFadeIn{0%{opacity:0}to{opacity:1}}@keyframes inventoryFadeOut{0%{opacity:1}to{opacity:0}}.inventory-form-modal{background:var(--header-bg);border-radius:var(--radius-lg);will-change:transform;flex-direction:column;width:680px;max-width:90vw;height:auto;margin:12px 12px 12px 0;transition:background .3s;animation:.2s forwards inventorySlideInRight;display:flex;overflow:hidden;box-shadow:0 4px 24px #0000001f}.inventory-form-modal.closing{animation:.15s forwards inventorySlideOutRight}@keyframes inventorySlideInRight{0%{transform:translate(100%)}to{transform:translate(0)}}@keyframes inventorySlideOutRight{0%{transform:translate(0)}to{transform:translate(100%)}}.inventory-form-split{flex:1;min-height:0;display:flex;overflow:hidden}.inventory-form-left{border-right:1px solid var(--border-color);flex-direction:column;flex:1;min-width:0;padding:20px;transition:border-color .3s;display:flex;overflow-y:auto}.inventory-form-left::-webkit-scrollbar{width:4px}.inventory-form-left::-webkit-scrollbar-track{background:0 0}.inventory-form-left::-webkit-scrollbar-thumb{background:var(--border-color);border-radius:2px}.inventory-form-right{background:var(--content-bg);flex-direction:column;flex-shrink:0;width:260px;padding:20px;transition:background .3s;display:flex;overflow-y:auto}.inventory-form-header{border-bottom:1px solid var(--border-color);flex-shrink:0;justify-content:space-between;align-items:center;padding:16px 20px;transition:border-color .3s;display:flex}.inventory-form-header-left{align-items:center;gap:10px;display:flex}.inventory-form-header-icon{background:var(--accent-light);border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;width:40px;height:40px;display:flex}.inventory-form-header-icon svg{width:20px;height:20px;color:var(--accent)}.inventory-form-header h3{color:var(--text-primary);margin:0;font-size:1.05rem;font-weight:600}.inventory-form-header p{color:var(--text-secondary);margin:2px 0 0;font-size:.75rem}.inventory-form-close{width:32px;height:32px;color:var(--text-secondary);cursor:pointer;background:0 0;border:none;border-radius:8px;justify-content:center;align-items:center;transition:background .12s,color .12s;display:flex}.inventory-form-close:hover{background:var(--sidebar-hover);color:var(--text-primary)}.inventory-form-close svg{width:18px;height:18px}.inventory-form-body{flex:1;min-height:0;overflow-y:auto}.inventory-form-section{padding:16px 0}.inventory-form-section:first-child{padding-top:0}.inventory-form-section-title{text-transform:uppercase;letter-spacing:.6px;color:var(--text-secondary);margin-bottom:12px;font-size:.72rem;font-weight:600}.inventory-form-row{grid-template-columns:1fr 1fr;gap:12px;display:grid}.inventory-form-row.full{grid-template-columns:1fr}.inventory-form-field{flex-direction:column;gap:5px;display:flex}.inventory-form-field label{color:var(--text-secondary);font-size:.75rem;font-weight:500}.inventory-form-field input,.inventory-form-field select,.inventory-form-field textarea{background:var(--content-bg);border:1px solid var(--border-color);width:100%;height:36px;color:var(--text-primary);border-radius:8px;outline:none;padding:0 10px;font-family:inherit;font-size:.82rem;transition:background .3s,border-color .15s,color .3s}.inventory-form-field input:focus,.inventory-form-field select:focus,.inventory-form-field textarea:focus{border-color:var(--accent)}.inventory-form-field input::placeholder,.inventory-form-field textarea::placeholder{color:var(--text-secondary)}.inventory-form-field textarea{resize:vertical;height:80px;padding:8px 10px}.inventory-form-field select{cursor:pointer;-webkit-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2371717A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");background-position:right 10px center;background-repeat:no-repeat;padding-right:28px}.inventory-form-error{color:#ef4444;background:#ef44441a;border:1px solid #ef444440;border-radius:8px;align-items:center;gap:8px;margin-bottom:18px;padding:10px 14px;font-size:.84rem;display:flex}.inventory-form-error svg{flex-shrink:0;width:16px;height:16px}.inventory-form-footer{border-top:1px solid var(--border-color);flex-shrink:0;justify-content:flex-end;align-items:center;gap:8px;padding:14px 20px;transition:border-color .3s;display:flex}.inventory-form-cancel-btn{border:1px solid var(--border-color);height:36px;color:var(--text-secondary);cursor:pointer;background:0 0;border-radius:8px;padding:0 16px;font-family:inherit;font-size:.82rem;font-weight:500;transition:background .12s,color .12s,border-color .12s}.inventory-form-cancel-btn:hover{background:var(--sidebar-hover);color:var(--text-primary)}.inventory-form-submit-btn{background:var(--accent);color:#fff;cursor:pointer;border:none;border-radius:8px;height:36px;padding:0 20px;font-family:inherit;font-size:.82rem;font-weight:600;transition:opacity .12s,transform .1s}.inventory-form-submit-btn:hover{opacity:.9}.inventory-form-submit-btn:active{transform:scale(.98)}.inventory-form-submit-btn:disabled{opacity:.5;cursor:not-allowed}.inventory-form-preview{flex-direction:column;gap:16px;display:flex}.inventory-form-preview-title{color:var(--text-primary);font-size:.78rem;font-weight:600}.inventory-form-preview-card{background:var(--header-bg);border-radius:10px;flex-direction:column;gap:10px;padding:14px;transition:background .3s;display:flex}.inventory-form-preview-name{color:var(--text-primary);font-size:.88rem;font-weight:600}.inventory-form-preview-sku{color:var(--text-secondary);font-family:SF Mono,Fira Code,Consolas,monospace;font-size:.72rem}.inventory-form-preview-meta{border-top:1px solid var(--border-color);flex-direction:column;gap:6px;padding-top:8px;transition:border-color .3s;display:flex}.inventory-form-preview-row{justify-content:space-between;align-items:center;display:flex}.inventory-form-preview-row span:first-child{color:var(--text-secondary);font-size:.72rem}.inventory-form-preview-row span:last-child{color:var(--text-primary);font-size:.78rem;font-weight:500}.inventory-form-history{flex-direction:column;gap:10px;display:flex}.inventory-form-history-title{color:var(--text-primary);font-size:.78rem;font-weight:600}.inventory-form-history-empty{text-align:center;color:var(--text-secondary);padding:20px 0;font-size:.75rem}.inventory-form-history-list{scrollbar-width:thin;scrollbar-color:var(--border-color) transparent;flex-direction:column;gap:8px;max-height:240px;display:flex;overflow-y:auto}.inventory-form-history-item{background:var(--surface-bg,#ffffff08);border:1px solid var(--border-color);border-radius:8px;padding:8px 10px}.inventory-form-history-item-header{justify-content:space-between;align-items:center;margin-bottom:4px;display:flex}.inventory-form-history-badge{color:#fff;text-transform:uppercase;letter-spacing:.3px;border-radius:10px;padding:2px 8px;font-size:.65rem;font-weight:600}.inventory-form-history-date{color:var(--text-secondary);font-size:.68rem}.inventory-form-history-item-body{align-items:center;gap:12px;display:flex}.inventory-form-history-change{font-variant-numeric:tabular-nums;font-size:.75rem;font-weight:600}.inventory-form-history-change.positive{color:#22c55e}.inventory-form-history-change.negative{color:#ef4444}.inventory-form-history-range{color:var(--text-secondary);font-size:.7rem}.inventory-form-history-item-notes{color:var(--text-secondary);margin-top:4px;font-size:.68rem;font-style:italic}.inventory-expanded-header{align-items:center;gap:12px;padding:14px 0 10px;display:flex}.inventory-expanded-icon{border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;width:40px;height:40px;display:flex}.inventory-expanded-info{flex-direction:column;gap:4px;min-width:0;display:flex}.inventory-expanded-name{color:var(--text-primary);white-space:nowrap;text-overflow:ellipsis;font-size:.95rem;font-weight:600;overflow:hidden}.inventory-expanded-meta{align-items:center;gap:8px;display:flex}.inventory-expanded-sku{color:var(--text-secondary);font-family:SF Mono,Fira Code,Consolas,monospace;font-size:.72rem}.inventory-expanded-details{border-bottom:1px solid var(--border-color);flex-wrap:wrap;gap:20px;padding:8px 0 12px;transition:border-color .3s;display:flex}.inventory-expanded-history{padding:12px 0}.inventory-expanded-history-header{justify-content:space-between;align-items:center;margin-bottom:10px;display:flex}.inventory-expanded-history-title{color:var(--text-primary);font-size:.78rem;font-weight:600}.inventory-expanded-view-all{color:var(--accent);cursor:pointer;background:0 0;border:none;padding:0;font-family:inherit;font-size:.72rem;font-weight:500;transition:opacity .15s}.inventory-expanded-view-all:hover{opacity:.8}.inventory-history-timeline{flex-direction:column;gap:0;padding-left:16px;display:flex;position:relative}.inventory-history-timeline:before{content:"";background:var(--border-color);border-radius:1px;width:2px;transition:background .3s;position:absolute;top:6px;bottom:6px;left:5px}.inventory-history-item{align-items:flex-start;gap:12px;padding:6px 0;display:flex;position:relative}.inventory-history-dot{z-index:1;border-radius:50%;flex-shrink:0;width:10px;height:10px;position:absolute;top:10px;left:-16px}.inventory-history-content{flex-direction:column;gap:2px;min-width:0;display:flex}.inventory-history-date{color:var(--text-secondary);font-size:.68rem;font-weight:500}.inventory-history-desc{color:var(--text-primary);font-size:.78rem}.inventory-history-staff{align-items:center;gap:6px;margin-top:2px;display:flex}.inventory-history-staff span{color:var(--text-secondary);font-size:.72rem}.inventory-history-avatar{object-fit:cover;border-radius:50%;width:18px;height:18px}.inventory-history-avatar-placeholder{background:var(--border-color);width:18px;height:18px;color:var(--text-secondary);border-radius:50%;justify-content:center;align-items:center;font-size:.6rem;font-weight:600;display:flex}.inventory-product-detail-header{align-items:center;gap:12px;display:flex}.inventory-product-detail-icon{border-radius:12px;flex-shrink:0;justify-content:center;align-items:center;width:48px;height:48px;display:flex}.inventory-product-detail-info{flex-direction:column;gap:4px;min-width:0;display:flex}.inventory-product-detail-name{color:var(--text-primary);white-space:nowrap;text-overflow:ellipsis;font-size:.92rem;font-weight:600;overflow:hidden}.inventory-product-detail-meta{align-items:center;gap:8px;display:flex}.inventory-product-detail-category{white-space:nowrap;border-radius:5px;align-items:center;height:20px;padding:0 7px;font-size:.68rem;font-weight:500;display:inline-flex}.inventory-product-detail-sku{color:var(--text-secondary);font-family:SF Mono,Fira Code,Consolas,monospace;font-size:.72rem}.inventory-history-empty{color:var(--text-secondary);align-items:center;gap:8px;padding:12px 0;font-size:.75rem;display:flex}.inventory-history-skeleton{align-items:center;gap:12px;padding:6px 0;display:flex;position:relative}.inventory-history-skeleton-dot{background:var(--border-color);z-index:1;border-radius:50%;flex-shrink:0;width:10px;height:10px;animation:1.5s ease-in-out infinite skeletonPulse;position:absolute;top:10px;left:-16px}.inventory-history-skeleton-line{background:var(--border-color);border-radius:4px;flex:1;max-width:160px;height:12px;animation:1.5s ease-in-out infinite skeletonPulse}.inventory-history-skeleton:nth-child(2) .inventory-history-skeleton-line{animation-delay:.15s}.inventory-history-skeleton:nth-child(3) .inventory-history-skeleton-line{animation-delay:.3s}@keyframes skeletonPulse{0%,to{opacity:.4}50%{opacity:.8}}.inventory-adjust-product{align-items:center;gap:12px;display:flex}.inventory-adjust-product-icon{border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;width:40px;height:40px;display:flex}.inventory-adjust-product-info{flex-direction:column;gap:4px;min-width:0;display:flex}.inventory-adjust-product-name{color:var(--text-primary);white-space:nowrap;text-overflow:ellipsis;font-size:.92rem;font-weight:600;overflow:hidden}.inventory-adjust-product-meta{align-items:center;gap:8px;display:flex}.inventory-adjust-product-category{white-space:nowrap;border-radius:5px;align-items:center;height:20px;padding:0 7px;font-size:.68rem;font-weight:500;display:inline-flex}.inventory-adjust-product-sku{color:var(--text-secondary);font-family:SF Mono,Fira Code,Consolas,monospace;font-size:.72rem}.inventory-adjust-stock-header{justify-content:space-between;align-items:center;margin-bottom:12px;display:flex}.inventory-adjust-stock-title{color:#22c55e;align-items:center;gap:6px;font-size:.82rem;font-weight:600;display:flex}.inventory-adjust-stock-onhand{color:var(--text-secondary);font-size:.78rem}.inventory-adjust-stock-onhand strong{color:var(--text-primary)}.inventory-adjust-stock-input{background:var(--header-bg);border:1.5px solid var(--border-color);width:100%;height:44px;color:var(--text-primary);-moz-appearance:textfield;border-radius:10px;outline:none;margin-bottom:12px;padding:0 14px;font-family:inherit;font-size:1.1rem;font-weight:500;transition:border-color .15s}.inventory-adjust-stock-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.inventory-adjust-stock-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.inventory-adjust-stock-input:focus{border-color:#22c55e}.inventory-adjust-stock-input::placeholder{color:var(--text-secondary)}.inventory-adjust-quick-btns{grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:12px;display:grid}.inventory-adjust-quick-btn{color:#22c55e;cursor:pointer;background:#22c55e14;border:1.5px solid #22c55e33;border-radius:8px;height:38px;padding:0;font-family:inherit;font-size:.85rem;font-weight:600;transition:background .12s,border-color .12s}.inventory-adjust-quick-btn:hover{background:#22c55e26;border-color:#22c55e}.inventory-adjust-quick-btn:active{transform:scale(.97)}.inventory-adjust-stock-summary{color:var(--text-secondary);text-align:center;padding:8px 0;font-size:.82rem}.inventory-adjust-stock-summary strong{color:#22c55e}.inventory-adjust-reason-grid{grid-template-columns:1fr 1fr;gap:8px;display:grid}.inventory-adjust-reason-btn{border:1.5px solid var(--border-color);color:var(--text-secondary);cursor:pointer;background:0 0;border-radius:8px;justify-content:center;align-items:center;gap:6px;min-height:40px;padding:10px 8px;font-family:inherit;font-size:.78rem;font-weight:500;transition:all .12s;display:flex}.inventory-adjust-reason-btn svg{flex-grow:0;flex-shrink:0;width:14px;height:14px}.inventory-adjust-reason-btn:hover{color:#22c55e;border-color:#22c55e66}.inventory-adjust-reason-btn.active{color:#22c55e;background:#22c55e14;border-color:#22c55e}.inventory-adjust-note-input{background:var(--header-bg);border:1px solid var(--border-color);width:100%;min-height:72px;color:var(--text-primary);resize:vertical;border-radius:8px;outline:none;padding:10px 12px;font-family:inherit;font-size:.82rem;transition:border-color .15s}.inventory-adjust-note-input:focus{border-color:var(--border-color)}.inventory-adjust-note-input::placeholder{color:var(--text-secondary)}.inventory-add-modal{background:var(--header-bg);border-radius:var(--radius-lg);will-change:transform;flex-direction:column;width:480px;max-width:90vw;height:auto;margin:12px 12px 12px 0;transition:background .3s;animation:.2s forwards inventorySlideInRight;display:flex;overflow:hidden;box-shadow:0 4px 24px #0000001f}.inventory-add-modal.closing{animation:.15s forwards inventorySlideOutRight}.inventory-add-header{border-bottom:1px solid var(--border-color);flex-shrink:0;justify-content:space-between;align-items:center;padding:16px 20px;transition:border-color .3s;display:flex}.inventory-add-header-left{align-items:center;gap:10px;display:flex}.inventory-add-header h3{color:var(--text-primary);margin:0;font-size:1.05rem;font-weight:600}.inventory-add-header p{color:var(--text-secondary);margin:2px 0 0;font-size:.75rem}.inventory-add-body{flex-direction:column;flex:1;gap:12px;min-height:0;padding:16px 20px 20px;display:flex;overflow-y:auto}.inventory-add-body::-webkit-scrollbar{display:none}.inventory-add-body{scrollbar-width:none}.inventory-add-section{border:1px solid var(--border-color);border-radius:10px;padding:16px;transition:border-color .3s;box-shadow:0 1px 3px #0000000f}.inventory-add-section+.inventory-add-section{margin-top:12px}.inventory-add-section-title{text-transform:uppercase;letter-spacing:.6px;color:var(--text-primary);align-items:center;gap:6px;margin-bottom:14px;font-size:.72rem;font-weight:700;display:flex}.inventory-add-section-title svg{width:14px;height:14px;color:var(--text-secondary)}.inventory-add-field{flex-direction:column;gap:5px;margin-bottom:12px;display:flex}.inventory-add-field:last-child{margin-bottom:0}.inventory-add-field label{color:var(--text-secondary);align-items:center;gap:4px;font-size:.75rem;font-weight:500;display:flex}.inventory-add-optional{color:var(--text-tertiary);font-size:.72rem;font-weight:400}.inventory-add-required{color:#ef4444}.inventory-add-field input,.inventory-add-field select,.inventory-add-field textarea{background:var(--header-bg);border:1px solid var(--border-color);width:100%;height:38px;color:var(--text-primary);border-radius:8px;outline:none;padding:9px 12px;font-family:inherit;font-size:.82rem;transition:border-color .15s}.inventory-add-field input:focus,.inventory-add-field select:focus,.inventory-add-field textarea:focus{border-color:var(--border-color);background:var(--header-bg);box-shadow:none}.inventory-add-field input::placeholder,.inventory-add-field textarea::placeholder{color:var(--text-secondary)}.inventory-add-field textarea{resize:vertical;height:auto;min-height:72px;padding:10px 12px;line-height:1.5}.inventory-add-field input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.inventory-add-field input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.inventory-add-field input[type=number]{-webkit-appearance:textfield;appearance:textfield}.inventory-add-field-error{color:#ef4444;font-size:.72rem}.inventory-add-field .custom-select-wrapper{width:100%}.inventory-add-field .custom-select-trigger{background:var(--header-bg);border:1px solid var(--border-color);border-radius:8px;height:38px;padding:9px 12px;font-size:.82rem}.inventory-add-field .custom-select-trigger:hover:not(.disabled){border-color:var(--border-color)}.inventory-add-field .custom-select-option{font-size:.82rem}.inventory-add-field .custom-datepicker-wrapper{width:100%;position:relative}.inventory-add-field .custom-datepicker-input{background:var(--header-bg);border:1px solid var(--border-color);border-radius:8px;height:38px;padding:9px 40px 9px 12px;font-size:.82rem}.inventory-add-field .custom-datepicker-dropdown{z-index:10}.inventory-add-field-right .custom-datepicker-dropdown{left:auto;right:0}.inventory-add-row{grid-template-columns:1fr 1fr;gap:12px;margin-bottom:12px;display:grid}.inventory-add-row:last-child{margin-bottom:0}.inventory-add-manage-link{color:var(--accent);cursor:pointer;background:0 0;border:none;align-items:center;gap:3px;margin-left:6px;padding:0;font-family:inherit;font-size:.72rem;font-weight:500;transition:opacity .15s;display:inline-flex}.inventory-add-manage-link:hover{opacity:.8}.inventory-add-photo-upload{background:var(--header-bg);border:1.5px dashed var(--border-color);cursor:pointer;border-radius:8px;align-items:center;gap:12px;padding:14px 16px;transition:border-color .15s;display:flex}.inventory-add-photo-upload:hover{border-color:var(--accent);background:var(--accent-light)}.inventory-add-photo-icon{background:var(--header-bg);border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;width:36px;height:36px;display:flex}.inventory-add-photo-icon svg{width:18px;height:18px;color:var(--text-secondary)}.inventory-add-photo-hint{color:var(--text-secondary);font-size:.78rem}.inventory-add-photo-preview{border:1px solid var(--border-color);border-radius:8px;justify-content:center;align-items:center;width:100%;max-width:200px;display:flex;position:relative;overflow:hidden}.inventory-add-photo-preview-img{object-fit:cover;width:100%;height:140px;display:block}.inventory-add-photo-preview-overlay{opacity:0;background:#00000080;justify-content:center;align-items:center;gap:6px;transition:opacity .15s;display:flex;position:absolute;top:0;bottom:0;left:0;right:0}.inventory-add-photo-preview:hover .inventory-add-photo-preview-overlay{opacity:1}.inventory-add-photo-preview-btn{color:#1a1a1a;cursor:pointer;background:#ffffffe6;border:none;border-radius:6px;padding:5px 10px;font-family:inherit;font-size:.72rem;font-weight:600;transition:background .12s}.inventory-add-photo-preview-btn:hover{background:#fff}.inventory-add-photo-preview-btn.danger{color:#fff;background:#ef4444e6}.inventory-add-photo-preview-btn.danger:hover{background:#ef4444}.inventory-add-photo-preview-btn:disabled{opacity:.5;cursor:not-allowed}.inventory-add-photo-uploading{background:#0006;justify-content:center;align-items:center;display:flex;position:absolute;top:0;bottom:0;left:0;right:0}.inventory-item-cell-content.col-image{justify-content:center;padding:8px 12px}.inventory-item-thumb{object-fit:cover;border:1px solid var(--border-color);border-radius:8px;flex-shrink:0;width:40px;height:40px;transition:border-color .3s}.inventory-item-thumb-placeholder{background:var(--content-bg);border:1px solid var(--border-color);border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;width:40px;height:40px;transition:background .3s,border-color .3s;display:flex}.inventory-item-thumb-placeholder svg{width:18px;height:18px;color:var(--text-tertiary)}.inventory-detail-image-wrapper{flex-shrink:0;margin-top:18px}.inventory-detail-image{object-fit:cover;border:1px solid var(--border-color);border-radius:10px;width:160px;height:160px;transition:border-color .3s}.inventory-add-barcode-row{align-items:stretch;gap:8px;display:flex}.inventory-add-barcode-input{flex:1}.inventory-add-scan-btn{background:var(--header-bg);border:1px solid var(--border-color);height:38px;color:var(--text-primary);cursor:pointer;white-space:nowrap;border-radius:8px;align-items:center;gap:5px;padding:0 14px;font-family:inherit;font-size:.82rem;font-weight:500;transition:border-color .15s;display:flex}.inventory-add-scan-btn svg{width:15px;height:15px}.inventory-add-scan-btn:hover{border-color:var(--accent)}.inventory-add-barcode-hint{color:var(--text-secondary);align-items:flex-start;gap:5px;margin-top:4px;font-size:.72rem;line-height:1.4;display:flex}.inventory-add-checkbox{color:var(--text-primary);cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;gap:8px;padding:10px 0;font-size:.82rem;display:flex}.inventory-add-checkbox input[type=checkbox]{display:none}.inventory-add-checkbox-mark{border:1.5px solid var(--border-color);border-radius:4px;flex-shrink:0;justify-content:center;align-items:center;width:18px;height:18px;transition:background .12s,border-color .12s;display:flex}.inventory-add-checkbox input[type=checkbox]:checked+.inventory-add-checkbox-mark{background:var(--accent);border-color:var(--accent)}.inventory-add-checkbox input[type=checkbox]:checked+.inventory-add-checkbox-mark:after{content:"";border:2px solid #fff;border-width:0 2px 2px 0;width:5px;height:9px;display:block;transform:rotate(45deg)translateY(-1px)}.inventory-add-checkbox:hover .inventory-add-checkbox-mark{border-color:var(--accent)}.inventory-add-footer{border-top:1px solid var(--border-color);background:var(--header-bg);border-radius:0 0 16px 16px;flex-shrink:0;align-items:center;gap:12px;padding:14px 20px;transition:border-color .3s;display:flex}.inventory-add-footer .inventory-form-cancel-btn{border:1px solid var(--border-color);height:40px;color:var(--text-secondary);cursor:pointer;background:0 0;border-radius:8px;flex:1;padding:0 16px;font-family:inherit;font-size:.85rem;font-weight:500;transition:background .12s,color .12s,border-color .12s}.inventory-add-footer .inventory-form-cancel-btn:hover{background:var(--sidebar-hover);color:var(--text-primary)}.inventory-add-submit-btn{background:var(--accent);color:#fff;cursor:pointer;border:none;border-radius:8px;flex:1;justify-content:center;align-items:center;gap:6px;height:40px;padding:0 20px;font-family:inherit;font-size:.85rem;font-weight:600;transition:opacity .12s,transform .1s;display:flex}.inventory-add-submit-btn svg{width:16px;height:16px}.inventory-add-submit-btn:hover{opacity:.9}.inventory-add-submit-btn:active{transform:scale(.98)}.inventory-add-submit-btn:disabled{opacity:.5;cursor:not-allowed}@media (max-width:1024px){.inventory-form-modal{width:100%;max-width:calc(100vw - 24px)}.inventory-add-modal{width:100%;max-width:calc(100vw - 24px);margin:12px}.inventory-form-right,.inventory-adjust-right{display:none}.inventory-form-left{border-right:none}}@media (max-width:768px){.inventory-page{margin:0;padding:12px}.inventory-top-card{flex-direction:column;align-items:stretch;gap:8px}.inventory-top-card-left{justify-content:center}.inventory-top-card-right-group{flex-wrap:wrap;justify-content:center}.inventory-main-layout{flex-direction:column}.inventory-table-wrapper{overflow-x:auto}.inventory-table{min-width:680px}.inventory-detail-grid{grid-template-columns:1fr 1fr}.inventory-form-split{flex-direction:column}.inventory-form-left{border-right:none;border-bottom:1px solid var(--border-color)}.inventory-form-right{width:100%}.inventory-adjust-split{flex-direction:column}.inventory-adjust-left{border-right:none;border-bottom:1px solid var(--border-color)}.inventory-adjust-right{width:100%}.inventory-adjust-fields,.inventory-adjust-reason-grid,.inventory-add-row{grid-template-columns:1fr}.inventory-add-modal{border-radius:0;width:100%;max-width:100vw;margin:0}}.inventory-title,.inventory-item-name,.inventory-detail-label,.inventory-detail-value,.inventory-form-section-title,.inventory-form-preview-title,.inventory-form-preview-name,.inventory-form-preview-sku,.inventory-form-history-title,.inventory-form-history-empty,.inventory-form-history-date,.inventory-form-history-range,.inventory-form-history-item-notes,.inventory-expanded-name,.inventory-expanded-sku,.inventory-expanded-history-title,.inventory-history-date,.inventory-history-desc,.inventory-product-detail-name,.inventory-product-detail-sku,.inventory-history-empty,.inventory-adjust-product-name,.inventory-adjust-product-sku,.inventory-adjust-stock-onhand,.inventory-adjust-stock-summary,.inventory-add-section-title,.inventory-add-photo-hint,.inventory-add-barcode-hint,.inventory-add-checkbox{transition:color .3s}.inventory-count-badge,.inventory-history-avatar-placeholder{transition:background .3s,color .3s}.inventory-item-detail,.inventory-card-actions,.inventory-add-photo-preview{transition:border-color .3s}.inventory-dropdown-menu,.inventory-form-history-item{transition:background .3s,border-color .3s}.inventory-empty-icon,.inventory-add-photo-icon,.inventory-history-skeleton-dot,.inventory-history-skeleton-line{transition:background .3s}.invoice-page{flex-direction:column;flex:1;gap:12px;min-height:0;margin:-32px;padding:12px 12px 12px 0;transition:background .3s,color .3s;display:flex}.invoice-body{flex-direction:column;flex:1;min-height:0;display:flex}.invoice-content{flex-direction:column;flex:1;gap:12px;min-height:0;transition:background .3s;display:flex}.invoice-top-card{background:var(--sidebar-card-bg);border-radius:var(--sidebar-card-radius);box-shadow:var(--card-shadow);justify-content:space-between;align-items:center;padding:6px;transition:background .3s;display:flex}.invoice-top-card-left{border-radius:10px;align-items:center;min-height:36px;margin:0 4px;padding:8px 12px 8px 13px;display:flex}.invoice-title{font-size:var(--h1);color:var(--sidebar-text-active);white-space:nowrap;margin:0;font-weight:700;line-height:1}.invoice-count-badge{background:var(--border-color);min-width:20px;height:20px;color:var(--text-secondary);border-radius:5px;justify-content:center;align-items:center;margin-left:8px;padding:0 6px;font-size:.68rem;font-weight:600;display:inline-flex}.invoice-admin-toggle{border:1px solid var(--border-color);background:var(--content-bg);height:26px;color:var(--text-secondary);cursor:pointer;white-space:nowrap;border-radius:6px;align-items:center;gap:6px;margin-left:10px;padding:0 10px;font-family:inherit;font-size:.7rem;font-weight:600;transition:all .15s;display:inline-flex}.invoice-admin-toggle svg{flex-shrink:0;width:12px;height:12px}.invoice-admin-toggle-dot{background:#6b7280;border-radius:50%;flex-shrink:0;width:6px;height:6px;transition:background .2s,box-shadow .2s}.invoice-admin-toggle:hover{border-color:var(--accent);color:var(--text-primary)}.invoice-admin-toggle.active{color:var(--text-primary);background:#22c55e14;border-color:#22c55e4d}.invoice-admin-toggle.active .invoice-admin-toggle-dot{background:var(--color-success);box-shadow:0 0 4px #22c55e66}.invoice-top-card-right-group{border-radius:10px;align-items:center;gap:10px;min-height:36px;margin:0 4px;padding:8px 12px;display:flex}.invoice-separator{background:var(--border-color);flex-shrink:0;width:1px;height:16px;transition:background .3s}.invoice-search-wrapper{width:200px;position:relative}.invoice-search-icon{width:14px;height:14px;color:var(--text-secondary);pointer-events:none;position:absolute;top:50%;left:10px;transform:translateY(-50%)}.invoice-search-input{background:var(--content-bg);width:100%;height:28px;color:var(--text-primary);border:none;border-radius:6px;outline:none;padding:0 10px 0 28px;font-family:inherit;font-size:.78rem;transition:background .15s}.invoice-search-input:focus{background:var(--sidebar-hover)}[data-theme=light] .invoice-search-input:focus{background:var(--border-color)}.invoice-search-input::placeholder{color:var(--text-secondary)}.invoice-search-input:disabled{cursor:default}.invoice-toolbar-dropdowns{align-items:center;gap:10px;display:flex}.invoice-date-dropdown{position:relative}.invoice-date-btn{background:var(--content-bg);color:var(--text-secondary);cursor:pointer;border:none;border-radius:6px;align-items:center;gap:6px;height:28px;padding:0 10px;font-family:inherit;font-size:.78rem;font-weight:500;transition:background .15s,color .15s;display:flex}.invoice-date-btn:hover,.invoice-date-btn.open{background:var(--sidebar-hover);color:var(--text-primary)}.invoice-date-btn:disabled{cursor:default}.invoice-date-btn:disabled:hover{background:var(--content-bg)}.invoice-date-btn svg{width:13px;height:13px;color:var(--text-secondary)}.invoice-chevron{width:10px;height:10px;color:var(--text-secondary);transition:transform .2s}.invoice-chevron.open{transform:rotate(180deg)}.invoice-dropdown-menu{background:var(--header-bg);border:1px solid var(--border-color);z-index:50;border-radius:8px;min-width:160px;max-height:240px;padding:4px;position:absolute;top:calc(100% + 6px);right:0;overflow-y:auto;box-shadow:0 2px 8px #00000014,0 1px 3px #0000000f}.invoice-dropdown-menu::-webkit-scrollbar{width:4px}.invoice-dropdown-menu::-webkit-scrollbar-track{background:0 0}.invoice-dropdown-menu::-webkit-scrollbar-thumb{background:var(--border-color);border-radius:2px}.invoice-dropdown-item{text-align:left;width:100%;color:var(--text-secondary);cursor:pointer;white-space:nowrap;background:0 0;border:none;border-radius:4px;padding:6px 10px;font-family:inherit;font-size:.78rem;transition:background .12s,color .12s;display:block}.invoice-dropdown-item:hover,[data-theme=light] .invoice-dropdown-item:hover{background:var(--sidebar-hover);color:var(--text-primary)}.invoice-dropdown-item.active{background:var(--accent);color:#fff}.invoice-table-card{background:var(--header-bg);box-shadow:var(--card-shadow);border-radius:12px;flex-direction:column;flex:1;min-height:0;padding:0 12px;transition:background .3s,box-shadow .3s;display:flex;overflow:hidden}.invoice-table-wrapper{scrollbar-width:none;-ms-overflow-style:none;flex:auto;min-height:0;overflow:auto}.invoice-table-wrapper::-webkit-scrollbar{width:0;height:0}.invoice-table{table-layout:fixed;border-collapse:separate;border-spacing:0;width:100%}.invoice-table th,.invoice-table td{white-space:nowrap}.invoice-table thead{z-index:1;background:var(--header-bg);transition:background .3s;position:sticky;top:0}.invoice-table thead tr{border-bottom:none}.invoice-table th{background:var(--header-bg);text-transform:uppercase;letter-spacing:.6px;color:var(--text-tertiary);text-align:left;white-space:nowrap;border-bottom:1px solid var(--border-color);padding:14px;font-size:.7rem;font-weight:600;transition:background .3s,color .3s,border-color .3s}.invoice-table th.text-right,.invoice-table td.text-right{text-align:right}.invoice-table th.col-items,.invoice-table td.col-items,.invoice-table th.col-status,.invoice-table td.col-status{text-align:center}.invoice-table td{color:var(--text-primary);border-bottom:1px solid var(--border-color);vertical-align:middle;padding:14px;font-size:.85rem;transition:background .3s,color .3s,border-color .3s}.invoice-table tbody tr{transition:background .12s;animation:.4s both invoiceRowIn}@keyframes invoiceRowIn{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}.invoice-table tbody tr:first-child{animation-delay:0s}.invoice-table tbody tr:nth-child(2){animation-delay:50ms}.invoice-table tbody tr:nth-child(3){animation-delay:.1s}.invoice-table tbody tr:nth-child(4){animation-delay:.15s}.invoice-table tbody tr:nth-child(5){animation-delay:.2s}.invoice-table tbody tr:nth-child(6){animation-delay:.25s}.invoice-table tbody tr:nth-child(7){animation-delay:.3s}.invoice-table tbody tr:nth-child(8){animation-delay:.35s}.invoice-table tbody tr:nth-child(9){animation-delay:.4s}.invoice-table tbody tr:nth-child(10){animation-delay:.45s}.invoice-table tbody tr:nth-child(11){animation-delay:.5s}.invoice-table tbody tr:nth-child(12){animation-delay:.55s}.invoice-table tbody tr:nth-child(13){animation-delay:.6s}.invoice-table tbody tr:nth-child(14){animation-delay:.65s}.invoice-table tbody tr:nth-child(15){animation-delay:.7s}.invoice-table tbody tr:nth-child(16){animation-delay:.75s}.invoice-table tbody tr:nth-child(17){animation-delay:.8s}.invoice-table tbody tr:nth-child(18){animation-delay:.85s}.invoice-table tbody tr:nth-child(19){animation-delay:.9s}.invoice-table tbody tr:nth-child(20){animation-delay:.95s}.invoice-row-clickable{cursor:pointer}.col-invoice{width:140px}.col-customer{width:160px}.col-items{width:70px}.col-total{width:120px}.col-payment{width:100px}.col-status{width:90px}.col-date{width:120px}.col-actions{text-align:center;width:48px;padding:0 8px!important}.invoice-menu-wrapper{display:inline-flex;position:relative}.invoice-kebab-btn{width:28px;height:28px;color:var(--text-secondary);cursor:pointer;background:0 0;border:none;border-radius:6px;justify-content:center;align-items:center;transition:background .12s,color .12s;display:flex}.invoice-kebab-btn:hover{background:var(--sidebar-hover);color:var(--text-primary)}.invoice-kebab-btn svg{width:16px;height:16px}.invoice-dropdown-menu{background:var(--header-bg);border:1px solid var(--border-color);z-index:100;border-radius:8px;min-width:180px;padding:4px;animation:.12s invoiceDropdownIn;position:absolute;top:100%;right:0;box-shadow:0 2px 8px #00000014,0 1px 3px #0000000f}@keyframes invoiceDropdownIn{0%{opacity:0;transform:translateY(-4px)scale(.97)}to{opacity:1;transform:translateY(0)scale(1)}}.invoice-dropdown-item{width:100%;color:var(--text-secondary);cursor:pointer;text-align:left;z-index:1;background:0 0;border:none;border-radius:6px;align-items:center;gap:8px;padding:8px 10px;font-family:inherit;font-size:.78rem;font-weight:500;transition:background .1s,color .1s;display:flex;position:relative}.invoice-dropdown-item:hover{background:var(--sidebar-hover);color:var(--text-primary)}.invoice-dropdown-item.disabled{opacity:.4;cursor:not-allowed}.invoice-dropdown-item.disabled:hover{color:var(--text-secondary);background:0 0}.invoice-dropdown-item.danger{color:var(--color-danger)}.invoice-dropdown-item.danger:hover{color:var(--color-danger);background:#ef44441a}.invoice-confirm-inline-card{background:var(--header-bg);border:1px solid var(--border-color);z-index:1000;border-radius:10px;width:250px;padding:14px;animation:.18s cubic-bezier(.16,1,.3,1) forwards invoiceConfirmIn;box-shadow:0 2px 8px #00000014,0 1px 3px #0000000f}@keyframes invoiceConfirmIn{0%{opacity:0;transform:translateY(-6px)scale(.96)}to{opacity:1;transform:translateY(0)scale(1)}}@keyframes invoiceConfirmOut{0%{opacity:1;transform:translateY(0)scale(1)}to{opacity:0;transform:translateY(-6px)scale(.96)}}.invoice-confirm-inline-card.closing{pointer-events:none;animation:.15s forwards invoiceConfirmOut}.invoice-confirm-inline-header{align-items:center;gap:8px;margin-bottom:6px;display:flex}.invoice-confirm-inline-icon{background:#ef44441a;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:26px;height:26px;display:flex}.invoice-confirm-inline-icon svg{width:13px;height:13px;color:var(--color-danger)}.invoice-confirm-inline-title{color:var(--text-primary);font-size:.82rem;font-weight:600}.invoice-confirm-inline-desc{color:var(--text-secondary);margin:0 0 12px;font-size:.75rem;line-height:1.4}.invoice-confirm-inline-actions{justify-content:flex-end;gap:6px;display:flex}.invoice-confirm-inline-keep{border:1px solid var(--border-color);height:28px;color:var(--text-secondary);cursor:pointer;background:0 0;border-radius:6px;padding:0 12px;font-family:inherit;font-size:.75rem;font-weight:500;transition:background .15s}.invoice-confirm-inline-keep:hover{background:var(--sidebar-hover)}.invoice-confirm-inline-cancel{background:var(--color-danger);color:#fff;cursor:pointer;border:none;border-radius:6px;height:28px;padding:0 12px;font-family:inherit;font-size:.75rem;font-weight:600;transition:background .15s}.invoice-confirm-inline-cancel:hover{background:var(--color-danger-dark)}.invoice-confirm-inline-cancel:disabled{opacity:.5;cursor:not-allowed}.invoice-dropdown-item svg{flex-shrink:0;width:14px;height:14px}.invoice-table tbody tr:hover,[data-theme=light] .invoice-table tbody tr:hover{background:var(--sidebar-hover)}.invoice-table tbody tr:last-child td{border-bottom:none}.invoice-invoice-id{color:var(--color-teal);text-overflow:ellipsis;font-family:SF Mono,Fira Code,Consolas,monospace;font-size:.82rem;font-weight:600;transition:color .3s;overflow:hidden}.invoice-customer-name{color:var(--text-primary);font-weight:450}.invoice-items-count{background:var(--border-color);min-width:22px;height:22px;color:var(--text-secondary);border-radius:5px;justify-content:center;align-items:center;padding:0 6px;font-size:.75rem;font-weight:600;display:inline-flex}.invoice-amount{font-variant-numeric:tabular-nums;letter-spacing:-.2px;font-weight:600}.invoice-payment-text{color:var(--text-secondary);font-size:.82rem}.invoice-status-badge{letter-spacing:.2px;text-transform:capitalize;border-radius:4px;align-items:center;padding:3px 10px;font-size:.72rem;font-weight:600;transition:background .3s,color .3s;display:inline-flex}.invoice-status-badge.paid{color:var(--color-success);background:#22c55e1a}.invoice-status-badge.pending{color:#fbbf24;background:#fbbf241a}.invoice-status-badge.cancelled{color:#6b7280;background:#6b72801a}.invoice-date{color:var(--text-secondary);white-space:nowrap;font-size:.82rem}.invoice-action-btn{width:30px;height:30px;color:var(--text-secondary);cursor:pointer;background:0 0;border:none;border-radius:6px;justify-content:center;align-items:center;transition:all .12s;display:inline-flex}.invoice-action-btn:hover{background:var(--sidebar-hover);color:var(--text-primary)}.invoice-action-btn svg{width:16px;height:16px}.invoice-paid-btn{width:30px;height:30px;color:var(--color-success);cursor:pointer;background:#22c55e1a;border:none;border-radius:6px;justify-content:center;align-items:center;transition:all .12s;display:inline-flex}.invoice-paid-btn:hover:not(:disabled){background:#22c55e33}.invoice-paid-btn:disabled{opacity:.5;cursor:not-allowed}.invoice-paid-btn svg{width:15px;height:15px}.invoice-paid-btn.bloated{color:#fff;background:var(--color-success);width:100%;padding:9px 12px;font-family:inherit;font-size:.8rem;font-weight:600}.invoice-paid-btn.bloated:hover:not(:disabled){background:#16a34a}.invoice-paid-spinner{border:2px solid #22c55e4d;border-top-color:var(--color-success);border-radius:50%;width:14px;height:14px;animation:.6s linear infinite invoiceSpin}.invoice-paid-btn.bloated .invoice-paid-spinner{border-color:#fff #ffffff59 #ffffff59}@keyframes invoiceSpin{to{transform:rotate(360deg)}}.invoice-action-btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.invoice-paid-btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.invoice-date-btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.invoice-detail-close:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.invoice-retry-btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.invoice-dropdown-item:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.invoice-loading{text-align:center;flex-direction:column;flex:1;justify-content:center;align-items:center;min-height:300px;display:flex}.invoice-loading p{color:var(--text-secondary);margin-top:12px;font-size:.85rem}.invoice-empty{text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:8px;padding:60px 20px;display:flex}.invoice-empty-icon{background:var(--border-color);width:40px;height:40px;color:var(--text-secondary);border-radius:10px;justify-content:center;align-items:center;margin-bottom:4px;display:flex}.invoice-empty-icon svg{width:20px;height:20px}.invoice-empty h3{color:var(--text-primary);margin:0;font-size:.9rem;font-weight:600}.invoice-empty p{color:var(--text-secondary);max-width:280px;margin:0;font-size:.78rem}.invoice-error{text-align:center;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:12px;padding:60px 20px;display:flex}.invoice-error-icon{width:40px;height:40px;color:var(--color-danger);background:#ef44441a;border-radius:10px;justify-content:center;align-items:center;transition:background .3s,color .3s;display:flex}.invoice-error-icon svg{width:20px;height:20px}.invoice-error h3{color:var(--text-primary);margin:0;font-size:.9rem;font-weight:600}.invoice-error p{color:var(--text-secondary);max-width:300px;margin:0;font-size:.78rem}.invoice-retry-btn{background:var(--accent);color:#fff;cursor:pointer;border:none;border-radius:6px;padding:6px 16px;font-size:.78rem;font-weight:600;transition:opacity .12s}.invoice-retry-btn:hover{opacity:.85}.invoice-modal-overlay{z-index:1000;will-change:opacity;background:#00000073;justify-content:flex-end;align-items:stretch;animation:.2s forwards invoiceModalFadeIn;display:flex;position:fixed;top:0;bottom:0;left:0;right:0}.invoice-modal-overlay.closing{animation:.15s forwards invoiceModalFadeOut}@keyframes invoiceModalFadeIn{0%{opacity:0}to{opacity:1}}@keyframes invoiceModalFadeOut{0%{opacity:1}to{opacity:0}}.invoice-modal{background:var(--header-bg);border-radius:var(--radius-lg);will-change:transform;flex-direction:row;width:920px;max-width:92vw;height:auto;margin:12px 12px 12px 0;animation:.2s forwards invoiceSlideInRight;display:flex;overflow:hidden;box-shadow:0 4px 24px #0000001f}.invoice-modal.closing{animation:.15s forwards invoiceSlideOutRight}@keyframes invoiceSlideInRight{0%{transform:translate(100%)}to{transform:translate(0)}}@keyframes invoiceSlideOutRight{0%{transform:translate(0)}to{transform:translate(100%)}}.invoice-modal-left{border-right:1px solid var(--border-color);flex-direction:column;flex:1;min-width:0;display:flex;overflow:hidden}.invoice-modal-left-header{border-bottom:1px solid var(--border-color);flex-shrink:0;justify-content:space-between;align-items:center;padding:16px 20px;display:flex}.invoice-modal-title{color:var(--text-primary);margin:0;font-size:.95rem;font-weight:700}.invoice-modal-left-body{scrollbar-width:none;flex-direction:column;flex:1;gap:12px;min-height:0;padding:16px 20px;display:flex;overflow-y:auto}.invoice-modal-left-body::-webkit-scrollbar{display:none}.invoice-modal-invoice-banner{background:var(--accent-light);border:1px solid #f9731626;border-radius:10px;justify-content:space-between;align-items:center;padding:12px 14px;display:flex}.invoice-modal-invoice-banner-label{text-transform:uppercase;letter-spacing:.6px;color:var(--accent);font-size:.7rem;font-weight:600}.invoice-modal-invoice-num{color:var(--accent);font-family:SF Mono,Fira Code,Consolas,monospace;font-size:.82rem;font-weight:600}.invoice-modal-card{background:var(--header-bg);border-radius:10px;flex-direction:column;gap:0;padding:12px 0;display:flex}.invoice-modal-section{flex-direction:column;gap:3px;padding:8px 0;display:flex}.invoice-modal-section+.invoice-modal-section{border-top:1px solid var(--border-color)}.invoice-modal-section-label{text-transform:uppercase;letter-spacing:.4px;color:var(--text-secondary);font-size:.65rem;font-weight:500}.invoice-modal-section-value{color:var(--text-primary);font-size:.82rem;font-weight:500}.invoice-modal-section-detail{color:var(--text-secondary);font-size:.68rem}.invoice-modal-divider{display:none}.invoice-modal-items-list{flex-direction:column;gap:0;display:flex}.invoice-modal-section .invoice-modal-items-list{margin-top:6px}.invoice-modal-item-row{border-bottom:1px solid var(--border-color);justify-content:space-between;align-items:center;padding:6px 0;display:flex}.invoice-modal-item-row:last-child{border-bottom:none}.invoice-modal-item-info{align-items:center;gap:6px;display:flex}.invoice-modal-item-name{color:var(--text-primary);font-size:.78rem}.invoice-modal-item-qty{color:var(--text-secondary);background:var(--content-bg);border-radius:3px;padding:1px 5px;font-size:.68rem}.invoice-modal-item-price{color:var(--text-primary);font-size:.78rem;font-weight:500}.invoice-summary-card{gap:4px}.invoice-modal-total-row{color:var(--text-secondary);justify-content:space-between;align-items:center;padding:4px 0;font-size:.78rem;display:flex}.invoice-modal-total-row.total-final{border-top:1px solid var(--border-color);color:var(--text-primary);margin-top:2px;padding-top:6px;font-size:.88rem;font-weight:700}.invoice-modal-right{flex-direction:column;flex-shrink:0;gap:0;width:400px;padding:12px;display:flex}.invoice-modal-right-header{border-bottom:1px solid var(--border-color);flex-shrink:0;justify-content:space-between;align-items:center;margin-bottom:10px;padding:0 0 10px;display:flex}.invoice-modal-right-title{color:var(--text-primary);font-size:.9rem;font-weight:700}.invoice-modal-right-actions-group{align-items:center;gap:6px;display:flex}.invoice-modal-right-actions{background:var(--content-bg);border-radius:6px;align-items:center;gap:2px;padding:2px;display:flex}.invoice-modal-right-action-btn{height:24px;color:var(--text-secondary);letter-spacing:.2px;cursor:pointer;white-space:nowrap;background:0 0;border:none;border-radius:4px;align-items:center;gap:4px;padding:0 8px;font-family:inherit;font-size:.7rem;font-weight:500;transition:background .15s,color .15s;display:flex}.invoice-modal-right-action-btn:hover{color:var(--text-primary)}.invoice-modal-right-action-btn.active{background:var(--header-bg);color:var(--accent);box-shadow:0 1px 3px #00000014}.invoice-modal-right-action-btn.disabled{opacity:.4;cursor:not-allowed}.invoice-modal-right-action-btn.disabled:hover{color:var(--text-secondary);background:0 0}.invoice-modal-right-action-btn svg{flex-shrink:0;width:12px;height:12px}.invoice-modal-close{width:28px;height:28px;color:var(--text-secondary);cursor:pointer;background:0 0;border:none;border-radius:6px;justify-content:center;align-items:center;transition:all .1s;display:flex}.invoice-modal-close:hover{background:var(--sidebar-hover);color:var(--text-primary)}.invoice-modal-close svg{width:14px;height:14px}.invoice-receipt-preview{flex:1;justify-content:center;align-items:flex-start;min-height:0;padding:8px 0;display:flex;overflow-y:auto}.invoice-receipt-card{background:var(--header-bg);border:1px solid var(--border-color);width:340px;max-width:100%;height:-moz-fit-content;height:fit-content;color:var(--text-primary);border-radius:10px;flex-direction:column;gap:10px;margin:0 auto;padding:20px 16px;font-family:SF Mono,Fira Code,Consolas,monospace;display:flex;box-shadow:0 2px 16px #0000000f,0 1px 3px #0000000a}.invoice-receipt-header{text-align:center;border-bottom:1.5px dashed var(--border-color);padding-bottom:10px}.invoice-receipt-business-name{color:var(--text-primary);letter-spacing:1.5px;text-transform:uppercase;font-size:1.1rem;font-weight:800}.invoice-receipt-subtitle{color:var(--text-secondary);margin-top:2px;font-size:.68rem}.invoice-receipt-contact{color:var(--text-secondary);margin-top:1px;font-size:.52rem;line-height:1.4}.invoice-receipt-party-detail{color:var(--text-secondary);font-size:.58rem}.invoice-receipt-section-label{text-transform:uppercase;letter-spacing:1px;color:var(--text-secondary);padding:0 0 2px;font-size:.58rem;font-weight:700}.invoice-receipt-vehicle{color:var(--text-primary);flex-direction:column;gap:1px;padding-bottom:4px;font-size:.75rem;display:flex}.invoice-receipt-vehicle span{color:var(--text-secondary);font-size:.68rem}.invoice-receipt-vehicle span:first-child{color:var(--text-primary);font-size:.75rem;font-weight:500}.invoice-receipt-technician{color:var(--text-primary);padding-bottom:4px;font-size:.7rem;font-weight:500}.invoice-receipt-ack{flex-direction:column;gap:12px;padding-top:6px;display:flex}.invoice-receipt-ack-row{color:var(--text-secondary);font-size:.6rem}.invoice-receipt-ack-line{border-bottom:1px solid var(--text-secondary);margin-top:2px}.invoice-receipt-ack-label{color:var(--text-secondary);text-align:center;margin-top:6px;font-size:.55rem}.invoice-receipt-invoice-badge{letter-spacing:2px;color:var(--text-primary);border:1.5px dashed var(--text-secondary);background:0 0;border-radius:0;align-self:center;padding:4px 18px;font-size:.58rem;font-weight:700;display:inline-block}.invoice-receipt-number{text-align:center;color:var(--color-teal);letter-spacing:.5px;font-family:SF Mono,Fira Code,Consolas,monospace;font-size:.9rem;font-weight:700}.invoice-receipt-parties{justify-content:space-between;gap:12px;padding:2px 0;display:flex}.invoice-receipt-party{flex-direction:column;flex:1;gap:2px;display:flex}.invoice-receipt-party-label{text-transform:uppercase;letter-spacing:1px;color:var(--text-secondary);font-size:.55rem;font-weight:700}.invoice-receipt-party-name{color:var(--text-primary);letter-spacing:.3px;font-size:.78rem;font-weight:700}.invoice-receipt-divider{background:var(--border-color);height:1px;margin:2px 0;transition:background .3s}.invoice-receipt-details-label{text-transform:uppercase;letter-spacing:1px;color:var(--text-secondary);font-size:.58rem;font-weight:700}.invoice-receipt-items{flex-direction:column;gap:0;display:flex}.invoice-receipt-item{border-bottom:1px dotted var(--border-color);justify-content:space-between;align-items:center;padding:4px 0;display:flex}.invoice-receipt-item:last-child{border-bottom:none}.invoice-receipt-item-name{color:var(--text-primary);white-space:nowrap;flex-shrink:0;font-size:.7rem;font-weight:500}.invoice-receipt-item-price{color:var(--text-primary);white-space:nowrap;flex-shrink:0;margin-left:8px;font-size:.7rem;font-weight:600}.invoice-receipt-totals{flex-direction:column;gap:2px;display:flex}.invoice-receipt-total-row{color:var(--text-secondary);justify-content:space-between;align-items:center;padding:1px 0;font-size:.65rem;display:flex}.invoice-receipt-total-row.receipt-total-final{border-top:1.5px solid var(--border-color);color:var(--text-primary);padding-top:6px;padding-bottom:2px;font-size:.85rem;font-weight:800}.invoice-receipt-meta{background:0 0;border:none;border-radius:0;flex-direction:column;gap:3px;padding:4px 0;display:flex}.invoice-receipt-meta-row{justify-content:space-between;align-items:center;padding:1px 0;display:flex}.invoice-receipt-meta-label{color:var(--text-secondary);font-size:.65rem}.invoice-receipt-meta-value{color:var(--text-primary);font-size:.68rem;font-weight:600}.invoice-receipt-footer{text-align:center;color:var(--text-secondary);border-top:1px dashed var(--border-color);padding-top:4px;font-size:.55rem}.invoice-receipt-sigs{flex-direction:column;gap:5px;padding-top:2px;display:flex}.invoice-receipt-sig-row{justify-content:space-between;align-items:flex-start;gap:12px;font-size:.7rem;display:flex}.invoice-receipt-sig-label{color:var(--text-secondary)}.invoice-receipt-sig-value{color:var(--text-primary);text-align:right;font-weight:500}@keyframes invoiceSlideUp{0%{opacity:0;transform:translateY(12px)scale(.98)}to{opacity:1;transform:translateY(0)scale(1)}}@media (max-width:768px){.invoice-page{margin:-16px;padding:8px 8px 8px 0}.invoice-top-card{flex-direction:column;align-items:stretch;gap:8px}.invoice-top-card-left{justify-content:center}.invoice-top-card-right-group{flex-wrap:wrap;justify-content:center}.invoice-search-wrapper{flex:1;width:auto;min-width:160px}.invoice-table th:nth-child(3),.invoice-table td:nth-child(3),.invoice-table th:nth-child(5),.invoice-table td:nth-child(5){display:none}}@media (max-width:480px){.invoice-top-card-right-group{flex-direction:column;align-items:stretch}.invoice-search-wrapper{width:100%}.invoice-table th:nth-child(6),.invoice-table td:nth-child(6){display:none}.invoice-modal{border-radius:0;width:100%;max-width:100vw;height:100vh;max-height:100vh;margin:0}.invoice-modal-left{border-right:none}.invoice-modal-right{display:none}}@media (max-width:768px){.invoice-modal{width:700px;max-width:95vw}.invoice-modal-right{width:300px}.invoice-receipt-card{padding:18px 14px}}@media print{body *{visibility:hidden}.invoice-modal-overlay,.invoice-modal-overlay *{visibility:visible}.invoice-modal-overlay{background:0 0;position:absolute;top:0;bottom:0;left:0;right:0}.invoice-modal{width:100%;max-width:100%;height:auto;box-shadow:none;border:none;border-radius:0;margin:0;animation:none;display:block;position:absolute;top:0;bottom:0;left:0;right:0;transform:none}.invoice-modal-left{display:none}.invoice-modal-right{width:100%}.invoice-modal-right-header{display:none}.invoice-receipt-preview{padding:0}.invoice-receipt-card{box-shadow:none;border:1px solid #e4e4e7;max-width:100%;font-family:SF Mono,Fira Code,Consolas,monospace}.invoice-receipt-business-name,.invoice-receipt-contact,.invoice-receipt-party-name,.invoice-receipt-item-name,.invoice-receipt-item-price,.invoice-receipt-number,.invoice-receipt-total-row span:last-child,.invoice-receipt-total-row.receipt-total-final span:last-child,.invoice-receipt-meta-value{color:#000!important}}.invoice-receipt-preview::-webkit-scrollbar{width:0;height:0}.invoice-receipt-preview{scrollbar-width:none;-ms-overflow-style:none}.invoice-title,.invoice-search-icon,.invoice-confirm-inline-title,.invoice-confirm-inline-desc,.invoice-customer-name,.invoice-payment-text,.invoice-date,.invoice-modal-title,.invoice-modal-invoice-banner-label,.invoice-modal-invoice-num,.invoice-modal-section-label,.invoice-modal-section-value,.invoice-modal-section-detail,.invoice-modal-item-name,.invoice-modal-item-price,.invoice-modal-total-row,.invoice-modal-right-title,.invoice-receipt-business-name,.invoice-receipt-subtitle,.invoice-receipt-contact,.invoice-receipt-party-detail,.invoice-receipt-section-label,.invoice-receipt-vehicle,.invoice-receipt-technician,.invoice-receipt-ack-row,.invoice-receipt-ack-label,.invoice-receipt-party-label,.invoice-receipt-party-name,.invoice-receipt-details-label,.invoice-receipt-item-name,.invoice-receipt-item-price,.invoice-receipt-total-row,.invoice-receipt-meta-label,.invoice-receipt-meta-value,.invoice-receipt-sig-label,.invoice-receipt-sig-value{transition:color .3s}.invoice-count-badge,.invoice-items-count,.invoice-empty-icon,.invoice-modal-item-qty{transition:background .3s,color .3s}.invoice-dropdown-menu,.invoice-confirm-inline-card,.invoice-modal-left,.invoice-modal-left-header,.invoice-modal-right-header,.invoice-modal-item-row,.invoice-modal-card,.invoice-modal-right-actions{transition:background .3s,border-color .3s}.invoice-receipt-card{transition:background .3s,color .3s,border-color .3s}.invoice-receipt-header,.invoice-receipt-ack-line,.invoice-receipt-invoice-badge,.invoice-receipt-item,.invoice-receipt-footer{transition:border-color .3s,color .3s}.billing-page{flex-direction:column;flex:1;gap:12px;min-height:0;margin:-32px;padding:12px 12px 12px 0;transition:background .3s,color .3s;display:flex;overflow:hidden}.billing-page--error{position:relative}.billing-error-overlay{border-radius:var(--sidebar-card-radius);z-index:10;justify-content:center;align-items:center;padding-top:60px;display:flex;position:absolute;top:0;bottom:0;left:0;right:0}.billing-error-overlay .status-container{text-align:center;padding:32px 48px}.billing-error-overlay .status-giant{letter-spacing:-.04em;color:var(--text-primary);-webkit-user-select:none;user-select:none;text-shadow:0 2px 12px #00000040;margin-bottom:24px;font-size:clamp(8rem,22vw,18rem);font-weight:900;line-height:.85}.billing-error-overlay .status-label{text-shadow:0 1px 6px #0003}.billing-error-overlay .status-subtitle{text-shadow:0 1px 4px #00000026}.billing-body{flex-direction:column;flex:1;min-height:0;display:flex}.billing-content{flex-direction:column;flex:1;gap:12px;min-width:0;min-height:0;transition:background .3s;display:flex}.billing-top-card{background:var(--sidebar-card-bg);border-radius:var(--sidebar-card-radius);box-shadow:var(--card-shadow);justify-content:space-between;align-items:center;gap:12px;padding:10px 14px;transition:background .3s;display:flex}.billing-top-card-left{border-radius:10px;align-items:center;min-height:36px;margin:0 4px;padding:8px 12px 8px 13px;display:flex}.billing-title{font-size:var(--h1);color:var(--sidebar-text-active);white-space:nowrap;margin:0;font-weight:700;line-height:1}.billing-mode{align-items:center;gap:8px;transition:background .3s;display:flex}.billing-mode-btn{background:var(--content-bg);height:28px;color:var(--text-secondary);letter-spacing:.2px;cursor:pointer;white-space:nowrap;border:none;border-radius:6px;justify-content:center;align-items:center;padding:0 10px;font-family:inherit;font-size:.78rem;font-weight:500;transition:background .15s,color .15s;display:flex}.billing-mode-btn:hover{background:var(--sidebar-hover);color:var(--text-primary)}.billing-mode-btn.active{background:var(--content-bg);color:var(--text-secondary)}.billing-add-actions{gap:8px;width:100%;display:flex}.billing-add-action{background:var(--content-bg);height:32px;color:var(--text-secondary);cursor:pointer;border:none;border-radius:6px;flex:1;justify-content:center;align-items:center;gap:6px;padding:0 14px;font-family:inherit;font-size:.78rem;font-weight:500;transition:background .15s,color .15s;display:flex}.billing-add-action svg{width:13px;height:13px}.billing-add-action:hover{background:var(--sidebar-hover);color:var(--text-primary)}.billing-add-action:active{transform:scale(.97)}.billing-manual-add-btn{background:var(--content-bg);height:28px;color:var(--text-secondary);cursor:pointer;white-space:nowrap;border:none;border-radius:6px;justify-content:center;align-items:center;gap:5px;padding:0 12px;font-size:.78rem;font-weight:600;transition:background .15s,color .15s;display:flex}.billing-manual-add-btn:hover:not(:disabled){background:var(--sidebar-hover);color:var(--text-primary)}.billing-manual-add-btn:active:not(:disabled){transform:scale(.97)}.billing-manual-add-btn:disabled{opacity:.5;cursor:not-allowed}.billing-manual-fields{flex-direction:column;gap:8px;padding:10px 0 4px;animation:.15s billingSlideDown;display:flex}.billing-manual-fields .billing-form-input{height:32px;font-size:.8rem}.billing-manual-fields .billing-manual-name{width:100%}.billing-manual-row{align-items:center;gap:8px;display:flex}.billing-manual-row .billing-manual-price{flex:1;min-width:0}.billing-manual-row .billing-manual-qty{flex:0 0 70px}@keyframes billingSlideDown{0%{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}.billing-table-card{background:var(--header-bg);box-shadow:var(--card-shadow);border-radius:12px;flex-direction:column;flex:3;min-width:0;min-height:0;padding:16px;transition:background .3s,box-shadow .3s;display:flex;overflow:hidden}.billing-main-grid-wrapper{flex-direction:row;flex:1;gap:12px;min-width:0;min-height:0;display:flex}.billing-order-form{flex-direction:column;flex:3;gap:12px;min-width:0;display:flex}.billing-form-row{grid-template-columns:1fr 1fr;gap:12px;display:grid}.billing-form-row-full{grid-template-columns:1fr}.billing-form-field{flex-direction:column;gap:6px;display:flex}.billing-form-input,.billing-form-select{background:var(--header-bg);border:1px solid var(--border-color);width:100%;height:36px;color:var(--text-primary);border-radius:8px;outline:none;padding:0 10px;font-family:inherit;font-size:.82rem;transition:border-color .15s}.billing-form-input:focus{border-color:var(--border-color)}.billing-form-input::placeholder{color:var(--text-secondary)}.billing-form-input[readonly]{opacity:.7;cursor:default}.billing-cart-empty{text-align:center;height:100%;min-height:120px;color:var(--text-secondary);flex-direction:column;justify-content:center;align-items:center;gap:10px;font-size:.8rem;display:flex}.billing-cart-empty svg{opacity:.3;stroke-width:1.2px;width:40px;height:40px}.billing-qty-stepper{background:var(--content-bg);border-radius:5px;align-items:center;gap:2px;padding:2px;transition:background .3s;display:inline-flex}.billing-qty-btn{width:22px;height:22px;color:var(--text-secondary);cursor:pointer;background:0 0;border:none;border-radius:4px;justify-content:center;align-items:center;transition:all .1s;display:inline-flex}.billing-qty-btn:hover:not(:disabled){background:var(--sidebar-hover);color:var(--text-primary)}.billing-qty-btn:disabled{opacity:.3;cursor:not-allowed}.billing-qty-btn svg{width:11px;height:11px}.billing-qty-value{text-align:center;min-width:24px;color:var(--text-primary);font-variant-numeric:tabular-nums;font-size:.78rem;font-weight:600}.billing-footer{border-top:1px solid var(--border-color);background:var(--header-bg);z-index:10;flex-shrink:0;margin-top:auto;padding-top:12px;transition:background .3s,border-color .3s;position:sticky;bottom:0}.billing-footer-actions{gap:8px;display:flex}.billing-btn-quick-process{border:1px solid var(--border-color);height:32px;color:var(--text-secondary);cursor:pointer;background:0 0;border-radius:8px;justify-content:center;align-items:center;gap:6px;padding:0 14px;font-family:inherit;font-size:.78rem;font-weight:500;transition:all .12s;display:inline-flex}.billing-btn-quick-process svg{width:14px;height:14px}.billing-btn-quick-process:hover{background:var(--sidebar-hover);border-color:var(--border-color);color:var(--text-primary)}.billing-btn-prepare-invoice{background:var(--accent);color:#fff;cursor:pointer;border:none;border-radius:8px;flex:1;justify-content:center;align-items:center;gap:6px;height:32px;padding:0 18px;font-family:inherit;font-size:.78rem;font-weight:600;transition:opacity .12s,transform .12s;display:inline-flex}.billing-btn-prepare-invoice svg{width:14px;height:14px}.billing-btn-prepare-invoice:hover:not(:disabled){opacity:.9}.billing-btn-prepare-invoice:active:not(:disabled){transform:scale(.99)}.billing-btn-prepare-invoice:disabled{opacity:.45;cursor:not-allowed}.billing-checkout-spinner{border:2px solid #ffffff59;border-top-color:#fff;border-radius:50%;width:14px;height:14px;animation:.6s linear infinite billingSpin}.billing-error-banner{color:var(--color-danger);background:#ef44441a;border-radius:7px;margin-bottom:10px;padding:8px 12px;font-size:.76rem}.billing-receipt-form{flex:1;min-width:0;overflow-y:auto}.billing-rf-saletype{background:var(--content-bg);border:1px solid var(--border-color);border-radius:6px;align-items:center;gap:2px;padding:2px;transition:background .3s,border-color .3s;display:flex}.billing-rf-saletype-btn{height:28px;color:var(--text-secondary);cursor:pointer;background:0 0;border:none;border-radius:4px;flex:1;justify-content:center;align-items:center;padding:0 12px;font-family:inherit;font-size:.75rem;font-weight:500;transition:background .15s,color .15s;display:flex}.billing-rf-saletype-btn:hover{color:var(--text-primary)}.billing-rf-saletype-btn.active{background:var(--accent);color:#fff;box-shadow:0 1px 3px #f973164d}.billing-rf-soldto{border-bottom:1px solid var(--border-color);flex-direction:column;gap:14px;margin-bottom:10px;padding:14px;display:flex}.billing-rf-soldto-row{flex-direction:column;gap:6px;display:flex}.billing-rf-label{text-transform:uppercase;letter-spacing:.4px;color:var(--text-secondary);margin-bottom:2px;font-size:.68rem;font-weight:600;transition:color .3s}.billing-rf-items{flex-direction:column;max-height:260px;padding-top:0;display:flex;overflow-y:auto}.billing-rf-items::-webkit-scrollbar{width:4px}.billing-rf-items::-webkit-scrollbar-track{background:0 0}.billing-rf-items::-webkit-scrollbar-thumb{background:var(--border-color);border-radius:2px}.billing-rf-items-head,.billing-rf-item-row{grid-template-columns:1fr 70px 100px 100px 32px;align-items:center;gap:10px;padding:8px 12px;display:grid}.billing-rf-items-head{background:var(--header-bg);border-bottom:1px solid var(--border-color);text-transform:uppercase;letter-spacing:.6px;color:var(--text-tertiary);white-space:nowrap;font-size:.7rem;font-weight:600;transition:background .3s,color .3s,border-color .3s}.billing-rf-items-head .billing-rf-col-qty{text-align:center}.billing-rf-item-row{border-bottom:1px solid var(--border-color);font-size:.82rem}.billing-rf-item-row:last-child{border-bottom:none}.billing-rf-col-desc{min-width:0}.billing-rf-item-name{color:var(--text-primary);white-space:nowrap;text-overflow:ellipsis;font-weight:500;transition:color .3s;overflow:hidden}.billing-rf-item-remove{width:20px;height:20px;color:var(--text-secondary);cursor:pointer;background:0 0;border:none;border-radius:4px;flex-shrink:0;justify-content:center;align-items:center;transition:all .1s;display:inline-flex}.billing-rf-item-remove:hover{color:var(--color-danger);background:#ef44441a}.billing-rf-item-remove svg{width:12px;height:12px}.billing-rf-col-qty{justify-content:center;align-items:center;display:flex}.billing-rf-col-price{text-align:right;font-variant-numeric:tabular-nums;color:var(--text-primary);transition:color .3s}.billing-rf-col-amt{text-align:right;font-variant-numeric:tabular-nums;color:var(--text-primary);font-weight:600;transition:color .3s}.billing-rf-cart-empty{min-height:140px;padding:32px 20px}.billing-rf-vat{flex-direction:column;gap:6px;padding:2px 14px 10px;display:flex}.billing-rf-vat-title{letter-spacing:.6px;color:var(--accent);margin-bottom:0;font-size:.7rem;font-weight:600}.billing-rf-vat-toggle{cursor:pointer;background:0 0;border:none;justify-content:space-between;align-items:center;width:100%;margin-bottom:2px;padding:0;display:flex}.billing-rf-vat-chevron{width:16px;height:16px;color:var(--text-secondary);transition:transform .2s}.billing-rf-vat-chevron.open{transform:rotate(180deg)}.billing-rf-vat-row{justify-content:space-between;align-items:center;gap:12px;font-size:.78rem;display:flex}.billing-rf-vat-row>span:first-child{color:var(--text-secondary)}.billing-rf-vat-row>span:last-child,.billing-rf-vat-row>input{color:var(--text-primary);font-variant-numeric:tabular-nums;font-weight:600}.billing-rf-vat-em{border-bottom:1px solid var(--border-color);padding-bottom:7px}.billing-rf-vat-input-row>span:first-child{align-items:center;gap:8px;display:flex}.billing-rf-discount-select{background:var(--header-bg);border:1px solid var(--border-color);height:26px;color:var(--text-secondary);cursor:pointer;border-radius:6px;outline:none;padding:0 6px;font-family:inherit;font-size:.68rem;transition:background .15s,border-color .15s,color .15s}.billing-rf-vat-input{text-align:right;background:var(--header-bg);border:1px solid var(--border-color);width:110px;height:28px;color:var(--text-primary);font-variant-numeric:tabular-nums;border-radius:6px;outline:none;padding:0 8px;font-family:inherit;font-size:.78rem;font-weight:600;transition:border-color .15s}.billing-rf-vat-input:focus{border-color:var(--accent)}.billing-rf-vat-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.billing-rf-vat-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.billing-rf-vat-total{border-top:1px solid var(--border-color);margin-top:4px;padding-top:8px}.billing-rf-vat-total>span:first-child{color:var(--text-primary);font-weight:700}.billing-rf-vat-total>span:last-child{color:var(--accent);font-size:1rem;font-weight:700}.billing-payment-card-wrapper{background:var(--header-bg);box-shadow:var(--card-shadow);border-radius:12px;flex-direction:column;flex:0 400px;min-height:0;padding:12px;transition:background .3s,box-shadow .3s;display:flex;overflow-y:auto}.billing-payment-card{flex-direction:column;gap:10px;display:flex}.billing-payment-card-label{color:var(--text-primary);font-size:.85rem;font-weight:600;transition:color .3s}.billing-payment-header{border-bottom:1px solid var(--border-color);flex-shrink:0;justify-content:space-between;align-items:center;margin-bottom:10px;padding:0 0 10px;display:flex}.billing-payment-pills-group{background:var(--content-bg);border-radius:6px;align-items:center;gap:2px;padding:2px;display:flex}.billing-payment-pill{height:24px;color:var(--text-secondary);cursor:pointer;white-space:nowrap;background:0 0;border:none;border-radius:4px;justify-content:center;align-items:center;padding:0 8px;font-family:inherit;font-size:.7rem;font-weight:500;transition:background .15s,color .15s;display:flex}.billing-payment-pill:hover{color:var(--accent);background:#f973161a}.billing-payment-pill.active{background:var(--accent);color:#fff;box-shadow:0 1px 3px #f973164d}.billing-cash-block{background:var(--content-bg);border:1px solid var(--border-color);border-radius:8px;flex-direction:column;gap:8px;padding:14px 16px;transition:background .3s,border-color .3s;display:flex}.billing-cash-label{text-transform:uppercase;letter-spacing:.6px;color:var(--text-secondary);margin-bottom:2px;font-size:.7rem;font-weight:600;transition:color .3s}.billing-cash-input-wrap{position:relative}.billing-cash-prefix{color:var(--text-secondary);pointer-events:none;font-size:.82rem;transition:color .3s;position:absolute;top:50%;left:10px;transform:translateY(-50%)}.billing-cash-input{background:var(--header-bg);border:1px solid var(--border-color);width:100%;height:32px;color:var(--text-primary);font-variant-numeric:tabular-nums;border-radius:6px;outline:none;padding:0 10px 0 24px;font-family:inherit;font-size:.85rem;font-weight:600;transition:border-color .15s}.billing-cash-input:focus{border-color:var(--accent)}.billing-cash-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.billing-cash-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.billing-cash-quick{grid-template-columns:repeat(4,1fr);gap:6px;display:grid}.billing-cash-quick-btn{border:1px solid var(--border-color);background:var(--header-bg);height:28px;color:var(--text-secondary);cursor:pointer;border-radius:6px;font-family:inherit;font-size:.68rem;font-weight:500;transition:all .1s}.billing-cash-quick-btn:hover{border-color:var(--accent);color:var(--accent)}.billing-change{border-radius:6px;justify-content:space-between;align-items:center;padding:6px 8px;font-size:.76rem;font-weight:600;display:flex}.billing-change.ok{color:var(--color-success);background:#22c55e1a}.billing-change.short{color:var(--color-danger);background:#ef44441a}.billing-receipt-column-wrapper{background:var(--header-bg);box-shadow:var(--card-shadow);border-radius:12px;flex-direction:column;flex:0 400px;min-height:0;padding:12px;transition:background .3s,box-shadow .3s;display:flex;overflow:auto}.billing-receipt-preview-header{border-bottom:1px solid var(--border-color);flex-shrink:0;justify-content:space-between;align-items:center;margin-bottom:10px;padding:0 0 10px;display:flex}.billing-receipt-preview-title{color:var(--text-primary);font-size:.85rem;font-weight:600}.billing-receipt-preview-actions-group{align-items:center;gap:6px;display:flex}.billing-receipt-preview-actions{background:var(--content-bg);border-radius:6px;align-items:center;gap:2px;padding:2px;display:flex}.billing-receipt-preview-action-btn{height:24px;color:var(--text-secondary);letter-spacing:.2px;cursor:pointer;white-space:nowrap;background:0 0;border:none;border-radius:4px;align-items:center;gap:4px;padding:0 8px;font-family:inherit;font-size:.7rem;font-weight:500;transition:background .15s,color .15s;display:flex}.billing-receipt-preview-action-btn:hover:not(.disabled){color:var(--text-primary)}.billing-receipt-preview-action-btn.disabled{opacity:.4;cursor:not-allowed}.billing-receipt-preview-action-btn.disabled:hover{color:var(--text-secondary);background:0 0}.billing-receipt-preview-action-btn svg{flex-shrink:0;width:12px;height:12px}.billing-receipt-column{flex:1;justify-content:center;align-items:flex-start;min-height:0;padding:8px 0;display:flex;overflow-y:auto}.billing-receipt-card{background:var(--header-bg);border:1px solid var(--border-color);width:340px;max-width:100%;height:-moz-fit-content;height:fit-content;color:var(--text-primary);border-radius:10px;flex-direction:column;gap:10px;padding:20px 16px;font-family:SF Mono,Fira Code,Consolas,monospace;display:flex;box-shadow:0 2px 16px #0000000f,0 1px 3px #0000000a}.billing-receipt-card-header{text-align:center;border-bottom:1.5px dashed var(--border-color);flex-direction:column;align-items:center;gap:1px;padding-bottom:10px;display:flex}.billing-receipt-card-store{color:var(--text-primary);letter-spacing:1.5px;text-transform:uppercase;font-size:1.1rem;font-weight:800}.billing-receipt-card-sub{color:var(--text-secondary);margin-top:2px;font-size:.68rem}.billing-receipt-card-info{color:var(--text-secondary);margin-top:1px;font-size:.52rem;line-height:1.4}.billing-receipt-card-divider{background:var(--border-color);height:1px;margin:2px 0;transition:background .3s}.billing-receipt-card-badge{justify-content:center;margin:2px 0;display:flex}.billing-receipt-card-badge-label{border:1.5px dashed var(--text-secondary);color:var(--text-primary);letter-spacing:2px;background:0 0;border-radius:0;padding:4px 18px;font-size:.58rem;font-weight:700;display:inline-block}.billing-receipt-card-inv{text-align:center;color:var(--color-teal);letter-spacing:.5px;margin-top:6px;font-family:SF Mono,Fira Code,Consolas,monospace;font-size:.9rem;font-weight:700}.billing-receipt-new-btn{border:1px dashed var(--border-color);width:100%;color:var(--text-secondary);cursor:pointer;background:0 0;border-radius:6px;margin-top:8px;padding:6px 0;font-family:inherit;font-size:.75rem;font-weight:500;transition:all .15s;display:block}.billing-receipt-new-btn:hover{background:var(--sidebar-hover);color:var(--text-primary);border-color:var(--text-secondary)}.billing-receipt-card-fromto{justify-content:space-between;gap:12px;padding:2px 0;display:flex}.billing-receipt-card-from,.billing-receipt-card-to{flex-direction:column;flex:1;gap:2px;display:flex}.billing-receipt-card-fromto-label{letter-spacing:1px;color:var(--text-secondary);text-transform:uppercase;font-size:.55rem;font-weight:700}.billing-receipt-card-fromto-name{color:var(--text-primary);letter-spacing:.3px;font-size:.78rem;font-weight:700}.billing-receipt-card-section-title{letter-spacing:1px;color:var(--text-secondary);text-transform:uppercase;padding:0 0 2px;font-size:.58rem;font-weight:700}.billing-receipt-card-items{flex-direction:column;gap:0;display:flex}.billing-receipt-card-item-empty{text-align:center;color:var(--text-secondary);padding:12px 0;font-size:.75rem;font-style:italic}.billing-receipt-card-item{border-bottom:1px dotted var(--border-color);justify-content:space-between;align-items:center;padding:4px 0;display:flex}.billing-receipt-card-item:last-child{border-bottom:none}.billing-receipt-card-item-name{color:var(--text-primary);white-space:nowrap;flex-shrink:0;font-size:.7rem;font-weight:500}.billing-receipt-card-item-price{color:var(--text-primary);white-space:nowrap;flex-shrink:0;margin-left:8px;font-size:.7rem;font-weight:600}.billing-receipt-card-vat{flex-direction:column;gap:2px;display:flex}.billing-receipt-card-vat-row{color:var(--text-secondary);justify-content:space-between;align-items:center;padding:1px 0;font-size:.65rem;display:flex}.billing-receipt-card-vat-row>span:first-child{color:var(--text-secondary)}.billing-receipt-card-vat-row>span:last-child{color:var(--text-primary);font-weight:500}.billing-receipt-card-total{border-top:1.5px solid var(--border-color);color:var(--text-primary);justify-content:space-between;align-items:center;padding-top:6px;padding-bottom:2px;font-size:.85rem;font-weight:800;display:flex}.billing-receipt-card-total>span:last-child{color:var(--color-teal);font-size:1.05rem;font-weight:800}.billing-receipt-card-meta{background:0 0;border-radius:0;flex-direction:column;gap:3px;padding:4px 0;display:flex}.billing-receipt-card-meta-row{justify-content:space-between;font-size:.68rem;display:flex}.billing-receipt-card-meta-row>span:first-child{color:var(--text-secondary)}.billing-receipt-card-meta-row>span:last-child{color:var(--text-primary);font-weight:600}.billing-receipt-card-status{color:#059669;background:#d1fae5;border-radius:4px;padding:2px 10px;font-size:.65rem;font-weight:600;display:inline-block}.billing-receipt-card-footer{text-align:center;color:var(--text-secondary);padding:4px 0;font-size:.55rem}.billing-receipt-card-ack{flex-direction:column;gap:12px;padding-top:6px;display:flex}.billing-receipt-card-ack-row{color:var(--text-secondary);font-size:.6rem}.billing-receipt-card-ack-line{border-bottom:1px solid var(--text-secondary);margin-top:2px}.billing-receipt-card-ack-label{color:var(--text-secondary);text-align:center;margin-top:6px;font-size:.55rem}.billing-receipt-card-dashed{border-top:1px dashed var(--border-color);margin:0}.billing-loading{text-align:center;flex-direction:column;flex:1;justify-content:center;align-items:center;min-height:300px;display:flex}.billing-loading p{color:var(--text-secondary);margin-top:12px;font-size:.85rem}.billing-error{text-align:center;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:12px;padding:60px 20px;display:flex}.billing-error .status-giant{color:var(--border-color);letter-spacing:6px;font-size:3.4rem;font-weight:700}.billing-error .status-label{color:var(--text-primary);font-size:.85rem;font-weight:600}.billing-error .status-subtitle{color:var(--text-secondary);max-width:320px;font-size:.78rem}.billing-retry-btn{background:var(--accent);color:#fff;cursor:pointer;border:none;border-radius:6px;padding:7px 18px;font-size:.78rem;font-weight:600;transition:background .2s}.billing-retry-btn:hover{opacity:.85}@keyframes billingSpin{to{transform:rotate(360deg)}}@keyframes billingFadeIn{0%{opacity:0}to{opacity:1}}@keyframes billingSlideUp{0%{opacity:0;transform:translateY(12px)scale(.98)}to{opacity:1;transform:translateY(0)scale(1)}}.billing-receipt-column::-webkit-scrollbar{width:0;height:0}.billing-receipt-column{scrollbar-width:none;-ms-overflow-style:none}.billing-inventory-inline{background:var(--header-bg);box-shadow:var(--card-shadow);border-radius:12px;flex-direction:column;flex:0 0 812px;min-width:812px;min-height:0;transition:background .3s,box-shadow .3s;display:flex;overflow:hidden}.billing-inventory-inline .pagination{border-top:none;padding:8px 16px;position:relative}.billing-inventory-inline .pagination:before{content:"";background:var(--border-color);height:1px;transition:background .3s;position:absolute;top:0;left:16px;right:16px}.billing-inventory-panel{flex-direction:column;flex:1;min-height:0;padding:12px;transition:background .3s;display:flex;overflow:hidden}.billing-inventory-header{flex-shrink:0;justify-content:space-between;align-items:center;padding:0 0 12px;display:flex}.billing-inventory-header h3{color:var(--text-primary);margin:0;font-size:.95rem;font-weight:600;transition:color .3s}.billing-inventory-filters{border-bottom:1px solid var(--border-color);flex-direction:column;flex-shrink:0;gap:10px;padding-bottom:12px;transition:border-color .3s;display:flex}.billing-inventory-search{align-items:center;display:flex;position:relative}.billing-inventory-search svg{width:14px;height:14px;color:var(--text-secondary);pointer-events:none;position:absolute;left:10px}.billing-inventory-search input{background:var(--content-bg);border:1px solid var(--border-color);width:100%;height:34px;color:var(--text-primary);border-radius:8px;outline:none;padding:0 10px 0 30px;font-family:inherit;font-size:.8rem;transition:background .3s,border-color .15s,color .3s}.billing-inventory-search input:focus{border-color:var(--accent)}.billing-inventory-search input::placeholder{color:var(--text-secondary)}.billing-inventory-categories{flex-wrap:wrap;gap:4px;display:flex}.billing-inventory-cat-btn{border:1px solid var(--border-color);height:26px;color:var(--text-secondary);cursor:pointer;white-space:nowrap;background:0 0;border-radius:6px;align-items:center;gap:4px;padding:0 8px;font-family:inherit;font-size:.68rem;font-weight:500;transition:all .12s;display:inline-flex}.billing-inventory-cat-btn:hover{background:var(--sidebar-hover);border-color:var(--border-color);color:var(--text-primary)}.billing-inventory-cat-btn.active{background:var(--accent);border-color:var(--accent);color:#fff}.billing-inventory-cat-count{opacity:.7;font-size:.62rem}.billing-inventory-result-count{color:var(--text-secondary);flex-shrink:0;padding:8px 0 0;font-size:.68rem;transition:color .3s}.billing-inventory-list{flex:1;min-height:0;padding:4px 0;transition:background .3s;overflow-y:auto}.billing-inventory-list::-webkit-scrollbar{width:4px}.billing-inventory-list::-webkit-scrollbar-track{background:0 0}.billing-inventory-list::-webkit-scrollbar-thumb{background:var(--border-color);border-radius:2px;transition:background .3s}.billing-inventory-empty{text-align:center;color:var(--text-secondary);flex-direction:column;justify-content:center;align-items:center;gap:10px;padding:40px 20px;font-size:.8rem;transition:color .3s;display:flex}.billing-inventory-empty svg{opacity:.4;width:28px;height:28px}.billing-inventory-item{cursor:pointer;text-align:left;background:0 0;border:none;border-radius:8px;justify-content:space-between;align-items:center;gap:10px;width:100%;padding:10px 12px;font-family:inherit;transition:background .3s,color .3s;animation:.4s both billingRowIn;display:flex}@keyframes billingRowIn{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}.billing-inventory-list .billing-inventory-item:first-child{animation-delay:0s}.billing-inventory-list .billing-inventory-item:nth-child(2){animation-delay:50ms}.billing-inventory-list .billing-inventory-item:nth-child(3){animation-delay:.1s}.billing-inventory-list .billing-inventory-item:nth-child(4){animation-delay:.15s}.billing-inventory-list .billing-inventory-item:nth-child(5){animation-delay:.2s}.billing-inventory-list .billing-inventory-item:nth-child(6){animation-delay:.25s}.billing-inventory-list .billing-inventory-item:nth-child(7){animation-delay:.3s}.billing-inventory-list .billing-inventory-item:nth-child(8){animation-delay:.35s}.billing-inventory-list .billing-inventory-item:nth-child(9){animation-delay:.4s}.billing-inventory-list .billing-inventory-item:nth-child(10){animation-delay:.45s}.billing-inventory-list .billing-inventory-item:nth-child(11){animation-delay:.5s}.billing-inventory-list .billing-inventory-item:nth-child(12){animation-delay:.55s}.billing-inventory-list .billing-inventory-item:nth-child(13){animation-delay:.6s}.billing-inventory-list .billing-inventory-item:nth-child(14){animation-delay:.65s}.billing-inventory-list .billing-inventory-item:nth-child(15){animation-delay:.7s}.billing-inventory-list .billing-inventory-item:nth-child(16){animation-delay:.75s}.billing-inventory-list .billing-inventory-item:nth-child(17){animation-delay:.8s}.billing-inventory-list .billing-inventory-item:nth-child(18){animation-delay:.85s}.billing-inventory-list .billing-inventory-item:nth-child(19){animation-delay:.9s}.billing-inventory-list .billing-inventory-item:nth-child(20){animation-delay:.95s}.billing-inventory-item:hover:not(:disabled){background:var(--sidebar-hover)}.billing-inventory-item:active:not(:disabled){transform:scale(.99)}.billing-inventory-item.out-of-stock{opacity:.45;cursor:not-allowed}.billing-inventory-item-info{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.billing-inventory-item-name{color:var(--text-primary);white-space:nowrap;text-overflow:ellipsis;font-size:.82rem;font-weight:500;transition:color .3s;overflow:hidden}.billing-inventory-item-meta{color:var(--text-secondary);white-space:nowrap;text-overflow:ellipsis;font-size:.68rem;transition:color .3s;overflow:hidden}.billing-inventory-item-right{flex-direction:column;flex-shrink:0;align-items:flex-end;gap:2px;display:flex}.billing-inventory-item-price{color:var(--text-primary);font-variant-numeric:tabular-nums;font-size:.82rem;font-weight:600;transition:color .3s}.billing-inventory-item-stock{color:var(--text-secondary);background:var(--border-color);border-radius:4px;padding:1px 6px;font-size:.66rem;font-weight:500;transition:background .3s,color .3s}.billing-inventory-item-stock.low{color:var(--color-warning);background:#f59e0b1a}.billing-inventory-item-stock.empty{color:var(--color-danger);background:#ef44441a}@media (max-width:1200px){.billing-main-grid-wrapper{flex-wrap:wrap}.billing-payment-card-wrapper,.billing-receipt-column-wrapper{flex:340px}}@media (max-width:1024px){.billing-top-card{flex-direction:column;align-items:stretch;gap:8px}.billing-top-card-left{justify-content:center}.billing-top-card-right-group{flex-wrap:wrap;justify-content:center}}@media (max-width:768px){.billing-page{margin:-16px;padding:8px 8px 8px 0}.billing-main-grid-wrapper{flex-direction:column}.billing-table-card{padding:12px}.billing-payment-card-wrapper{flex:none;max-width:440px;margin:0 auto}.billing-receipt-column-wrapper{flex:none;max-width:400px;margin:0 auto}.billing-receipt-column{flex:none}.billing-form-row,.billing-form-row-full{grid-template-columns:1fr}.billing-footer-actions{flex-direction:column}.billing-rf-items-head,.billing-rf-item-row{grid-template-columns:1fr 60px 90px}.billing-rf-col-price{display:none}.billing-rf-vat-input-row{align-items:flex-end}.billing-rf-vat-input{width:90px}}@media print{body{background:#fff}body *{visibility:hidden}.billing-receipt-column-wrapper,.billing-receipt-column-wrapper *{visibility:visible}.billing-receipt-column-wrapper{width:100%;max-width:100%;height:auto;max-height:none;box-shadow:none;background:#fff;border:none;border-radius:0;padding:0;position:fixed;top:0;bottom:0;left:0;right:0;overflow:visible}.billing-receipt-preview-header{display:none}.billing-receipt-column{padding:0;overflow:visible}.billing-receipt-card{box-shadow:none;border:1px solid #e4e4e7;max-width:100%}.billing-receipt-card-store,.billing-receipt-card-sub,.billing-receipt-card-fromto-name,.billing-receipt-card-item-name,.billing-receipt-card-item-price,.billing-receipt-card-inv,.billing-receipt-card-vat-row,.billing-receipt-card-vat-row span:last-child,.billing-receipt-card-total,.billing-receipt-card-total span:last-child,.billing-receipt-card-meta-row span:last-child{color:#000!important}.billing-receipt-card-divider,.billing-receipt-card-dashed,.billing-receipt-card-items>.billing-receipt-card-item{border-color:#ccc}}.billing-title,.billing-cart-empty,.billing-qty-value,.billing-error-banner,.billing-rf-vat-title,.billing-receipt-preview-title,.billing-receipt-card-header,.billing-receipt-card-store,.billing-receipt-card-sub,.billing-receipt-card-info,.billing-receipt-card-fromto-label,.billing-receipt-card-fromto-name,.billing-receipt-card-section-title,.billing-receipt-card-item-empty,.billing-receipt-card-item-name,.billing-receipt-card-item-price,.billing-receipt-card-vat-row,.billing-receipt-card-total,.billing-receipt-card-footer,.billing-receipt-card-ack-row,.billing-receipt-card-ack-label{transition:color .3s}.billing-rf-soldto,.billing-rf-item-row,.billing-rf-vat-em,.billing-rf-vat-total,.billing-payment-header,.billing-receipt-preview-header,.billing-receipt-card-badge-label,.billing-receipt-card-item,.billing-receipt-card-ack-line,.billing-receipt-card-dashed{transition:border-color .3s}.billing-payment-pills-group,.billing-receipt-preview-actions{transition:background .3s}.billing-receipt-card{transition:background .3s,color .3s,border-color .3s}#page-container:has(.home-page){flex:1;min-height:0;overflow:visible}.content-body:has(.home-page){overflow:visible}.main-content:has(.home-page){scrollbar-width:none;-ms-overflow-style:none;scroll-snap-type:y proximity;scroll-padding-top:12px;overflow:auto}.main-content:has(.home-page)::-webkit-scrollbar{display:none}.home-page{--home-accent:#dc143c;--home-accent-strong:#b01030;--home-accent-deep:#8b0a24;--home-accent-soft:#dc143c1f;--home-accent-glow:#dc143c47;scrollbar-width:none;-ms-overflow-style:none;flex-direction:column;flex:1;gap:12px;min-height:auto;margin:-32px;padding:12px 12px 0 0;transition:background .3s,color .3s;display:flex;overflow:visible}.home-page::-webkit-scrollbar{display:none}@keyframes home-fade-up{0%{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}@keyframes home-fade-in{0%{opacity:0}to{opacity:1}}.home-reveal{animation:.6s cubic-bezier(.22,.61,.36,1) both home-fade-up}.home-hero{background:var(--sidebar-card-bg);border-radius:var(--sidebar-card-radius);box-shadow:var(--card-shadow);isolation:isolate;scroll-snap-align:start;flex-direction:column;flex:1;min-height:calc(100dvh - 24px);transition:background .3s,color .3s,box-shadow .3s;display:flex;position:relative;overflow:hidden;container-type:inline-size}@keyframes home-drift{0%{transform:translate(0)scale(1)}to{transform:translate(-36px,28px)scale(1.14)}}@keyframes home-drift-alt{0%{transform:translate(0)scale(1)}to{transform:translate(30px,-22px)scale(1.08)}}.home-hero-orb{pointer-events:none;z-index:0;border-radius:50%;position:absolute}.home-hero-orb--one{background:radial-gradient(circle,#dc143c38 0%,#0000 65%);width:460px;height:460px;animation:14s ease-in-out infinite alternate home-drift;top:-160px;right:-80px}.home-hero-orb--two{background:radial-gradient(circle,#dc143c24 0%,#0000 65%);width:340px;height:340px;animation:18s ease-in-out infinite alternate home-drift-alt;bottom:-140px;left:-60px}.home-hero-dots{background-image:radial-gradient(var(--border-color) 1px, transparent 1px);opacity:.7;pointer-events:none;z-index:0;background-size:20px 20px;position:absolute;top:0;bottom:0;left:0;right:0;-webkit-mask-image:radial-gradient(70% 90% at 65% 40%,#000 0%,#0000 100%);mask-image:radial-gradient(70% 90% at 65% 40%,#000 0%,#0000 100%)}.home-hero-bg-text{letter-spacing:.06em;color:#0000;-webkit-text-stroke:2px #ffffff1f;white-space:nowrap;pointer-events:none;-webkit-user-select:none;user-select:none;z-index:0;font-size:clamp(3.5rem,11cqw,10rem);font-weight:900;transition:-webkit-text-stroke .4s;animation:.8s cubic-bezier(.22,.61,.36,1) .2s both home-fade-in;position:absolute;top:32%;left:50%;transform:translate(-50%,-50%)}[data-theme=light] .home-hero-bg-text{-webkit-text-stroke:2px #0000001a}.home-hero-nav{z-index:2;justify-content:center;align-items:center;gap:36px;padding:22px 40px;display:flex}.home-hero-tab{letter-spacing:1.6px;text-transform:uppercase;color:var(--text-secondary);cursor:pointer;padding:4px 0;font-size:.68rem;font-weight:700;text-decoration:none;transition:color .2s}.home-hero-tab:hover,.home-hero-tab.is-active{color:var(--text-primary)}.home-hero-car{z-index:1;will-change:transform;flex:1;justify-content:center;align-items:center;margin-top:95px;padding:0 40px;display:flex;position:relative}.home-hero-car.home-reveal{animation-fill-mode:backwards}.home-hero-car img{object-fit:contain;filter:drop-shadow(0 24px 48px #00000059);width:75%;transition:transform .4s}.home-hero-car img:hover{transform:scale(1.02)}.home-hero-bottom{border-top:1px solid var(--border-color);z-index:2;justify-content:space-between;align-items:center;gap:24px;padding:24px 40px;display:flex}.home-hero-brand{flex-direction:column;gap:2px;min-width:140px;display:flex}.home-hero-brand-name{letter-spacing:2px;text-transform:uppercase;color:var(--text-primary);font-size:.72rem;font-weight:800}.home-hero-brand-model{color:var(--text-secondary);letter-spacing:.02em;font-size:1.05rem;font-weight:300}.home-hero-stats{align-items:flex-end;gap:40px;display:flex}.home-hero-stat{flex-direction:column;gap:2px;display:flex}.home-hero-stat-label{letter-spacing:1.2px;text-transform:uppercase;color:var(--text-secondary);font-size:.58rem;font-weight:700}.home-hero-stat-value{letter-spacing:-.02em;color:var(--text-primary);font-variant-numeric:tabular-nums;align-items:baseline;gap:3px;font-size:1.6rem;font-weight:800;line-height:1;display:flex}.home-hero-stat-value small{color:var(--text-secondary);font-size:.6rem;font-weight:600}.home-hero-thumbs{gap:8px;display:flex}.home-hero-thumb{background:var(--sidebar-card-bg);border:1px solid var(--border-color);border-radius:8px;flex-direction:column;align-items:center;gap:4px;min-width:72px;padding:8px 10px;transition:background .3s,border-color .3s;display:flex}.home-hero-thumb-icon{width:28px;height:28px;color:var(--home-accent);justify-content:center;align-items:center;display:flex}.home-hero-thumb-icon svg{width:20px;height:20px}.home-hero-thumb-name{color:var(--text-secondary);white-space:nowrap;text-overflow:ellipsis;max-width:60px;font-size:.56rem;font-weight:600;overflow:hidden}.skel-mini{width:70%;height:14px;display:block}.home-section{background:var(--sidebar-card-bg);border-radius:var(--sidebar-card-radius);box-shadow:var(--card-shadow);scroll-snap-align:start;padding:17px 22px;transition:background .3s,color .3s,box-shadow .3s}.home-section-head{justify-content:space-between;align-items:center;gap:12px;margin-bottom:15px;display:flex}.home-section-head h2{color:var(--text-primary);letter-spacing:-.01em;margin:0;font-size:.95rem;font-weight:700}.home-section-note{color:var(--text-secondary);font-size:.68rem;font-weight:500}.home-link{color:var(--text-secondary);align-items:center;gap:4px;font-size:.76rem;font-weight:600;text-decoration:none;transition:color .2s;display:inline-flex}.home-link svg{width:13px;height:13px}.home-link:hover{color:var(--text-primary)}.home-stats-live{color:#22c55e;letter-spacing:.5px;text-transform:uppercase;background:#22c55e1f;border-radius:999px;align-items:center;gap:6px;padding:3px 10px;font-size:.66rem;font-weight:700;display:inline-flex}.home-pulse-dot{background:#22c55e;border-radius:50%;flex-shrink:0;width:6px;height:6px;animation:2s cubic-bezier(.66,0,0,1) infinite home-pulse-ring;display:inline-block}@keyframes home-pulse-ring{0%{box-shadow:0 0 #22c55e73}70%{box-shadow:0 0 0 6px #22c55e00}to{box-shadow:0 0 #22c55e00}}.home-kpis{grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;display:grid}.home-kpi{background:var(--content-bg);border:1px solid var(--border-color);border-radius:12px;flex-direction:column;gap:10px;padding:16px;transition:border-color .2s,transform .2s,box-shadow .2s,background .3s;display:flex;position:relative;overflow:hidden}.home-kpi:before{content:"";background:var(--kpi-tone,var(--home-accent));opacity:.85;height:2.5px;position:absolute;top:0;left:0;right:0}.home-kpi:hover{border-color:#dc143c59;transform:translateY(-2px);box-shadow:0 8px 22px #0000001f}.home-kpi--accent{--kpi-tone:#dc143c}.home-kpi--ok{--kpi-tone:var(--color-success)}.home-kpi--warn{--kpi-tone:var(--color-warning)}.home-kpi--out{--kpi-tone:var(--color-danger)}.home-kpi-top{justify-content:space-between;align-items:center;gap:10px;display:flex}.home-kpi-icon{background:var(--home-accent-soft);width:32px;height:32px;color:var(--home-accent-strong);border-radius:9px;flex-shrink:0;justify-content:center;align-items:center;display:flex}.home-kpi-icon svg{width:16px;height:16px}.home-kpi-icon--ok{color:#16a34a;background:#22c55e1f}[data-theme=light] .home-kpi-icon--ok{color:#15803d}.home-kpi-icon--warn{color:#d97706;background:#f59e0b1f}.home-kpi-icon--out{color:#dc2626;background:#ef44441f}.home-kpi-label{letter-spacing:.8px;text-transform:uppercase;color:var(--text-secondary);text-align:right;font-size:.68rem;font-weight:700}.home-kpi-value{letter-spacing:-.03em;color:var(--text-primary);font-variant-numeric:tabular-nums;font-size:1.9rem;font-weight:800;line-height:1}.skel-kpi-big{border-radius:8px;width:70px;height:28px;display:block}.home-kpi-caption{color:var(--text-secondary);opacity:.85;font-size:.68rem}.home-score-foot{border-top:1px solid var(--border-color);flex-wrap:wrap;align-items:center;gap:10px 18px;margin-top:14px;padding-top:14px;display:flex}.home-score-bar{background:var(--sidebar-hover);border-radius:99px;flex:220px;gap:3px;min-width:160px;height:8px;display:flex;overflow:hidden}.home-health-seg{border-radius:99px;height:100%;transition:background .3s}.home-health-seg--ok{background:#22c55e}.home-health-seg--warn{background:var(--color-warning)}.home-health-seg--out{background:var(--color-danger)}.home-health-legend{color:var(--text-secondary);flex-wrap:wrap;align-items:center;gap:8px 20px;font-size:.78rem;display:flex}.home-health-item{white-space:nowrap;align-items:center;gap:7px;display:inline-flex}.home-health-item b{color:var(--text-primary);font-variant-numeric:tabular-nums;font-weight:600}.home-dot{border-radius:50%;flex-shrink:0;width:7px;height:7px}.home-dot--ok{background:#22c55e}.home-dot--warn{background:var(--color-warning)}.home-dot--out{background:var(--color-danger)}.home-health-note{white-space:nowrap;margin-left:auto;font-size:.75rem;font-weight:600}.home-health-note.is-ok{color:#22c55e}.home-health-note.is-warn{color:var(--color-warning)}.home-caps{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;display:grid}.home-cap{background:var(--content-bg);border:1px solid var(--border-color);border-radius:12px;align-items:flex-start;gap:13px;padding:15px;transition:border-color .2s,transform .2s,background .3s;display:flex}.home-cap:hover{border-color:#dc143c59;transform:translateY(-2px)}.home-cap-icon{background:var(--home-accent-soft);width:36px;height:36px;color:var(--home-accent-strong);border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;display:flex}.home-cap-icon svg{width:17px;height:17px}.home-cap-text{flex-direction:column;gap:3px;min-width:0;display:flex}.home-cap-title{color:var(--text-primary);font-size:.82rem;font-weight:700}.home-cap-desc{color:var(--text-secondary);font-size:.7rem;line-height:1.55}.home-filter{flex-direction:column;gap:12px;display:flex}.home-filter-bar{background:var(--content-bg);border:1px solid var(--border-color);border-radius:12px;align-items:center;transition:border-color .25s,box-shadow .25s,background .3s;display:flex;overflow:hidden;box-shadow:0 2px 10px #0000000d}.home-filter-bar:focus-within{border-color:var(--home-accent);box-shadow:0 0 0 3px var(--home-accent-glow), 0 2px 10px #0000000d}.home-filter-bar>svg{width:17px;height:17px;color:var(--text-secondary);flex-shrink:0;margin-left:14px}.home-filter-bar input{color:var(--text-primary);background:0 0;border:none;outline:none;flex:1;min-width:0;padding:13px 12px;font-family:inherit;font-size:.86rem}.home-filter-bar input::placeholder{color:var(--text-secondary)}.home-filter-bar button{color:#fff;cursor:pointer;white-space:nowrap;background:linear-gradient(135deg,#dc143c,#b01030);border:none;padding:13px 24px;font-family:inherit;font-size:.8rem;font-weight:600;transition:filter .2s,transform .15s}.home-filter-bar button:hover{filter:brightness(1.08)}.home-filter-bar button:active{transform:scale(.98)}.home-filter-row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.home-filter-note{color:var(--text-secondary);align-items:center;gap:6px;margin:0;font-size:.68rem;display:flex}.home-chips-label{letter-spacing:.5px;text-transform:uppercase;color:var(--text-secondary);margin-right:2px;font-size:.68rem;font-weight:600}.home-chip{background:var(--content-bg);border:1px solid var(--border-color);color:var(--text-secondary);cursor:pointer;border-radius:999px;align-items:center;gap:6px;padding:5px 13px;font-family:inherit;font-size:.72rem;font-weight:500;transition:color .2s,border-color .2s,transform .2s,background .2s;display:inline-flex}.home-chip:hover{color:var(--home-accent-strong);background:var(--home-accent-soft);border-color:#dc143c73;transform:translateY(-1px)}.home-chip.is-active,.home-chip.is-active:hover{color:#fff;filter:none;background:linear-gradient(135deg,#dc143c,#b01030);border-color:#0000}.home-chip-dot{border-radius:50%;flex-shrink:0;width:6px;height:6px}.home-chip-dot--in-stock{background:#22c55e}.home-chip-dot--low-stock{background:var(--color-warning)}.home-chip-dot--out-of-stock{background:var(--color-danger)}.home-kbd{min-width:20px;height:20px;color:var(--text-secondary);background:var(--sidebar-hover);border:1px solid var(--border-color);border-radius:4px;justify-content:center;align-items:center;padding:0 6px;font-family:inherit;font-size:.68rem;font-weight:600;line-height:1;transition:background .3s,color .3s,border-color .3s;display:inline-flex}.home-cats{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px;display:grid}.home-cat{background:var(--content-bg);border:1px solid var(--border-color);border-radius:10px;align-items:center;gap:12px;padding:11px 14px;text-decoration:none;transition:background .15s,border-color .15s;display:flex}.home-cat:hover{background:var(--sidebar-hover)}.home-cat-index{letter-spacing:.5px;width:18px;color:var(--text-secondary);opacity:.55;font-variant-numeric:tabular-nums;flex-shrink:0;font-size:.62rem;font-weight:600}.home-cat-icon{opacity:.9;flex-shrink:0;display:flex}.home-cat-icon svg{width:20px;height:20px}.home-cat-text{flex-direction:column;flex:1;gap:1px;min-width:0;display:flex}.home-cat-name{color:var(--text-primary);white-space:nowrap;text-overflow:ellipsis;font-size:.82rem;font-weight:600;overflow:hidden}.home-cat-count{color:var(--text-secondary);font-variant-numeric:tabular-nums;white-space:nowrap;text-overflow:ellipsis;font-size:.68rem;overflow:hidden}.home-cat-chevron{color:var(--text-secondary);opacity:0;flex-shrink:0;transition:opacity .2s,transform .2s;display:flex;transform:translate(-4px)}.home-cat-chevron svg{width:13px;height:13px}.home-cat:hover .home-cat-chevron{opacity:1;transform:translate(0)}.home-cat--empty .home-cat-index,.home-cat--empty .home-cat-icon,.home-cat--empty .home-cat-text{opacity:.45}.home-cat--empty:hover .home-cat-chevron{opacity:0}.home-catalog-divider{background:var(--border-color);height:1px;margin:18px 0;transition:background .3s}.home-ledger{flex-direction:column;display:flex}.home-row{align-items:center;gap:14px;padding:11px 12px;text-decoration:none;transition:background .15s;display:flex}.home-row:hover{background:var(--sidebar-hover)}.home-row+.home-row{border-top:1px solid var(--border-color)}.home-row-thumb{border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;width:39px;height:39px;display:flex}.home-row-thumb svg{opacity:.9;width:19px;height:19px}.home-row-main{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.home-row-name{color:var(--text-primary);white-space:nowrap;text-overflow:ellipsis;font-size:.84rem;font-weight:600;overflow:hidden}.home-row-sub{color:var(--text-secondary);letter-spacing:.2px;white-space:nowrap;text-overflow:ellipsis;font-size:.68rem;overflow:hidden}.home-row-price{color:var(--text-primary);letter-spacing:-.01em;font-variant-numeric:tabular-nums;white-space:nowrap;margin-left:auto;font-size:.88rem;font-weight:700}.home-row-status{white-space:nowrap;flex-shrink:0;justify-content:flex-end;align-items:center;gap:6px;width:104px;font-size:.68rem;font-weight:600;display:inline-flex}.home-status-dot{background:currentColor;border-radius:50%;width:6px;height:6px}.home-row-status.in-stock{color:#22c55e}.home-row-status.low-stock{color:var(--color-warning)}.home-row-status.out-of-stock{color:var(--color-danger)}.skel{background:var(--sidebar-hover);border-radius:6px;position:relative;overflow:hidden}.skel:after{content:"";background:linear-gradient(90deg,#0000,#ffffff12,#0000);animation:1.4s ease-in-out infinite home-shimmer;position:absolute;top:0;bottom:0;left:0;right:0;transform:translate(-100%)}[data-theme=light] .skel:after{background:linear-gradient(90deg,#0000,#ffffff8c,#0000)}@keyframes home-shimmer{to{transform:translate(100%)}}.home-row-skel{align-items:center;gap:14px;padding:11px 12px;display:flex}.home-row-skel+.home-row-skel{border-top:1px solid var(--border-color)}.skel-thumb-sm{border-radius:9px;flex-shrink:0;width:40px;height:40px}.home-row-skel-lines{flex-direction:column;flex:1;gap:8px;min-width:0;display:flex}.skel-line{width:62%;height:11px}.skel-line--short{width:38%}.skel-price{flex-shrink:0;width:74px;height:13px}.home-state{color:var(--text-secondary);justify-content:center;align-items:center;gap:10px;padding:48px;font-size:.85rem;display:flex}.home-state svg{width:20px;height:20px;color:var(--color-danger)}.home-state button{color:var(--home-accent-strong);cursor:pointer;font-family:inherit;font-weight:600;font-size:inherit;background:0 0;border:none;padding:0}.home-state button:hover{text-decoration:underline}.home-cta{border-radius:var(--sidebar-card-radius);isolation:isolate;background:linear-gradient(120deg,#dc143c 0%,#b01030 55%,#8b0a24 100%);justify-content:space-between;align-items:center;gap:24px;padding:36px;display:flex;position:relative;overflow:hidden;box-shadow:0 10px 30px #dc143c40}.home-cta-deco{pointer-events:none;z-index:0;border-radius:50%;position:absolute}.home-cta-deco--one{border:1.5px dashed #ffffff38;width:220px;height:220px;top:-70px;right:130px}.home-cta-deco--two{background:radial-gradient(circle,#ffffff1f 0%,#0000 65%);width:260px;height:260px;bottom:-110px;left:8%}.home-cta-text{z-index:1;position:relative}.home-cta-text h2{color:#fff;letter-spacing:-.02em;margin:0 0 6px;font-size:1.25rem;font-weight:800}.home-cta-text p{color:#ffffffd9;margin:0;font-size:.83rem}.home-cta-btn{z-index:1;color:var(--home-accent-deep);cursor:pointer;white-space:nowrap;background:#fff;border:none;border-radius:999px;align-items:center;gap:8px;padding:12px 24px;font-family:inherit;font-size:.8rem;font-weight:700;text-decoration:none;transition:transform .2s,box-shadow .2s;display:inline-flex;position:relative;box-shadow:0 4px 14px #00000026}.home-cta-btn svg{width:14px;height:14px;transition:transform .2s}.home-cta:hover .home-cta-btn{transform:translateY(-1px);box-shadow:0 6px 18px #0003}.home-cta:hover .home-cta-btn svg{transform:translate(3px)}.home-cta-btn--as-btn{color:var(--home-accent-deep);cursor:pointer;white-space:nowrap;background:#fff;border:none;border-radius:999px;align-items:center;gap:8px;padding:12px 24px;font-family:inherit;font-size:.8rem;font-weight:700;text-decoration:none;transition:transform .2s,box-shadow .2s;display:inline-flex;box-shadow:0 4px 14px #00000026}.home-cta-btn--as-btn svg{width:14px;height:14px}.home-page a:focus-visible{outline:2px solid var(--home-accent);outline-offset:2px}.home-page button:focus-visible{outline:2px solid var(--home-accent);outline-offset:2px}.home-page input:focus-visible{outline:2px solid var(--home-accent);outline-offset:2px}@media (prefers-reduced-motion:reduce){.home-page *,.home-page :before,.home-page :after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}.home-reveal{animation:none}.home-hero-car{will-change:auto}}@media (max-width:1120px){.home-hero-nav{gap:24px}.home-hero-stats{gap:28px}.home-hero-stat-value{font-size:1.3rem}}@media (max-width:1024px){.home-hero-nav{gap:18px}.home-hero-car img{max-width:95%}.home-hero-stats{gap:20px}.home-hero-thumb{display:none}}@media (max-width:768px){.home-page{gap:16px;margin:-16px;padding:12px 12px 0 0}.home-hero{min-height:calc(100dvh - 16px)}.home-hero-nav{gap:14px;padding:18px 20px}.home-hero-tab{letter-spacing:1px;font-size:.6rem}.home-hero-car{margin-top:95px;padding:0 20px}.home-hero-car img{width:75%}.home-hero-bottom{flex-wrap:wrap;gap:16px;padding:18px 20px}.home-hero-stats{gap:16px}.home-hero-stat-value{font-size:1.15rem}.home-hero-thumbs{display:none}.home-section{padding:18px}.home-section-head{flex-wrap:wrap}.home-score-foot{flex-direction:column;align-items:stretch}.home-health-note{margin-left:0}.home-cta{flex-direction:column;align-items:flex-start;padding:26px 22px}.home-row{flex-wrap:wrap;row-gap:2px}.home-row-main{flex-basis:calc(100% - 54px)}.home-row-price{margin-top:2px;margin-left:54px}.home-row-status{width:auto;margin-top:2px;margin-left:auto}}@media (max-width:480px){.home-hero-nav{gap:10px;padding:14px}.home-hero-tab{letter-spacing:.8px;font-size:.52rem}.home-hero-car{margin-top:95px;padding:0 14px}.home-hero-bottom{gap:12px;padding:14px}.home-hero-brand{min-width:auto}.home-hero-brand-name{font-size:.62rem}.home-hero-brand-model{font-size:.85rem}.home-hero-stats{gap:12px}.home-hero-stat-value{font-size:1rem}.home-filter-bar{flex-wrap:wrap}.home-filter-bar input{flex:calc(100% - 46px)}.home-filter-bar button{flex:100%;padding:13px 18px}.home-kpis{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}.home-kpi-value{font-size:1.5rem}.home-row-price{font-size:.82rem}.home-cta-text h2{font-size:1.1rem}.home-cta .home-cta-btn{justify-content:center;width:100%}}.home-hero-bg-text,.home-hero-tab,.home-hero-stat-label,.home-hero-stat-value,.home-hero-stat-value small,.home-hero-brand-name,.home-hero-brand-model,.home-hero-thumb-name,.home-chips-label,.home-section-note,.home-kpi-label,.home-kpi-value,.home-kpi-caption,.home-health-legend,.home-cap-title,.home-cap-desc,.home-filter-note,.home-cat-index,.home-cat-name,.home-cat-count,.home-row-name,.home-row-sub,.home-row-price,.home-state{transition:color .3s}.home-hero-bottom,.home-hero-thumb{transition:border-color .3s,background .3s}.home-score-bar,.skel{transition:background .3s}.home-score-foot{transition:border-color .3s}.chat-page{flex-direction:column;flex:1;gap:12px;min-height:0;margin:-32px;padding:12px 12px 12px 0;display:flex}.chat-body{flex-direction:column;flex:1;min-height:0;display:flex}.chat-content{flex-direction:column;flex:1;gap:12px;min-height:0;display:flex}.chat-top-card{background:var(--sidebar-card-bg);border-radius:var(--sidebar-card-radius);box-shadow:var(--card-shadow);justify-content:space-between;align-items:center;padding:8px 12px;transition:background .3s,border-color .3s;display:flex}.chat-top-card-left{border-radius:10px;align-items:center;min-height:40px;margin:0 4px;padding:8px 12px;display:flex}.chat-title{font-size:var(--h1);color:var(--sidebar-text-active);white-space:nowrap;margin:0;font-weight:700;line-height:1}.chat-count-badge{background:var(--accent);color:#fff;border-radius:11px;justify-content:center;align-items:center;min-width:22px;height:22px;margin-left:10px;padding:0 6px;font-size:.75rem;font-weight:700;display:inline-flex}.chat-top-card-right{align-items:center;margin:0 4px;display:flex}.chat-main-card{background:var(--sidebar-card-bg);border-radius:var(--sidebar-card-radius);width:100%;min-height:0;box-shadow:var(--card-shadow);flex-direction:column;flex:1;transition:background .3s,border-color .3s;display:flex;overflow:hidden}.chat-layout{flex:1;width:100%;display:flex;overflow:hidden}.chat-sidebar{border-right:1px solid var(--border-color);background:0 0;flex-direction:column;flex-shrink:0;width:320px;transition:border-color .3s;display:flex}.chat-sidebar-header{border-bottom:1px solid var(--border-color);align-items:center;gap:8px;padding:12px 16px;transition:border-color .3s;display:flex}.chat-search-wrap{flex:1;position:relative}.chat-search-icon{width:16px;height:16px;color:var(--text-muted);pointer-events:none;position:absolute;top:50%;left:10px;transform:translateY(-50%)}.chat-search-input{border:1px solid var(--border-color);background:var(--header-bg);width:100%;color:var(--text-primary);border-radius:20px;outline:none;padding:8px 12px 8px 32px;font-size:.875rem;transition:border-color .15s}.chat-search-input:focus{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-light)}.chat-search-input::placeholder{color:var(--text-muted)}.chat-new-btn{background:var(--accent);color:#fff;cursor:pointer;border:none;border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;width:36px;height:36px;transition:background .15s;display:flex}.chat-new-btn:hover{background:var(--accent-dark)}.chat-new-btn svg{width:18px;height:18px}.chat-queue-btn{background:var(--content-bg);width:36px;height:36px;color:var(--text-muted);cursor:pointer;border:none;border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;transition:all .15s;display:flex;position:relative}.chat-queue-btn:hover{background:var(--sidebar-hover);color:var(--accent)}.chat-queue-btn.active{background:var(--accent);color:#fff}.chat-queue-btn svg{width:18px;height:18px}.chat-queue-badge{color:#fff;background:#ef4444;border-radius:8px;justify-content:center;align-items:center;min-width:16px;height:16px;padding:0 4px;font-size:.625rem;font-weight:700;line-height:1;display:flex;position:absolute;top:-4px;right:-4px}.chat-conversation-list{flex:1;overflow-y:auto}.chat-conversation-item{cursor:pointer;text-align:left;border:none;border-bottom:1px solid var(--border-color);background:0 0;align-items:center;gap:12px;width:100%;padding:12px 16px;transition:background .1s,border-color .3s;display:flex}.chat-conversation-item:hover{background:var(--sidebar-hover)}.chat-conversation-item.selected{background:var(--accent-light)}.chat-avatar{background:var(--accent);color:#fff;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:40px;height:40px;font-size:.875rem;font-weight:600;display:flex;overflow:hidden}.chat-avatar img{object-fit:cover;width:100%;height:100%}.chat-avatar.small{width:32px;height:32px;font-size:.75rem}.chat-conversation-info{flex:1;min-width:0}.chat-conversation-name{color:var(--text-primary);white-space:nowrap;text-overflow:ellipsis;font-size:.875rem;font-weight:600;display:block;overflow:hidden}.chat-conversation-preview{color:var(--text-secondary);white-space:nowrap;text-overflow:ellipsis;margin-top:2px;font-size:.8125rem;display:block;overflow:hidden}.chat-conversation-meta{flex-direction:column;flex-shrink:0;align-items:flex-end;gap:4px;display:flex}.chat-conversation-time{color:var(--text-muted);font-size:.75rem}.chat-unread-badge{background:var(--accent);color:#fff;border-radius:10px;justify-content:center;align-items:center;min-width:20px;height:20px;padding:0 6px;font-size:.6875rem;font-weight:600;display:inline-flex}.chat-sidebar-loading{flex-direction:column;width:100%;display:flex}.chat-sidebar-empty,.chat-sidebar-error{color:var(--text-secondary);flex-direction:column;justify-content:center;align-items:center;gap:12px;padding:40px 20px;display:flex}.chat-sidebar-empty svg{width:48px;height:48px;color:var(--text-muted)}.chat-sidebar-empty p,.chat-sidebar-error p{color:var(--text-muted);font-size:.875rem}.chat-empty-action,.chat-sidebar-error button{background:var(--accent);color:#fff;cursor:pointer;border:none;border-radius:6px;padding:6px 16px;font-size:.8125rem;transition:background .15s}.chat-empty-action:hover,.chat-sidebar-error button:hover{background:var(--accent-dark)}.chat-conversation-skeleton{border-bottom:1px solid var(--border-color);align-items:center;gap:12px;padding:12px 16px;display:flex}.skeleton-chat-lines{flex-direction:column;flex:1;gap:6px;min-width:0;display:flex}.skeleton-chat-lines .skeleton-text{height:10px}.skeleton-chat-lines .skeleton-text:first-child{width:45%;height:13px}.skeleton-chat-lines .skeleton-text:last-child{width:65%}.skeleton-time{border-radius:4px;flex-shrink:0;width:32px;height:10px}.chat-window{flex-direction:column;flex:1;display:flex;overflow:hidden}.chat-window-empty{justify-content:center;align-items:center}.chat-empty-state{color:var(--text-secondary);flex-direction:column;align-items:center;gap:12px;display:flex}.chat-empty-state svg{width:64px;height:64px;color:var(--text-muted);opacity:.5}.chat-empty-state h3{color:var(--text-primary);margin:0;font-size:1.125rem}.chat-empty-state p{color:var(--text-muted);margin:0;font-size:.875rem}.chat-window-header{border-bottom:1px solid var(--border-color);background:var(--header-bg);flex-shrink:0;align-items:center;gap:12px;padding:12px 20px;transition:background .3s,border-color .3s;display:flex}.chat-window-header-info{flex-direction:column;flex:1;min-width:0;display:flex}.chat-window-header-meta{align-items:center;gap:8px;display:flex}.chat-window-name{color:var(--text-primary);font-size:.9375rem;font-weight:600}.chat-window-type{color:var(--text-muted);text-transform:capitalize;font-size:.75rem}.chat-window-assignee{color:var(--text-muted);white-space:nowrap;text-overflow:ellipsis;font-size:.6875rem;overflow:hidden}.chat-window-actions{flex-shrink:0;align-items:center;gap:4px;display:flex}.chat-window-action-btn{width:32px;height:32px;color:var(--text-muted);cursor:pointer;background:0 0;border:none;border-radius:6px;justify-content:center;align-items:center;transition:all .15s;display:flex}.chat-window-action-btn:hover{background:var(--sidebar-hover);color:var(--text-primary)}.chat-window-action-btn.active{color:var(--accent)}.chat-window-action-btn svg{width:16px;height:16px}.chat-messages{scrollbar-width:none;-ms-overflow-style:none;border:none;outline:none;flex-direction:column;flex:1;gap:12px;min-width:0;padding:16px 20px;transition:background .3s;display:flex;overflow:hidden auto}.chat-messages::-webkit-scrollbar{width:4px;display:none}.chat-messages::-webkit-scrollbar-track{background:0 0;border:none}.chat-messages::-webkit-scrollbar-thumb{background:var(--border-color);border-radius:2px}.chat-messages:hover::-webkit-scrollbar{display:block}.chat-inquiry-summary{background:var(--header-bg);border:1px solid var(--border-color);border-radius:12px;width:100%;margin-bottom:12px;overflow:hidden}.chat-inquiry-header{color:var(--text-primary);align-items:center;gap:8px;padding:10px 14px;font-size:.8125rem;font-weight:600;display:flex}.chat-inquiry-body{flex-direction:column;gap:10px;padding:0 14px 12px;display:flex}.chat-inquiry-row{align-items:center;gap:10px;display:flex}.chat-inquiry-label{color:var(--text-muted);flex-shrink:0;min-width:70px;font-size:.6875rem;font-weight:600}.chat-inquiry-value{color:var(--text-primary);font-size:.8125rem;font-weight:500}.chat-inquiry-badge{border-radius:20px;align-items:center;gap:4px;padding:3px 10px;font-size:.6875rem;font-weight:600;display:inline-flex}.chat-inquiry-badge--ready_to_buy{color:#4ade80;background:#22c55e1f}.chat-inquiry-badge--comparing_prices{color:#facc15;background:#fbbf241f}.chat-inquiry-badge--just_inquiring{color:#818cf8;background:#6366f11f}.chat-messages-loading{flex:1;justify-content:center;align-items:center;display:flex}.chat-messages-empty{text-align:center;flex:1;justify-content:center;align-items:center;width:100%;display:flex}.chat-messages-empty p{color:var(--text-muted);font-size:.875rem}.chat-messages-error{flex-direction:column;flex:1;justify-content:center;align-items:center;gap:12px;display:flex}.chat-messages-error p{color:#ef4444;text-align:center;font-size:.875rem}.chat-retry-btn{border:1px solid var(--border-color,#ffffff1f);background:var(--bg-card,#1a1a2e);color:var(--text-primary,#e5e5e5);cursor:pointer;border-radius:6px;padding:6px 16px;font-size:.8125rem;font-weight:500;transition:all .2s}.chat-retry-btn:hover{background:var(--accent,#6366f1);color:#fff;border-color:var(--accent,#6366f1)}.image-zoom-overlay{z-index:9999;background:#000000d9;justify-content:center;align-items:center;padding:32px;animation:.15s ease-out imageZoomFadeIn;display:flex;position:fixed;top:0;bottom:0;left:0;right:0}.image-zoom-overlay.closing{animation:.15s ease-in forwards imageZoomFadeOut}.image-zoom-img{object-fit:contain;cursor:zoom-out;-webkit-user-select:none;user-select:none;-webkit-user-drag:none;border-radius:4px;max-width:100%;max-height:100%;animation:.2s ease-out imageZoomScaleIn}.image-zoom-close{color:#fff;cursor:pointer;z-index:10;background:#ffffff1f;border:none;border-radius:50%;justify-content:center;align-items:center;width:40px;height:40px;transition:background .2s;display:flex;position:absolute;top:16px;right:16px}.image-zoom-close:hover{background:#ffffff3d}.image-zoom-close svg{width:22px;height:22px}@keyframes imageZoomFadeIn{0%{opacity:0}to{opacity:1}}@keyframes imageZoomFadeOut{0%{opacity:1}to{opacity:0}}@keyframes imageZoomScaleIn{0%{opacity:0;transform:scale(.92)}to{opacity:1;transform:scale(1)}}.chat-date-divider{justify-content:center;align-items:center;padding:8px 0;display:flex}.chat-date-divider span{color:var(--text-muted);background:var(--content-bg);border-radius:12px;padding:4px 12px;font-size:.75rem}.chat-message{align-items:flex-end;gap:8px;max-width:70%;margin-bottom:4px;display:flex}.chat-message.grouped{max-width:70%;margin-bottom:2px}.chat-message:not(.grouped):not(:first-child){margin-top:16px}.chat-message-avatar.hidden{visibility:hidden;width:28px;height:0;margin:0;padding:0}.chat-messages>.own-msg-wrap{flex-direction:column;width:100%;min-width:0;display:flex}.chat-message.own{flex-direction:row-reverse;align-self:flex-end;max-width:75%;margin-left:auto}.chat-message-avatar{background:var(--text-muted);color:#fff;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:28px;height:28px;font-size:.625rem;font-weight:600;display:flex}.chat-message-content{flex-direction:column;max-width:100%;display:flex}.chat-sender-name{margin-bottom:4px;padding:0 4px;font-size:.75rem;font-weight:600;line-height:1.2}.chat-message:not(.own) .chat-message-content{align-items:flex-start}.chat-message.own .chat-message-content{text-align:right;align-items:flex-end;margin-left:auto}.chat-message-bubble{word-wrap:break-word;overflow-wrap:break-word;border-radius:16px;max-width:100%;padding:8px 14px;font-size:.875rem;line-height:1.4;transition:background .3s,color .3s}.chat-msg-row{align-items:flex-end;gap:6px;display:flex}.chat-message:not(.own) .chat-message-bubble{background:var(--content-bg);color:var(--text-primary);border-bottom-left-radius:4px}.chat-message.own .chat-message-bubble{background:var(--accent);color:#fff;border-bottom-right-radius:4px;align-self:flex-end}.chat-message-time{color:var(--text-muted);align-items:center;gap:4px;margin-top:4px;padding:0 4px;font-size:.625rem;display:flex}.chat-message:not(.own) .chat-message-time{margin-left:0}.chat-message.own .chat-message-time{justify-content:flex-end}.chat-read-check{width:14px;height:14px;color:var(--accent)}.chat-input-area{border-top:1px solid var(--border-color);background:var(--header-bg);flex-shrink:0;align-items:flex-end;gap:8px;padding:12px 20px;transition:background .3s,border-color .3s;display:flex}.chat-scroll-btn{background:var(--content-bg);border:1px solid var(--border-color);width:32px;height:32px;color:var(--text-secondary);cursor:pointer;z-index:5;border-radius:50%;justify-content:center;align-items:center;transition:background .15s,color .15s;display:flex;position:absolute;top:-20px;left:50%;transform:translate(-50%);box-shadow:0 2px 8px #0000001f}.chat-scroll-btn:hover{background:var(--accent);color:#fff;border-color:var(--accent)}.chat-input{border:1px solid var(--border-color);background:var(--content-bg);color:var(--text-primary);resize:none;border-radius:20px;outline:none;flex:1;max-height:120px;padding:10px 16px;font-family:inherit;font-size:.875rem;line-height:1.4;transition:border-color .15s;overflow-y:auto}.chat-input::-webkit-scrollbar{width:0;display:none}.chat-input{scrollbar-width:none}.chat-input:focus{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-light)}.chat-input::placeholder{color:var(--text-muted)}.chat-send-btn{background:var(--content-bg);width:40px;height:40px;color:var(--text-muted);cursor:pointer;border:none;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;transition:all .15s;display:flex}.chat-send-btn:hover:not(:disabled),.chat-send-btn.active{background:var(--accent);color:#fff}.chat-send-btn:disabled{opacity:.5;cursor:not-allowed}.chat-send-btn svg{width:18px;height:18px}.chat-modal-overlay{z-index:1000;background:#00000080;justify-content:center;align-items:center;display:flex;position:fixed;top:0;bottom:0;left:0;right:0}.chat-modal{background:var(--header-bg);border-radius:12px;flex-direction:column;width:360px;max-height:80vh;display:flex;overflow:hidden;box-shadow:0 20px 60px #0000004d}.chat-modal-header{border-bottom:1px solid var(--border-color);justify-content:space-between;align-items:center;padding:16px 20px;display:flex}.chat-modal-header h3{color:var(--text-primary);margin:0;font-size:1rem;font-weight:600}.chat-modal-close{width:28px;height:28px;color:var(--text-secondary);cursor:pointer;background:0 0;border:none;border-radius:6px;justify-content:center;align-items:center;display:flex}.chat-modal-close:hover{background:var(--sidebar-hover)}.chat-modal-close svg{width:16px;height:16px}.chat-modal-body{flex:1;padding:8px;overflow-y:auto}.chat-modal-loading,.chat-modal-empty{text-align:center;color:var(--text-muted);padding:32px;font-size:.875rem}.chat-staff-option{cursor:pointer;text-align:left;background:0 0;border:none;border-radius:8px;align-items:center;gap:12px;width:100%;padding:10px 12px;transition:background .1s;display:flex}.chat-staff-option:hover{background:var(--sidebar-hover)}.chat-staff-info{flex-direction:column;display:flex}.chat-staff-name{color:var(--text-primary);font-size:.875rem;font-weight:500}.chat-staff-role{color:var(--text-muted);text-transform:capitalize;font-size:.75rem}@media (max-width:768px){.chat-top-card{flex-direction:column;gap:8px;padding:12px}.chat-top-card-right{justify-content:center;width:100%}.chat-layout{flex-direction:column}.chat-sidebar{border-right:none;border-bottom:1px solid var(--border-color);width:100%;max-height:250px}.chat-window{min-height:0}.chat-message{max-width:85%}.chat-input-area{padding:10px 12px}}.chat-msg-menu-wrap{align-self:flex-start;margin-left:4px;position:relative}.chat-message.own .chat-msg-menu-wrap{margin-left:0;margin-right:4px}.chat-msg-menu-btn{cursor:pointer;color:var(--text-muted);background:0 0;border:none;border-radius:4px;padding:4px 6px;font-size:14px;line-height:1;transition:all .15s}.chat-msg-menu-btn:hover{background:var(--sidebar-hover);color:var(--text-primary)}.chat-msg-actions{background:var(--sidebar-card-bg,#1a1a2e);border:1px solid var(--border-color);z-index:50;border-radius:8px;min-width:120px;padding:4px;animation:.15s menuFadeIn;position:absolute;top:100%;right:0;box-shadow:0 4px 12px #0003}@keyframes menuFadeIn{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.chat-msg-action-item{text-align:left;cursor:pointer;width:100%;color:var(--text-primary);background:0 0;border:none;border-radius:4px;padding:6px 10px;font-size:.8125rem;transition:background .1s;display:block}.chat-msg-action-item:hover{background:var(--sidebar-hover)}.chat-msg-action-item.danger{color:#ef4444}.chat-msg-action-item.danger:hover{background:#ef44441a}.chat-msg-hover-bar{opacity:0;pointer-events:none;z-index:10;gap:2px;transition:opacity .15s;display:flex;position:absolute;top:-4px;right:4px}.chat-message:hover .chat-msg-hover-bar,.chat-msg-hover-bar:hover{opacity:1;pointer-events:auto}.chat-msg-hover-btn{background:var(--sidebar-card-bg,#1a1a2e);width:26px;height:26px;color:var(--text-muted);cursor:pointer;border:none;border-radius:6px;justify-content:center;align-items:center;font-size:.8rem;display:flex;box-shadow:0 1px 4px #0003}.chat-msg-hover-btn:hover{background:var(--accent);color:#fff}.chat-message.own{position:relative}.chat-message.own .chat-msg-hover-bar{left:4px;right:auto}.chat-msg-edited{color:var(--text-muted);margin-top:1px;padding:0 4px;font-size:.625rem;font-style:italic}.chat-deleted-msg{background:var(--content-bg);color:var(--text-muted);opacity:.6;border-radius:16px;padding:6px 14px;font-size:.8125rem;font-style:italic}.chat-edit-area{flex-direction:column;gap:6px;min-width:200px;display:flex}.chat-edit-input{border:1.5px solid var(--accent);resize:vertical;background:var(--content-bg);min-height:40px;max-height:120px;color:var(--text-primary);border-radius:12px;outline:none;padding:8px 12px;font-family:inherit;font-size:.875rem;line-height:1.4;transition:border-color .15s}.chat-edit-input:focus{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-light)}.chat-edit-actions{justify-content:flex-end;gap:6px;display:flex}.chat-edit-btn{cursor:pointer;border:none;border-radius:6px;padding:5px 12px;font-size:.75rem;font-weight:600;transition:all .15s}.chat-edit-btn.save{background:var(--accent);color:#fff}.chat-edit-btn.save:hover{background:var(--accent-dark)}.chat-edit-btn.cancel{background:var(--content-bg);color:var(--text-secondary);border:1px solid var(--border-color)}.chat-edit-btn.cancel:hover{background:var(--sidebar-hover)}.chat-search-bar{border-bottom:1px solid var(--border-color);background:var(--header-bg);flex-shrink:0;align-items:center;gap:8px;padding:8px 20px;display:flex}.chat-search-bar input{border:1px solid var(--border-color);background:var(--content-bg);color:var(--text-primary);border-radius:8px;outline:none;flex:1;padding:6px 12px;font-size:.8125rem}.chat-search-bar input:focus{border-color:var(--accent)}.chat-search-bar-close{width:28px;height:28px;color:var(--text-muted);cursor:pointer;background:0 0;border:none;border-radius:6px;justify-content:center;align-items:center;display:flex}.chat-search-bar-close:hover{background:var(--sidebar-hover)}.chat-search-results{border-top:1px solid var(--border-color);max-height:200px;overflow-y:auto}.chat-search-result-item{text-align:left;cursor:pointer;border:none;border-bottom:1px solid var(--border-color);background:0 0;width:100%;padding:8px 20px;display:block}.chat-search-result-item:hover{background:var(--sidebar-hover)}.chat-search-result-item .result-sender{color:var(--accent);font-size:.6875rem;font-weight:600}.chat-search-result-item .result-text{color:var(--text-primary);text-overflow:ellipsis;white-space:nowrap;font-size:.8125rem;overflow:hidden}.chat-search-result-item .result-text mark{color:inherit;background:#6366f133;border-radius:2px;padding:0 2px}.chat-msg-highlight{animation:2s ease-out msgHighlight}@keyframes msgHighlight{0%{background:#6366f133}to{background:0 0}}.chat-assign-wrap{position:relative}.chat-assign-btn{border:1px solid var(--border-color);background:var(--content-bg);color:var(--text-secondary);cursor:pointer;border-radius:8px;align-items:center;gap:6px;padding:6px 10px;font-size:.8125rem;transition:all .15s;display:flex}.chat-assign-btn:hover{border-color:var(--accent);color:var(--accent);background:var(--accent-light)}.chat-assign-btn svg{width:14px;height:14px}.chat-assign-dropdown{background:var(--sidebar-card-bg,#1a1a2e);border:1px solid var(--border-color);z-index:100;border-radius:10px;min-width:200px;max-height:250px;margin-top:4px;padding:4px;animation:.15s menuFadeIn;position:absolute;top:100%;right:0;overflow-y:auto;box-shadow:0 8px 24px #00000040}.chat-assign-option{cursor:pointer;text-align:left;width:100%;color:var(--text-primary);background:0 0;border:none;border-radius:6px;align-items:center;gap:8px;padding:8px 12px;font-size:.8125rem;transition:background .1s;display:flex}.chat-assign-option:hover{background:var(--sidebar-hover)}.chat-assign-option.current{color:var(--accent);background:#6366f11a;font-weight:600}.chat-typing-indicator{color:var(--text-muted);flex-shrink:0;align-items:center;gap:8px;padding:4px 20px 8px;font-size:.75rem;display:flex}.chat-typing-dots{align-items:center;gap:3px;display:flex}.chat-typing-dots span{background:var(--text-muted);border-radius:50%;width:5px;height:5px;animation:1.2s ease-in-out infinite chatTypingBounce}.chat-typing-dots span:nth-child(2){animation-delay:.15s}.chat-typing-dots span:nth-child(3){animation-delay:.3s}@keyframes chatTypingBounce{0%,60%,to{opacity:.4;transform:translateY(0)}30%{opacity:1;transform:translateY(-4px)}}.typing-dots span{animation:1.4s ease-in-out infinite typing-bounce;display:inline-block}.typing-dots span:first-child{animation-delay:0s}.typing-dots span:nth-child(2){animation-delay:.2s}.typing-dots span:nth-child(3){animation-delay:.4s}@keyframes typing-bounce{0%,80%,to{transform:translateY(0)}40%{transform:translateY(-4px)}}@keyframes typingBounce{0%,60%,to{opacity:.4;transform:translateY(0)}30%{opacity:1;transform:translateY(-4px)}}.chat-image-msg{object-fit:cover;cursor:pointer;border-radius:10px;max-width:240px;max-height:180px}.chat-image-msg:hover{transform:scale(1.02)}.chat-file-msg{background:var(--content-bg);border:1px solid var(--border-color);color:var(--text-primary);border-radius:10px;align-items:center;gap:8px;padding:8px 12px;font-size:.8125rem;text-decoration:none;display:flex}.chat-file-msg:hover{border-color:var(--accent)}.chat-file-msg svg{width:20px;height:20px;color:var(--accent);flex-shrink:0}.chat-file-btn{width:34px;height:34px;color:var(--text-muted);cursor:pointer;background:0 0;border:none;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;display:flex}.chat-file-btn:hover{background:var(--sidebar-hover);color:var(--accent)}.chat-file-btn svg{width:18px;height:18px}.chat-message,.chat-message.own{position:relative}.chat-widget{z-index:9999;position:fixed;bottom:20px;right:20px}.chat-widget-fab{background:var(--accent);color:#fff;cursor:pointer;border:none;border-radius:50%;justify-content:center;align-items:center;width:44px;height:44px;transition:all .2s;display:flex;position:relative;box-shadow:0 4px 14px #00000059}.chat-widget-fab:hover{background:var(--accent-dark);transform:scale(1.08);box-shadow:0 6px 20px #00000073}.chat-widget-fab:active{transform:scale(.95)}.chat-widget-fab svg{width:20px;height:20px;transition:transform .25s}.chat-widget-fab.open svg{transform:rotate(90deg)}.chat-widget-fab.pulse{animation:1.5s ease-in-out infinite fabPulse}@keyframes fabPulse{0%,to{box-shadow:0 4px 14px #00000059}50%{box-shadow:0 4px 24px #00000080, 0 0 0 8px var(--accent-light)}}.chat-widget-fab-dot{background:var(--color-success,#22c55e);border:2px solid var(--header-bg);border-radius:50%;width:12px;height:12px;animation:1s infinite dotBounce;position:absolute;top:-2px;right:-2px}@keyframes dotBounce{0%,to{transform:scale(1)}50%{transform:scale(1.2)}}.chat-widget-popup{background:var(--header-bg);border:1px solid var(--border-color);transform-origin:100% 100%;border-radius:16px;flex-direction:column;width:360px;height:520px;transition:background .3s,border-color .3s;animation:.25s cubic-bezier(.16,1,.3,1) forwards chatWidgetSlideUp;display:flex;position:absolute;bottom:54px;right:0;overflow:hidden;box-shadow:0 20px 60px #00000080,0 0 0 1px #ffffff08}.chat-widget-popup.closing{animation:.15s cubic-bezier(.4,0,1,1) forwards chatWidgetCollapse}@keyframes chatWidgetSlideUp{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes chatWidgetCollapse{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(0)}}.chat-widget-hero{background:var(--header-bg);border-bottom:1px solid var(--border-color);flex-shrink:0;padding:12px;transition:background .3s,border-color .3s}.chat-widget-accent-card{background:var(--accent);color:#fff;border-radius:14px;padding:12px 14px;box-shadow:0 8px 24px #e6394659}.chat-widget-accent-top{align-items:center;gap:10px;margin-bottom:0;display:flex}.chat-widget-avatar{background:#fff3;border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;width:38px;height:38px;display:flex;overflow:hidden}.chat-widget-avatar img{object-fit:cover;border-radius:10px;width:100%;height:100%}.chat-widget-brand{flex-direction:column;gap:2px;display:flex}.chat-widget-title{font-size:.9375rem;font-weight:700;line-height:1.2;display:block}.chat-widget-subtitle{opacity:.85;font-size:.6875rem;font-weight:500;display:block}.chat-widget-accent-details{flex-direction:column;gap:8px;margin-bottom:12px;display:flex}.chat-widget-detail-row{opacity:.92;align-items:center;gap:8px;font-size:.75rem;display:flex}.chat-widget-detail-row svg{opacity:.8;flex-shrink:0;width:14px;height:14px}.chat-widget-status-badge{opacity:.9;border-top:1px solid #fff3;align-items:center;gap:6px;padding-top:10px;font-size:.6875rem;display:flex}.chat-widget-status-dot{background:var(--color-success,#22c55e);border-radius:50%;width:7px;height:7px;animation:2s ease-in-out infinite statusPulse;box-shadow:0 0 6px #22c55e99}@keyframes statusPulse{0%,to{opacity:1}50%{opacity:.6}}.chat-widget-body{background:var(--header-bg);flex-direction:column;flex:1;transition:background .3s;display:flex;overflow:hidden}.chat-widget-name-form{background:var(--header-bg);border-top:1px solid var(--border-color);flex-direction:column;flex-shrink:0;gap:10px;padding:12px;transition:background .3s,border-color .3s;display:flex}.chat-widget-greeting{color:var(--text-muted);margin:0;padding:0 4px;font-size:.8125rem;line-height:1.4}.chat-widget-label{color:var(--text-muted);text-transform:uppercase;letter-spacing:.5px;margin:0;padding:0 4px;font-size:.625rem;font-weight:600}.chat-widget-input{border:1.5px solid var(--border-color);background:var(--content-bg);color:var(--text-primary);border-radius:20px;outline:none;padding:8px 14px;font-size:.8125rem;transition:all .2s}.chat-widget-input:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-light)}.chat-widget-input::placeholder{color:var(--text-muted)}.chat-widget-start-btn{background:var(--accent);color:#fff;cursor:pointer;border:none;border-radius:20px;padding:8px 18px;font-size:.8125rem;font-weight:600;transition:all .2s}.chat-widget-start-btn:hover:not(:disabled){background:var(--accent-dark);transform:translateY(-1px);box-shadow:0 4px 12px #e639464d}.chat-widget-start-btn:active:not(:disabled){transform:translateY(0)}.chat-widget-start-btn:disabled{opacity:.45;cursor:not-allowed}.chat-widget-messages{background:var(--header-bg);scrollbar-width:none;flex-direction:column;flex:1;gap:4px;min-width:0;padding:12px 14px;transition:background .3s;display:flex;overflow:hidden auto}.chat-widget-messages::-webkit-scrollbar{width:3px;display:none}.chat-widget-messages::-webkit-scrollbar-track{background:0 0}.chat-widget-messages::-webkit-scrollbar-thumb{background:var(--border-color);border-radius:2px}.chat-widget-messages:hover::-webkit-scrollbar{display:block}.chat-widget-time-divider{justify-content:center;align-items:center;padding:8px 0;display:flex}.chat-widget-time-divider span{color:var(--text-tertiary);background:var(--border-color);border-radius:10px;padding:3px 10px;font-size:.625rem}.chat-widget-message{align-items:flex-end;gap:6px;min-width:0;max-width:82%;animation:.2s msgFadeIn;display:flex}.chat-widget-messages>.own-msg-wrap{flex-direction:column;width:100%;min-width:0;display:flex}.chat-widget-message.own{text-align:right;flex-direction:row-reverse;align-self:flex-end;margin-left:auto}.chat-widget-message.own .chat-widget-msg-content,.chat-widget-message.own .chat-widget-msg-bubble{text-align:right;margin-left:auto}.chat-widget-message.no-avatar{padding-left:32px}.chat-widget-message.own.no-avatar{padding-left:0;padding-right:0}@keyframes msgFadeIn{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}.chat-widget-msg-avatar{background:var(--accent);color:#fff;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:24px;height:24px;font-size:.5rem;font-weight:700;display:flex;overflow:hidden}.chat-widget-msg-avatar img{object-fit:cover;border-radius:50%;width:100%;height:100%}.chat-widget-msg-content{flex-direction:column;max-width:100%;display:flex}.chat-widget-message:not(.own) .chat-widget-msg-content{align-items:flex-start}.chat-widget-message.own .chat-widget-msg-content{align-items:flex-end}.chat-widget-msg-bubble{word-wrap:break-word;overflow-wrap:break-word;border-radius:14px;max-width:100%;padding:8px 12px;font-size:.8125rem;line-height:1.45;transition:background .3s,color .3s}.chat-widget-message:not(.own) .chat-widget-msg-bubble{background:var(--content-bg);color:var(--text-primary);border-bottom-left-radius:4px}.chat-widget-message.own .chat-widget-msg-bubble{background:var(--sidebar-hover);color:var(--text-primary);border-bottom-right-radius:4px}.chat-widget-sender-name{margin-bottom:2px;padding:0 4px;font-size:.6875rem;font-weight:600;line-height:1.2}.chat-widget-typing{background:var(--header-bg);border-radius:14px 14px 14px 4px;align-items:center;gap:4px;padding:10px 14px;transition:background .3s;display:flex}.chat-widget-typing span{background:var(--text-muted);border-radius:50%;width:6px;height:6px;animation:1.4s ease-in-out infinite typingDot}.chat-widget-typing span:nth-child(2){animation-delay:.2s}.chat-widget-typing span:nth-child(3){animation-delay:.4s}@keyframes typingDot{0%,60%,to{opacity:.4;transform:translateY(0)}30%{opacity:1;transform:translateY(-4px)}}.chat-widget-qa-input-area{border-top:1px solid var(--border-color);background:var(--header-bg);flex-shrink:0;align-items:center;gap:8px;padding:10px 12px;transition:background .3s,border-color .3s;display:flex}.chat-widget-qa-options{border-top:1px solid var(--border-color);background:var(--header-bg);flex-direction:column;flex-shrink:0;gap:8px;padding:10px 12px;transition:background .3s,border-color .3s;display:flex}.chat-widget-qa-option-btn{border:1.5px solid var(--border-color);background:var(--content-bg);color:var(--text-primary);cursor:pointer;text-align:left;border-radius:10px;padding:10px 16px;font-size:.8125rem;font-weight:500;transition:all .2s}.chat-widget-qa-option-btn:hover{border-color:var(--accent);color:var(--accent);background:#e6394614}.chat-widget-input-area{border-top:1px solid var(--border-color);background:var(--header-bg);flex-shrink:0;align-items:center;gap:8px;padding:10px 12px;transition:background .3s,border-color .3s;display:flex}.chat-widget-msg-input{border:1.5px solid var(--border-color);background:var(--content-bg);color:var(--text-primary);border-radius:20px;outline:none;flex:1;padding:8px 14px;font-size:.8125rem;transition:all .2s}.chat-widget-msg-input:focus{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-light)}.chat-widget-msg-input::placeholder{color:var(--text-muted)}.chat-widget-send-btn{background:var(--accent);color:#fff;cursor:pointer;border:none;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:34px;height:34px;transition:all .2s;display:flex}.chat-widget-send-btn:hover:not(:disabled){background:var(--accent-dark);transform:scale(1.06)}.chat-widget-send-btn:active:not(:disabled){transform:scale(.94)}.chat-widget-send-btn:disabled{opacity:.35;cursor:not-allowed}.chat-widget-send-btn svg{width:16px;height:16px}@media (max-width:480px){.chat-widget{bottom:14px;right:14px}.chat-widget-popup{width:calc(100vw - 28px);height:70vh;right:0}.chat-widget-fab{width:42px;height:42px}.chat-widget-fab svg{width:18px;height:18px}}.pagination{border-top:1px solid var(--border-color);flex-shrink:0;justify-content:space-between;align-items:center;padding:8px 0;display:flex}.pagination-info{color:var(--text-secondary);font-size:.78rem}.pagination-controls{align-items:center;gap:6px;display:flex;position:relative}.pagination-indicator{background:var(--accent);z-index:0;opacity:0;border-radius:8px;height:100%;position:absolute;top:0}.pagination-indicator.ready{opacity:1}.pagination-indicator.animate{transition:left .25s,width .25s}.pagination-btn{min-width:28px;height:28px;color:var(--text-secondary);cursor:pointer;z-index:1;background:0 0;border:1px solid #0000;border-radius:6px;justify-content:center;align-items:center;padding:0 6px;font-family:inherit;font-size:.78rem;font-weight:500;display:flex;position:relative}.pagination-btn:hover:not(:disabled){color:var(--text-primary)}.pagination-btn.active{color:#fff}.pagination-btn:disabled{opacity:.35;cursor:not-allowed}@media (max-width:480px){.pagination{gap:4px}.pagination-btn{min-width:28px;height:28px;padding:0 4px;font-size:.72rem}}.pagination-info,.pagination-btn{transition:color .3s}.pagination-indicator{transition:background .3s}.pagination{transition:border-color .3s}.tab-bar{background:var(--content-bg);border-radius:6px;align-items:center;gap:2px;padding:2px;display:flex;position:relative}.tab-bar-indicator{background:var(--header-bg);z-index:0;opacity:0;border-radius:4px;position:absolute;top:2px;bottom:2px;box-shadow:0 1px 3px #00000014}.tab-bar-indicator.ready{opacity:1}.tab-bar-indicator.animate{transition:left .2s,width .2s}.tab-bar-btn{z-index:1;height:24px;color:var(--text-secondary);cursor:pointer;white-space:nowrap;background:0 0;border:none;border-radius:4px;align-items:center;gap:5px;padding:0 10px;font-family:inherit;font-size:.72rem;font-weight:500;transition:color .15s;display:flex;position:relative}.tab-bar-btn:hover{color:var(--text-primary)}.tab-bar-btn.active{color:var(--accent)}.tab-bar-count{font-variant-numeric:tabular-nums;font-size:.65rem;font-weight:600}@media (max-width:480px){.tab-bar{scrollbar-width:none;overflow-x:auto}.tab-bar::-webkit-scrollbar{display:none}}.tab-bar,.tab-bar-indicator{transition:background .3s}.install-banner{z-index:1000;animation:.3s ease-out slideUp;position:fixed;bottom:20px;left:50%;transform:translate(-50%)}@keyframes slideUp{0%{opacity:0;transform:translate(-50%)translateY(20px)}to{opacity:1;transform:translate(-50%)translateY(0)}}.install-banner-content{background:var(--card-bg,#1a1a1f);border:1px solid var(--border-color,#2a2a2f);border-radius:12px;align-items:center;gap:12px;padding:10px 16px;display:flex;box-shadow:0 8px 32px #0006}.install-banner-icon{object-fit:cover;border-radius:8px;width:36px;height:36px}.install-banner-text{white-space:nowrap;flex-direction:column;gap:2px;display:flex}.install-banner-text strong{color:var(--text-primary,#fafafa);font-size:.85rem}.install-banner-text span{color:var(--text-secondary,#a1a1aa);font-size:.75rem}.install-banner-actions{align-items:center;gap:6px;margin-left:8px;display:flex}.install-btn{color:#fff;cursor:pointer;background:#6d5dfc;border:none;border-radius:8px;padding:6px 16px;font-size:.8rem;font-weight:600;transition:background .2s}.install-btn:hover{background:#5b4cdb}.install-dismiss{width:28px;height:28px;color:var(--text-secondary,#a1a1aa);cursor:pointer;background:0 0;border:none;border-radius:6px;justify-content:center;align-items:center;transition:background .2s;display:flex}.install-dismiss:hover{background:var(--hover-bg,#2a2a2f)}@media (max-width:520px){.install-banner{bottom:12px;left:12px;right:12px;transform:none}@keyframes slideUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.install-banner-content{flex-wrap:wrap}.install-banner-actions{margin-left:auto}}.offline-banner{z-index:9999;text-align:center;padding:8px 16px;font-size:.8rem;font-weight:500;animation:.3s ease-out slideDown;position:fixed;top:0;left:0;right:0}@keyframes slideDown{0%{opacity:0;transform:translateY(-100%)}to{opacity:1;transform:translateY(0)}}.offline-banner.offline{color:#fff;background:#dc2626}.offline-banner.syncing{color:#fff;background:#2563eb}.offline-banner-content{justify-content:center;align-items:center;gap:8px;display:flex}.offline-spinner{border:2px solid #ffffff4d;border-top-color:#fff;border-radius:50%;width:14px;height:14px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.pending-row{opacity:.6}.pending-badge{letter-spacing:.2px;color:#fbbf24;background:#fbbf241a;border-radius:4px;align-items:center;margin-left:6px;padding:3px 10px;font-size:.72rem;font-weight:600;display:inline-flex}
