:root{--brand:#0d9488;--brand-dark:#0f766e;--brand-soft:#ccfbf1;--brand-muted:#f0fdfa;--bg:#f8fafc;--surface:#fff;--surface-muted:#fafafa;--border:#cbd5e1;--border-light:#e2e8f0;--border-strong:#94a3b8;--text:#0f172a;--text-primary:#0f172a;--text-secondary:#334155;--text-muted:#64748b;--placeholder:#94a3b8;--sidebar-w:260px;--sidebar-collapsed-w:72px;--topbar-h:64px;--page-pad-x:clamp(12px, 1.6vw, 22px);--page-pad-y:clamp(14px, 1.8vw, 28px);--content-gap:clamp(10px, 1.2vw, 14px);--pending:#d97706;--pending-bg:#fffbeb;--partial:#2563eb;--partial-bg:#eff6ff;--received:#059669;--received-bg:#ecfdf5;--cancelled:#ef4444;--cancelled-bg:#fef2f2;--success:#047857;--success-bg:#ecfdf5;--warning:#b45309;--warning-bg:#fffbeb;--info:#1d4ed8;--info-bg:#eff6ff;--danger:#dc2626;--danger-bg:#fef2f2;--focus-ring:0 0 0 3px #0d948829;--control-h:36px;--shadow-sm:0 1px 2px #1018280d;--shadow:0 1px 3px #10182814, 0 1px 2px #1018280a;--shadow-md:0 4px 12px #10182814, 0 2px 4px #1018280a;--radius:10px;--radius-sm:8px;--font:"DM Sans", system-ui, sans-serif;--fs-page-title:clamp(1.125rem, .95rem + .55vw, 1.375rem);--fs-pharmacy-label:clamp(1rem, .85rem + .55vw, 1.375rem)}.app-date-input{width:100%;position:relative}.app-date-input-control{align-items:center;display:flex;position:relative}.app-date-input-field{cursor:text;width:100%;padding-right:40px!important}.app-date-input.is-disabled .app-date-input-field,.app-date-input.is-readonly .app-date-input-field{cursor:not-allowed}.app-date-input-icon-btn{width:28px;height:28px;color:var(--brand-dark);cursor:pointer;background:0 0;border:none;border-radius:7px;justify-content:center;align-items:center;transition:background .15s,color .15s;display:inline-flex;position:absolute;top:50%;right:8px;transform:translateY(-50%)}.app-date-input-icon-btn:hover:not(:disabled){background:var(--brand-muted);color:var(--brand)}.app-date-input-control:focus-within .app-date-input-icon-btn{color:var(--brand)}.app-date-input-icon-btn:disabled{cursor:not-allowed;opacity:.45}.app-date-input-error{margin-top:4px;display:block}.app-date-input.has-error .app-date-input-field{border-color:var(--danger);box-shadow:0 0 0 3px #ef44441f}.app-date-picker{z-index:80;border:1px solid var(--border);background:#fff;border-radius:14px;width:min(300px,100vw - 32px);padding:12px;animation:.16s ease-out app-date-picker-in;position:absolute;top:calc(100% + 6px);left:0;box-shadow:0 18px 40px #0f172a24}.app-date-picker-portal{z-index:12000;box-sizing:border-box;position:fixed;inset:auto}@keyframes app-date-picker-in{0%{opacity:0;transform:translateY(-4px)scale(.98)}to{opacity:1;transform:translateY(0)scale(1)}}.app-date-picker-header{justify-content:space-between;align-items:center;gap:8px;margin-bottom:10px;display:flex}.app-date-picker-nav{border:1px solid var(--border);width:30px;height:30px;color:var(--text-secondary);cursor:pointer;background:#fff;border-radius:8px;justify-content:center;align-items:center;display:inline-flex}.app-date-picker-nav:hover{background:var(--brand-muted);color:var(--brand-dark);border-color:#99f6e4}.app-date-picker-selectors{flex:1;gap:6px;min-width:0;display:flex}.app-date-picker-dropdown{flex:1;min-width:0;position:relative}.app-date-picker-select{border:1px solid var(--border);width:100%;min-width:0;height:30px;color:var(--text);cursor:pointer;background:#f8fafc;border-radius:8px;justify-content:space-between;align-items:center;gap:4px;padding:0 8px;font-size:12.5px;font-weight:600;display:inline-flex}.app-date-picker-select span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.app-date-picker-select.is-open,.app-date-picker-select:hover{border-color:var(--brand);background:#fff}.app-date-picker-menu{z-index:90;border:1px solid var(--border);background:#fff;border-radius:10px;max-height:220px;margin:0;padding:4px;list-style:none;position:absolute;top:calc(100% + 4px);left:0;right:0;overflow-y:auto;box-shadow:0 12px 28px #0f172a24}.app-date-picker-menu.is-year{min-width:88px}.app-date-picker-menu-item{width:100%;color:var(--text);text-align:left;cursor:pointer;background:0 0;border:none;border-radius:7px;padding:7px 8px;font-size:12.5px;font-weight:600;display:block}.app-date-picker-menu-item:hover{background:var(--brand-muted);color:var(--brand-dark)}.app-date-picker-menu-item.is-active{background:var(--brand);color:#fff}.app-date-picker-weekdays{grid-template-columns:repeat(7,1fr);gap:2px;margin-bottom:4px;display:grid}.app-date-picker-weekdays span{text-align:center;color:var(--text-muted);padding:4px 0;font-size:11px;font-weight:700}.app-date-picker-grid{grid-template-columns:repeat(7,1fr);gap:2px;display:grid}.app-date-picker-day{height:34px;color:var(--text);cursor:pointer;background:0 0;border:none;border-radius:9px;font-size:12.5px;font-weight:600;transition:background .12s,color .12s}.app-date-picker-day.is-empty{pointer-events:none}.app-date-picker-day.is-weekend:not(.is-selected):not(.is-disabled){color:#b45309}.app-date-picker-day:hover:not(:disabled):not(.is-selected){background:var(--brand-muted);color:var(--brand-dark)}.app-date-picker-day.is-today:not(.is-selected){box-shadow:inset 0 0 0 1.5px var(--brand);color:var(--brand-dark)}.app-date-picker-day.is-selected{background:var(--brand);color:#fff}.app-date-picker-day.is-disabled,.app-date-picker-day:disabled{color:#cbd5e1;cursor:not-allowed;background:0 0}.app-date-picker-time{border-top:1px solid var(--border);align-items:flex-end;gap:8px;margin-top:10px;padding-top:10px;display:flex}.app-date-picker-time label{color:var(--text-secondary);flex-direction:column;flex:1;gap:4px;font-size:11px;font-weight:700;display:flex}.app-date-picker-time input[type=time]{border:1px solid var(--border);border-radius:8px;height:34px;padding:0 10px}.app-time-picker{flex-direction:column;flex:1;gap:4px;min-width:0;display:flex;position:relative}.app-time-picker-label{color:var(--text-secondary);letter-spacing:.02em;font-size:11px;font-weight:700}.app-time-picker-control{border:1px solid var(--border);background:var(--surface-muted,#f8fafc);border-radius:10px;align-items:center;height:36px;transition:border-color .15s,box-shadow .15s;display:flex;overflow:hidden}.app-time-picker-control:focus-within,.app-time-picker-control.is-open{border-color:var(--brand);background:#fff;box-shadow:0 0 0 3px #0d948824}.app-time-picker-control.has-error{border-color:#f87171;box-shadow:0 0 0 3px #f8717124}.app-time-picker-input{min-width:0;height:100%;color:var(--text);font-variant-numeric:tabular-nums;letter-spacing:.02em;background:0 0;border:0;outline:none;flex:1;padding:0 10px;font-size:13px;font-weight:600}.app-time-picker-input::placeholder{color:var(--text-muted);font-weight:500}.app-time-picker-toggle{border:0;border-left:1px solid var(--border);width:42px;height:100%;color:var(--text-secondary);cursor:pointer;background:0 0;flex-shrink:0;justify-content:center;align-items:center;gap:2px;display:inline-flex}.app-time-picker-toggle:hover{background:var(--brand-muted,#f0fdfa);color:var(--brand-dark,#0f766e)}.app-time-picker-control.is-open .app-time-picker-toggle{background:var(--brand-muted,#f0fdfa);color:var(--brand)}.app-time-picker-error{font-size:11px;line-height:1.2}.app-time-picker-dropdown{z-index:20;border:1px solid var(--border);box-sizing:border-box;background:#fff;border-radius:12px;padding:10px;animation:.14s ease-out app-date-picker-in;position:absolute;top:calc(100% + 6px);left:0;right:0;box-shadow:0 16px 36px #0f172a29}.app-time-picker-dropdown--portal{z-index:12100;max-width:calc(100vw - 16px);position:fixed;bottom:auto;right:auto}.app-time-picker-dropdown.is-above{box-shadow:0 -12px 32px #0f172a24}.app-time-picker-columns{grid-template-columns:1fr 1fr .85fr;gap:8px;display:grid}.app-time-picker-column{flex-direction:column;gap:6px;min-width:0;display:flex}.app-time-picker-column-label{text-transform:uppercase;letter-spacing:.06em;color:var(--text-muted);text-align:center;font-size:10px;font-weight:700}.app-time-picker-list{border:1px solid var(--border);scrollbar-width:thin;background:linear-gradient(#f8fafc 0%,#fff 28% 72%,#f8fafc 100%);border-radius:10px;height:132px;padding:4px;overflow-y:auto}.app-time-picker-option{width:100%;height:30px;color:var(--text-secondary);font-variant-numeric:tabular-nums;cursor:pointer;background:0 0;border:0;border-radius:8px;justify-content:center;align-items:center;font-size:13px;font-weight:600;display:flex}.app-time-picker-option:hover{color:var(--brand-dark,#0f766e);background:#0d948814}.app-time-picker-option.is-active{background:var(--brand);color:#fff;box-shadow:0 4px 10px #0d948847}.app-time-picker-dropdown-footer{border-top:1px solid var(--border);justify-content:space-between;align-items:center;gap:8px;margin-top:10px;padding-top:8px;display:flex}.app-time-picker-done{height:30px;padding:0 12px;font-size:12px}.app-date-picker-apply{white-space:nowrap;flex-shrink:0;height:36px;padding:0 14px}.app-date-picker-footer{border-top:1px solid var(--border);justify-content:space-between;margin-top:10px;padding-top:8px;display:flex}@media (width<=480px){.app-date-picker{width:min(320px,100vw - 24px)}}*,:before,:after{box-sizing:border-box;margin:0;padding:0}html,body,#root{height:100%}html{overflow-x:hidden}body{font-family:var(--font);background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;line-height:1.45;overflow-x:hidden}h1,h2,h3,h4{color:var(--text)}label{color:var(--text-secondary);font-weight:600}button,input,select,textarea{font:inherit;color:inherit}input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=hidden]),select,textarea{color:var(--text);background-color:var(--surface)}input::placeholder,textarea::placeholder{color:var(--placeholder);opacity:1}input[type=checkbox],input[type=radio]{accent-color:var(--brand)}a{color:inherit;text-decoration:none}button{cursor:pointer;background:0 0;border:none}.app-shell{grid-template-columns:var(--sidebar-w) minmax(0, 1fr);width:100%;max-width:100vw;min-height:100%;transition:grid-template-columns .22s;display:grid;overflow-x:hidden}.app-shell.sidebar-collapsed{grid-template-columns:var(--sidebar-collapsed-w) minmax(0, 1fr)}.sidebar-backdrop{display:none}.sidebar{background:var(--surface);border-right:1px solid var(--border);flex-direction:column;height:100vh;transition:width .22s,max-width .22s,box-shadow .22s;display:flex;position:sticky;top:0;overflow:visible}.app-shell.sidebar-collapsed .sidebar{width:var(--sidebar-collapsed-w);max-width:var(--sidebar-collapsed-w);z-index:30}.sidebar-brand{border-bottom:1px solid var(--border);min-height:var(--topbar-h);align-items:center;gap:10px;padding:18px 16px;display:flex}.brand-mark{background:linear-gradient(145deg, #14b8a6, var(--brand));color:#fff;border-radius:8px;flex-shrink:0;place-items:center;width:36px;height:36px;display:grid;box-shadow:0 4px 10px #0d948859}.brand-text{flex-direction:column;min-width:0;display:flex}.brand-text strong{letter-spacing:-.02em;white-space:nowrap;color:var(--text);font-size:15px;font-weight:700}.brand-text span{color:var(--text-muted);white-space:nowrap;font-size:11px}.sidebar-nav{flex-direction:column;flex:1;gap:2px;padding:12px 10px;display:flex;overflow-y:auto}.nav-item{color:var(--text-secondary);text-align:center;border-radius:8px;align-items:center;gap:10px;width:100%;padding:9px 12px;font-size:13.5px;font-weight:500;transition:background .15s,color .15s;display:flex}.nav-item:hover{color:var(--text);background:#f9fafb}.nav-item.active{background:var(--brand-muted);color:var(--brand-dark)}.nav-item .chevron{opacity:.55;margin-left:auto}.nav-group{margin-top:2px}.nav-group-toggle.active{background:var(--brand-muted);color:var(--brand-dark)}.nav-sub{border-left:2px solid var(--border);flex-direction:column;gap:1px;margin:2px 0 6px 12px;padding-left:14px;display:flex}.nav-sub a,.nav-sub button,.nav-sub .nav-sub-link{color:var(--text-secondary);text-align:left;border-radius:6px;justify-content:space-between;align-items:center;gap:8px;padding:7px 10px;font-size:12.5px;font-weight:500;display:flex}.nav-sub a:hover,.nav-sub button:hover,.nav-sub .nav-sub-link:hover{color:var(--text);background:#f9fafb}.nav-sub a.active,.nav-sub .nav-sub-link.active{background:var(--brand-soft);color:var(--brand-dark);font-weight:600}.nav-nested-group{flex-direction:column;gap:1px;display:flex}.nav-parent-label{color:#64748b;padding:7px 10px 4px;font-size:12px;font-weight:650;display:block}.nav-nested{border-left:2px solid var(--brand-soft);flex-direction:column;gap:1px;margin:0 0 4px 8px;padding-left:8px;display:flex}.nav-count{color:#6d28d9;text-align:center;background:#ede9fe;border-radius:999px;flex-shrink:0;min-width:20px;height:20px;padding:0 6px;font-size:11px;font-weight:700;line-height:20px}.nav-item .nav-count{margin-left:auto;margin-right:4px}.nav-sub-link.active .nav-count{color:#5b21b6;background:#ddd6fe}.sidebar-user{border-top:1px solid var(--border);cursor:pointer;text-align:center;width:100%;color:inherit;background:0 0;border-bottom:none;border-left:none;border-right:none;align-items:center;gap:10px;padding:12px 14px;transition:background .15s;display:flex}.sidebar-user:hover,.sidebar-user.is-open{background:#f8fafc}.sidebar-user-wrap{flex-shrink:0;position:relative}.sidebar-user-chevron{color:var(--text-muted);flex-shrink:0}.sidebar-profile-menu{z-index:60;border:1px solid var(--border);background:#fff;border-radius:14px;flex-direction:column;gap:10px;padding:12px;display:flex;position:absolute;bottom:calc(100% + 8px);left:10px;right:10px;box-shadow:0 12px 32px #0f172a24}.sidebar-profile-head{align-items:center;gap:10px;padding:2px 2px 4px;display:flex}.sidebar-profile-pharmacy{color:var(--brand-dark);background:#ecfdf5;border-radius:10px;align-items:center;gap:10px;padding:10px 12px;display:flex}.sidebar-profile-pharmacy-icon{width:28px;height:28px;color:var(--brand);background:#0d94881f;border-radius:8px;flex-shrink:0;place-items:center;display:grid}.sidebar-profile-pharmacy strong{color:#115e59;font-size:13px;font-weight:700;line-height:1.2;display:block}.sidebar-profile-pharmacy span{color:var(--brand-dark);opacity:.85;font-size:11px;display:block}.sidebar-profile-actions{flex-direction:column;gap:2px;display:flex}.sidebar-profile-item{width:100%;color:var(--text);cursor:pointer;text-align:center;background:0 0;border:none;border-radius:8px;align-items:center;gap:10px;padding:10px;font-size:13.5px;font-weight:500;transition:background .15s;display:flex}.sidebar-profile-item svg{color:var(--text-muted);flex-shrink:0}.sidebar-profile-item:hover{background:#f3f4f6}.sidebar-profile-badge{background:var(--danger);color:#fff;border-radius:999px;justify-content:center;align-items:center;min-width:20px;height:20px;margin-left:auto;padding:0 6px;font-size:11px;font-weight:700;line-height:1;display:inline-flex}.sidebar-profile-footer{border-top:1px solid var(--border);padding-top:6px}.sidebar-profile-item.is-danger,.sidebar-profile-item.is-danger svg{color:#dc2626}.sidebar-profile-item.is-danger:hover{background:var(--danger-bg)}.user-avatar{background:linear-gradient(145deg, #5eead4, var(--brand));color:#fff;border-radius:50%;flex-shrink:0;place-items:center;width:36px;height:36px;font-size:13px;font-weight:700;display:grid}.user-meta{flex:1;min-width:0}.user-meta strong{font-size:13px;font-weight:600;display:block}.user-meta span{color:var(--text-muted);font-size:11.5px}.sidebar.collapsed .brand-text,.sidebar.collapsed .nav-item span,.sidebar.collapsed .nav-item .chevron,.sidebar.collapsed .nav-sub,.sidebar.collapsed .user-meta,.sidebar.collapsed .sidebar-user-chevron{display:none}.sidebar.collapsed .nav-item{justify-content:center;padding:10px}.sidebar.collapsed .sidebar-user{justify-content:center}.sidebar.collapsed .sidebar-profile-menu{width:260px;bottom:8px;left:calc(100% + 10px);right:auto}.main-column{flex-direction:column;min-width:0;height:100dvh;max-height:100dvh;display:flex;overflow:hidden}.topbar{height:var(--topbar-h);background:var(--surface);border-bottom:1px solid var(--border);z-index:100;grid-template-columns:minmax(0,1fr) minmax(0,520px) minmax(0,1fr);align-items:center;gap:16px;padding:0 20px;display:grid;position:sticky;top:0}.topbar>:first-child{justify-self:start}.icon-btn{width:36px;height:36px;color:var(--text-secondary);border-radius:8px;place-items:center;transition:background .15s;display:grid;position:relative}.icon-btn:hover{color:var(--text);background:#f3f4f6}.icon-btn .badge{background:var(--danger);color:#fff;border-radius:999px;place-items:center;min-width:16px;height:16px;padding:0 4px;font-size:10px;font-weight:700;display:grid;position:absolute;top:4px;right:4px}.notif-bell-wrap{position:relative}.notif-panel{border:1px solid var(--border);z-index:80;background:#fff;border-radius:12px;flex-direction:column;width:min(360px,100vw - 24px);max-height:min(420px,70vh);display:flex;position:absolute;top:calc(100% + 8px);right:0;overflow:hidden;box-shadow:0 12px 32px #0f172a24}.notif-panel-portal{z-index:12200;box-sizing:border-box;position:fixed;inset:auto}.notif-panel-head{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:8px;padding:12px 14px;display:flex}.notif-panel-head strong{color:var(--text);font-size:.95rem}.notif-mark-all{color:var(--brand);font:inherit;cursor:pointer;background:0 0;border:0;align-items:center;gap:4px;padding:0;font-size:.78rem;font-weight:600;display:inline-flex}.notif-mark-all:disabled{opacity:.45;cursor:default}.notif-panel-body{padding:6px;overflow:auto}.notif-empty{min-height:120px;color:var(--text-muted);justify-content:center;align-items:center;gap:8px;font-size:.875rem;display:flex}.notif-item{text-align:center;cursor:pointer;width:100%;font:inherit;color:inherit;background:0 0;border:0;border-radius:8px;grid-template-columns:10px 1fr;align-items:start;gap:10px;padding:10px;display:grid}.notif-item:hover{background:#f8fafc}.notif-item-dot{background:0 0;border-radius:999px;width:8px;height:8px;margin-top:5px}.notif-item.is-unread .notif-item-dot{background:var(--brand)}.notif-item-body{flex-direction:column;gap:2px;min-width:0;display:flex}.notif-item-body strong{color:var(--text);font-size:.86rem;line-height:1.3}.notif-item-body span{color:var(--text-secondary);font-size:.8rem;line-height:1.35}.notif-item-body small{color:var(--text-muted);font-size:.72rem}.global-search{border:1px solid var(--border);width:100%;max-width:520px;color:var(--text-muted);background:#f9fafb;border-radius:10px;justify-self:center;align-items:center;gap:8px;padding:8px 12px;display:flex}.global-search input{color:var(--text);background:0 0;border:none;outline:none;flex:1;font-size:13.5px}.global-search input::placeholder{color:var(--placeholder)}.gs-panel{border:1px solid var(--border);background:#fff;border-radius:12px;flex-direction:column;gap:4px;max-height:min(520px,75vh);padding:6px;display:flex;overflow:auto;box-shadow:0 12px 32px #0f172a24}.gs-panel-portal{z-index:12200;box-sizing:border-box;position:fixed}.gs-section{flex-direction:column;gap:2px;display:flex}.gs-section+.gs-section{border-top:1px solid #f1f5f9;margin-top:4px;padding-top:6px}.gs-section-label{letter-spacing:.02em;text-transform:uppercase;color:var(--text-muted);align-items:center;gap:6px;padding:6px 10px 4px;font-size:.72rem;font-weight:700;display:inline-flex}.gs-item{text-align:center;cursor:pointer;width:100%;font:inherit;color:inherit;background:0 0;border:0;border-radius:8px;justify-content:space-between;align-items:center;gap:12px;padding:9px 10px;display:flex}.gs-item:hover,.gs-item.is-active{background:#f8fafc}.gs-item-main{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.gs-item-category{color:#475569;letter-spacing:.01em;white-space:nowrap;text-overflow:ellipsis;background:#f1f5f9;border-radius:999px;flex-shrink:0;align-items:center;max-width:42%;padding:2px 8px;font-size:.68rem;font-weight:600;line-height:1.5;display:inline-flex;overflow:hidden}.gs-item strong{color:var(--text);text-overflow:ellipsis;white-space:nowrap;font-size:.86rem;line-height:1.3;overflow:hidden}.gs-item-meta{color:var(--text-muted);text-overflow:ellipsis;white-space:nowrap;font-size:.78rem;line-height:1.35;overflow:hidden}.gs-empty{min-height:72px;color:var(--text-muted);text-align:center;justify-content:center;align-items:center;gap:8px;padding:16px;font-size:.84rem;display:flex}.kbd{border:1px solid var(--border);color:var(--text-muted);white-space:nowrap;background:#fff;border-radius:5px;padding:2px 6px;font-size:11px}.topbar-actions{align-items:center;gap:6px;display:flex}.topbar-right{justify-self:end;align-items:center;gap:12px;min-width:0;display:flex}.topbar-pharmacy{flex-shrink:0;position:relative}.topbar-pharmacy-trigger{min-width:220px;max-width:min(320px,32vw);height:44px;color:var(--text);text-align:center;cursor:pointer;font:inherit;background:#fff;border:1px solid #86efac;border-radius:10px;align-items:center;gap:10px;padding:6px 12px 6px 10px;display:flex}.topbar-pharmacy-trigger:hover:not(:disabled){background:#f8fffb}.topbar-pharmacy-trigger:disabled{cursor:not-allowed;opacity:.7}.topbar-pharmacy-icon{color:#16a34a;flex-shrink:0}.topbar-pharmacy-copy{flex-direction:column;flex:1;gap:1px;min-width:0;display:flex}.topbar-pharmacy-kicker{letter-spacing:.08em;text-transform:uppercase;color:var(--text-muted);font-size:10px;font-weight:700;line-height:1.1}.topbar-pharmacy-name{color:var(--text);white-space:nowrap;text-overflow:ellipsis;font-size:13.5px;font-weight:700;line-height:1.2;overflow:hidden}.topbar-pharmacy-chevron{color:var(--text-muted);flex-shrink:0}.topbar-pharmacy.is-open .topbar-pharmacy-chevron{transform:rotate(180deg)}.topbar-pharmacy-menu{z-index:40;border:1px solid var(--border);background:#fff;border-radius:10px;min-width:100%;max-height:280px;margin:0;padding:6px;list-style:none;position:absolute;top:calc(100% + 6px);right:0;overflow:auto;box-shadow:0 10px 30px #0f172a1f}.topbar-pharmacy-option{text-align:center;width:100%;color:var(--text);cursor:pointer;background:0 0;border:none;border-radius:8px;padding:8px 10px;font-size:13px;font-weight:600;display:block}.topbar-pharmacy-option:hover,.topbar-pharmacy-option.is-selected{color:#166534;background:#ecfdf5}.store-select{border:1px solid var(--border);color:var(--text-secondary);border-radius:8px;align-items:center;gap:6px;margin-left:4px;padding:7px 10px;font-size:13px;font-weight:500;display:flex}.store-select:hover{background:#f9fafb}.page-content{padding:var(--page-pad-y) var(--page-pad-x);background:var(--bg);flex-direction:column;flex:1;width:100%;min-width:0;max-width:100%;min-height:0;display:flex;overflow:hidden}.page-loading,.page-no-access{min-height:40vh;color:var(--text-secondary);text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:8px;display:flex}.page-no-access strong{color:var(--text-primary);font-size:16px}.page-no-access p{max-width:420px;margin:0;font-size:13.5px;line-height:1.5}.page-header{justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:18px;display:flex}.breadcrumbs{color:var(--text-muted);align-items:center;gap:6px;margin-bottom:4px;font-size:12.5px;display:flex}.breadcrumbs .current{color:var(--brand);font-weight:600}.page-header h1{letter-spacing:-.03em;color:var(--text);font-size:22px;font-weight:700}.page-subtitle{color:var(--text-muted);margin:4px 0 0;font-size:13px}.po-page-header,.app-page-header{flex-direction:column;justify-content:flex-start;align-items:stretch;gap:6px;margin-bottom:14px;display:flex}.po-page-header .breadcrumbs,.app-page-header .breadcrumbs{margin-bottom:0}.app-page-header-row{justify-content:space-between;align-items:center;gap:16px;min-width:0;min-height:40px;display:flex;position:relative}.app-page-header-left{z-index:1;flex:1 1 0;align-items:center;min-width:0;padding-right:12px;display:flex}.app-page-header-row.has-center .app-page-header-left{flex:none;padding-right:0}.app-page-header-center{z-index:1;flex:auto;justify-content:center;align-items:center;min-width:0;display:flex}.app-page-header-search{flex:auto;width:100%;max-width:480px;min-height:40px}.app-page-header-search input{font-size:13px}.app-page-header-center-controls{flex-wrap:wrap;justify-content:center;align-items:center;gap:10px;width:100%;min-width:0;max-width:760px;display:flex}.app-page-header-center-controls .app-page-header-search{flex:220px;min-width:160px;max-width:none}.app-page-header-center-controls .filter-select{flex:0 160px;min-width:128px;max-width:190px;min-height:40px}.app-page-header-center-controls .facility-header-filter-select.filter-autocomplete{flex:0 170px;width:170px;min-width:150px;max-width:210px}.app-page-header-center-controls .facility-header-filter-select .autocomplete-control{background:var(--surface-muted,#fafafa);border:1px solid var(--border);border-radius:8px;height:38px;min-height:38px;padding:0 10px}.app-page-header-center-controls .facility-header-filter-select .autocomplete-control:focus-within{border-color:var(--brand);box-shadow:0 0 0 3px #0d94881f}.app-page-header-center-controls .facility-header-filter-select .autocomplete-control input{height:36px;color:var(--text);font-size:13px}.app-page-header-center-controls .facility-header-filter-select .autocomplete-control input::placeholder{color:var(--text-muted)}.app-page-header-center-controls .pt-header-filter-select.filter-autocomplete{flex:0 150px;width:150px;min-width:130px;max-width:190px}.app-page-header-center-controls .pt-header-filter-select .autocomplete-control{background:var(--surface-muted,#fafafa);border:1px solid var(--border);border-radius:8px;height:38px;min-height:38px;padding:0 10px}.app-page-header-center-controls .pt-header-filter-select .autocomplete-control:focus-within{border-color:var(--brand);box-shadow:0 0 0 3px #0d94881f}.app-page-header-center-controls .pt-header-filter-select .autocomplete-control input{height:36px;color:var(--text);font-size:13px}.app-page-header-center-controls .pt-header-filter-select .autocomplete-control input::placeholder{color:var(--text-secondary);opacity:1}.app-page-header-center-controls .sh-header-filter-select.filter-autocomplete{flex:0 160px;width:160px;min-width:140px;max-width:200px}.app-page-header-center-controls .sh-header-filter-select .autocomplete-control{background:var(--surface-muted,#fafafa);border:1px solid var(--border);border-radius:8px;height:38px;min-height:38px;padding:0 10px}.app-page-header-center-controls .sh-header-filter-select .autocomplete-control:focus-within{border-color:var(--brand);box-shadow:0 0 0 3px #0d94881f}.app-page-header-center-controls .sh-header-filter-select .autocomplete-control input{height:36px;color:var(--text);font-size:13px}.app-page-header-center-controls .sh-header-filter-select .autocomplete-control input::placeholder{color:var(--text-secondary);opacity:1}.sh-filters-trigger{display:flex;position:relative}.sh-filters-panel{z-index:20;background:#fff;border:1px solid #e5e7eb;border-radius:12px;min-width:260px;padding:14px;position:absolute;top:calc(100% + 8px);right:0;box-shadow:0 8px 24px #0f172a14}@media (width<=1100px){.app-page-header-row.has-center{flex-wrap:wrap;align-items:stretch}.app-page-header-row.has-center .app-page-header-center{flex:100%;order:3;justify-content:flex-start}.app-page-header-center-controls{justify-content:flex-start;max-width:none}}.app-page-header-row.has-center .app-page-header-right{flex:none;padding-left:0}.app-page-header-titles{flex-direction:column;gap:4px;min-width:0;max-width:100%;display:flex}.app-page-header-title-row{align-items:center;gap:10px;display:flex}.app-page-header-title-row h1{margin:0}.app-page-header-row.has-subtitle{align-items:flex-start;min-height:52px}.app-page-header-row.has-subtitle .app-page-header-right{align-self:center}.app-page-header .page-subtitle{max-width:42ch;margin:0}.app-page-header-right{z-index:30;flex:0 auto;justify-content:flex-end;align-items:center;min-width:0;padding-left:12px;display:flex}.app-page-header h1,.po-page-header h1{font-size:var(--fs-page-title);letter-spacing:-.03em;color:var(--text);white-space:nowrap;text-overflow:ellipsis;max-width:100%;margin:0;font-weight:700;overflow:hidden}.breadcrumb-segment{align-items:center;gap:6px;display:inline-flex}.app-page-header .page-actions,.po-page-header .page-actions{flex-wrap:wrap;flex:none;justify-content:flex-end;align-items:center;gap:12px;max-width:100%;display:inline-flex}@media (width<=1366px){.app-page-header-row{gap:12px 16px;min-height:0;display:flex}}@media (width<=768px){.app-page-header-row{flex-wrap:wrap}.app-page-header h1,.po-page-header h1{white-space:normal}.app-page-header-row.has-center .app-page-header-left{flex:auto}.app-page-header-center{flex:100%;order:3;justify-content:stretch}.app-page-header-search{max-width:none}.app-page-header-right,.app-page-header .page-actions{justify-content:flex-start;width:auto}.app-page-header-row:not(.has-center) .app-page-header-right,.app-page-header-row:not(.has-center) .app-page-header .page-actions{justify-content:flex-start;width:100%}.topbar-pharmacy-trigger{min-width:0;max-width:200px}}.po-page-header-row{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px 24px;min-width:0;display:flex}.po-page-header-left{flex-wrap:wrap;flex:auto;align-items:center;gap:48px;min-width:0;display:flex}.po-page{flex-direction:column;flex:auto;gap:14px;min-height:0;display:flex;overflow:hidden}.po-page .app-page-header-center-controls{justify-content:flex-start;max-width:none}.ro-filter-header{width:100%;min-width:0;position:relative}.ro-filter-header .filter-toolbar-panel{z-index:40;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-sm);border-top:1px solid var(--border);margin-top:0;padding:12px 14px;position:absolute;top:calc(100% + 8px);left:0;right:0}.recent-activity-section{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-sm);padding:14px 16px}.recent-activity-header h2{margin:0 0 12px;font-size:14px;font-weight:700}.recent-activity-row{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;display:grid}.activity-card{border:1px solid var(--border);background:#fafafa;border-radius:10px;align-items:flex-start;gap:10px;min-height:78px;padding:12px;display:flex}.activity-card.is-loading{background:#fff}.activity-icon{border-radius:8px;flex-shrink:0;place-items:center;width:34px;height:34px;display:grid}.activity-icon.tone-purple{color:#7c3aed;background:#f3e8ff}.activity-icon.tone-blue{color:#2563eb;background:#dbeafe}.activity-icon.tone-green{color:#059669;background:#d1fae5}.activity-icon.tone-amber{color:#d97706;background:#fef3c7}.activity-icon.tone-red{color:#dc2626;background:#fee2e2}.activity-title{color:var(--text);margin:0;font-size:12.5px;font-weight:600;line-height:1.35}.activity-meta{color:var(--text-muted);flex-wrap:wrap;align-items:center;gap:4px;margin:4px 0 0;font-size:11px;display:flex}.activity-meta .dot{opacity:.6}.activity-skeleton-icon{background:#eef2f7;border-radius:8px;width:34px;height:34px}.activity-skeleton-lines{flex-direction:column;flex:1;gap:8px;display:flex}.activity-empty{color:var(--text-muted);grid-column:1/-1;justify-content:center;align-items:center;gap:8px;padding:20px;font-size:13px;display:flex}.activity-empty p{margin:0}.filter-toolbar{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-sm);padding:12px 14px}.filter-toolbar-main{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.filter-search{border:1px solid var(--border);height:38px;color:var(--text-muted);background:#fafafa;border-radius:8px;flex:220px;align-items:center;gap:8px;padding:0 12px;display:flex}.filter-search input{width:100%;color:var(--text);background:0 0;border:0;outline:none;font-size:13px}.filter-select{border:1px solid var(--border);background:var(--surface-muted,#fafafa);min-width:140px;height:38px;color:var(--text);border-radius:8px;padding:0 10px;font-family:inherit;font-size:13px}.filter-toolbar-main>.filter-autocomplete{flex:none;min-width:160px;max-width:220px}.filter-toolbar-main>.filter-autocomplete .autocomplete-control{background:var(--surface-muted,#fafafa);border:1px solid var(--border);border-radius:8px;height:38px;min-height:38px}.filter-toolbar-main>.filter-autocomplete .autocomplete-control:focus-within{border-color:var(--brand,#0f766e);box-shadow:0 0 0 3px #0f766e1f}.filter-toolbar-main>.filter-autocomplete .autocomplete-control input{font-size:13px}.filter-date-btn{border:1px solid var(--border);background:var(--surface-muted,#fafafa);height:38px;color:var(--text-secondary);border-radius:8px;align-items:center;gap:8px;padding:0 12px;font-size:13px;display:inline-flex}.filter-date-btn.active{border-color:var(--brand);color:var(--brand)}.filter-toggle-btn{position:relative}.filter-clear-btn{white-space:nowrap;gap:6px}.filter-clear-btn:disabled{opacity:.45;cursor:not-allowed}.filter-toggle-btn.active{border-color:var(--brand);color:var(--brand)}.filter-badge{background:var(--brand);color:#fff;border-radius:999px;place-items:center;min-width:18px;height:18px;padding:0 5px;font-size:10px;font-weight:700;display:inline-grid}.filter-icon-btn{border:1px solid var(--border,#d1d5db);background:var(--surface,#fff);width:38px;height:38px;color:var(--brand,#0d9488);cursor:pointer;border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;padding:0;transition:border-color .15s,background-color .15s,color .15s,box-shadow .15s;display:inline-flex;position:relative}.filter-icon-btn:hover:not(:disabled){border-color:var(--brand,#0d9488);background:color-mix(in srgb, var(--brand,#0d9488) 8%, white)}.filter-icon-btn:focus-visible{border-color:var(--brand,#0d9488);outline:none;box-shadow:0 0 0 3px #0d94882e}.filter-icon-btn.is-active,.filter-icon-btn.has-filters{border-color:var(--brand,#0d9488);color:var(--brand,#0d9488);background:color-mix(in srgb, var(--brand,#0d9488) 10%, white)}.filter-icon-btn:disabled{opacity:.45;cursor:not-allowed}.filter-icon-btn__glyph{display:block}.filter-icon-btn__badge{z-index:1;border:2px solid var(--surface,#fff);background:var(--brand,#0d9488);color:#fff;pointer-events:none;border-radius:999px;place-items:center;min-width:18px;height:18px;padding:0 5px;font-size:10px;font-weight:700;line-height:1;display:inline-grid;position:absolute;top:-5px;right:-5px}.filter-toolbar-panel{border-top:1px solid var(--border);margin-top:12px;padding-top:12px}.filter-toolbar-panel--fixed{border:1px solid var(--border);border-top:1px solid var(--border);background:#fff;border-radius:10px;margin-top:0;padding:12px;box-shadow:0 12px 32px #0f172a1f}.autocomplete-menu-portal.filter-toolbar-nested-select-menu{z-index:12000}.filter-toolbar-panel-grid{grid-template-columns:repeat(2,minmax(0,220px));gap:10px;display:grid}.filter-toolbar-panel-actions{gap:10px;margin-top:10px;display:flex}.more-actions-menu,.column-visibility-menu{position:relative}.dropdown-menu{z-index:40;border:1px solid var(--border);background:#fff;border-radius:10px;min-width:210px;padding:6px;position:absolute;top:calc(100% + 6px);right:0;box-shadow:0 12px 32px #0f172a1f}.dropdown-menu button{width:100%;color:var(--text);text-align:center;background:0 0;border:0;border-radius:8px;align-items:center;gap:10px;padding:10px 12px;font-size:13px;display:flex}.dropdown-menu button:hover{background:#f3f4f6}.dropdown-menu.column-menu{overscroll-behavior:contain;max-height:min(360px,100vh - 24px);overflow-y:auto}.dropdown-menu.column-menu-portal{z-index:4000;box-sizing:border-box;position:fixed;inset:auto}.column-menu-item{cursor:pointer;border-radius:8px;align-items:center;gap:10px;padding:8px 10px;font-size:13px;display:flex}.column-menu-item:hover{background:#f3f4f6}.column-menu-item input{accent-color:var(--brand)}.export-menu-dropdown{min-width:220px;padding:8px}.export-menu-item{gap:12px;padding:10px}.export-menu-item+.export-menu-item{border-top:1px solid var(--border);margin-top:4px;padding-top:14px}.export-menu-icon{border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;width:32px;height:32px;display:flex}.export-menu-icon-excel{background:var(--success-bg);color:var(--success)}.export-menu-icon-pdf{background:var(--danger-bg);color:var(--danger)}.export-split-menu{display:inline-flex;position:relative}.export-split-trigger{color:#1e293b;cursor:pointer;background:#fff;border:1px solid #d7dee8;border-radius:10px;align-items:stretch;height:40px;padding:0;transition:border-color .15s,box-shadow .15s;display:inline-flex;box-shadow:0 1px 2px #0f172a0a}.export-split-trigger:hover:not(:disabled){border-color:#c5d0de;box-shadow:0 2px 6px #0f172a14}.export-split-trigger:disabled{opacity:.55;cursor:not-allowed}.export-split-menu.is-open .export-split-trigger{border-color:#b8c4d4}.export-split-main{letter-spacing:-.01em;white-space:nowrap;align-items:center;gap:8px;padding:0 14px 0 12px;font-size:14px;font-weight:650;display:inline-flex}.export-split-divider{background:#d7dee8;align-self:stretch;width:1px;margin:8px 0}.export-split-chevron{color:#334155;justify-content:center;align-items:center;width:36px;display:inline-flex}.export-split-dropdown{z-index:50;background:#fff;border:1px solid #e5eaf1;border-radius:14px;min-width:220px;padding:8px;position:absolute;top:calc(100% + 10px);right:0;box-shadow:0 14px 36px #0f172a24}.export-split-dropdown:before{content:"";background:#fff;border-top:1px solid #e5eaf1;border-left:1px solid #e5eaf1;width:12px;height:12px;position:absolute;top:-7px;right:14px;transform:rotate(45deg)}.export-split-item{color:#1e293b;letter-spacing:-.01em;text-align:center;cursor:pointer;background:0 0;border:0;border-radius:10px;align-items:center;gap:12px;width:100%;padding:12px 10px;font-size:14px;font-weight:650;display:flex}.export-split-item+.export-split-item{border-top:1px solid #edf1f6;border-radius:0 0 10px 10px;margin-top:2px}.export-split-item:hover{background:#f5f7fa}.export-split-icon{border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;width:40px;height:40px;display:inline-flex}.export-split-icon-excel{color:#15803d;background:#e8f7ee}.export-split-icon-pdf{color:#dc2626;background:#fdecee}.po-table-redesign th{letter-spacing:.04em;font-size:11px}.vendor-cell{align-items:center;gap:10px;display:flex}.vendor-avatar{color:#fff;border-radius:999px;flex-shrink:0;place-items:center;width:34px;height:34px;font-size:12px;font-weight:700;display:grid}.vendor-name{font-size:13px;font-weight:600;display:block}.delivery-cell{flex-direction:column;gap:3px;display:flex}.delivery-status{font-size:11px;font-weight:600}.delivery-status.success{color:#059669}.delivery-status.warning{color:#d97706}.delivery-status.danger{color:#dc2626}.delivery-status.neutral,.delivery-status.muted{color:var(--text-muted)}.amount-cell{font-weight:600}.pagination-redesign{grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;display:grid}.pagination-center{justify-content:center;align-items:center;gap:8px;display:flex}.rows-label{color:var(--text-muted);font-size:12px}.facility-page-size-select.filter-autocomplete{flex:0 0 88px;width:88px;min-width:88px;max-width:100px}.facility-page-size-select .autocomplete-control{background:var(--surface-muted,#fafafa);border:1px solid var(--border);border-radius:8px;height:34px;min-height:34px;padding:0 8px}.facility-page-size-select .autocomplete-control:focus-within{border-color:var(--brand);box-shadow:0 0 0 3px #0d94881f}.facility-page-size-select .autocomplete-control input{height:32px;color:var(--text);text-align:center;font-size:13px}.pagination-redesign .page-numbers{justify-content:flex-end}.table-skeleton-bar.wide{width:88%}@media (width<=1280px){.recent-activity-row{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width<=900px){.recent-activity-row{grid-template-columns:1fr 1fr}.filter-toolbar-main{flex-direction:column;align-items:stretch}.filter-select,.filter-date-btn,.filter-toggle-btn,.more-actions-menu .btn{width:100%}.pagination-redesign{grid-template-columns:1fr}.pagination-redesign .page-numbers{justify-content:center}}.page-actions{flex-shrink:0;align-items:center;gap:8px;display:flex}.btn{border:1px solid #0000;border-radius:8px;align-items:center;gap:6px;min-height:36px;padding:8px 14px;font-size:13px;font-weight:600;transition:background .15s,border-color .15s,color .15s,box-shadow .15s;display:inline-flex}.btn:focus-visible{box-shadow:var(--focus-ring);outline:none}.btn:disabled{opacity:.55;cursor:not-allowed;box-shadow:none}.btn-secondary{background:var(--surface);border-color:var(--border);color:var(--text)}.btn-secondary:hover:not(:disabled){border-color:var(--border-strong);color:var(--text);background:#f8fafc}.btn-primary{background:var(--brand);color:#fff;box-shadow:0 2px 6px #0d94884d}.btn-primary:hover:not(:disabled){background:var(--brand-dark)}.stats-row{grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:0;display:grid}.app-page-header-center .stats-row--header{gap:8px;width:100%;margin:0}.stats-row--header .stat-card{gap:4px;min-width:0;padding:8px 10px}.stats-row--header .stat-label{white-space:nowrap;text-overflow:ellipsis;font-size:11px;overflow:hidden}.stats-row--header .stat-icon{border-radius:7px;flex-shrink:0;width:28px;height:28px}.stats-row--header .stat-value{font-size:16px;line-height:1.2}.stats-row--header .stat-value.sm{font-size:14px}.stats-row--header .stat-skeleton{height:16px}@media (width<=1200px){.app-page-header-row.has-center:has(.stats-row--header){flex-wrap:wrap;align-items:flex-start}.app-page-header-row.has-center:has(.stats-row--header) .app-page-header-center{flex:100%;order:3;justify-content:stretch}}.stat-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-sm);flex-direction:column;gap:8px;padding:14px 14px 12px;display:flex}.stat-card-top{justify-content:space-between;align-items:center;display:flex}.stat-icon{border-radius:8px;place-items:center;width:34px;height:34px;display:grid}.stat-icon.purple{color:#7c3aed;background:#f3e8ff}.stat-icon.amber{background:var(--pending-bg);color:var(--pending)}.stat-icon.blue{background:var(--partial-bg);color:var(--partial)}.stat-icon.green{background:var(--received-bg);color:var(--received)}.stat-icon.red{background:var(--cancelled-bg);color:var(--cancelled)}.stat-icon.teal{background:var(--brand-soft);color:var(--brand)}.stat-label{color:var(--text-muted);font-size:12px;font-weight:500}.stat-value{letter-spacing:-.03em;min-height:22px;font-size:20px;font-weight:700;line-height:1.1}.stat-value.sm{font-size:15px}.stat-skeleton{background:linear-gradient(90deg,#eef2f7 0%,#f8fafc 50%,#eef2f7 100%) 0 0/200% 100%;border-radius:6px;width:42%;height:22px;animation:1.2s ease-in-out infinite skeleton-shimmer}.stat-skeleton.wide{width:72%;height:18px;margin-top:2px}@keyframes skeleton-shimmer{0%{background-position:100% 0}to{background-position:-100% 0}}.filter-panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-sm);margin-bottom:14px;padding:14px 16px}.filter-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px 12px;margin-bottom:10px;display:grid}.filter-field{flex-direction:column;gap:5px;display:flex}.filter-field label{color:var(--text);font-size:11.5px;font-weight:600}.filter-field input:not([type=checkbox]):not([type=radio]),.filter-field select{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);height:36px;color:var(--text);outline:none;padding:0 10px;font-size:13px;transition:border-color .15s,box-shadow .15s}.filter-field .autocomplete-control input,.filter-field .autocomplete-control input:focus,.filter-field .autocomplete-control input:not([type=checkbox]):not([type=radio]),.filter-field .autocomplete-control input:not([type=checkbox]):not([type=radio]):focus{border-radius:0;height:30px;min-height:30px;box-shadow:none!important;background:0 0!important;border:none!important;outline:none!important;padding:0!important}.filter-field input[readonly],.filter-field input.is-readonly{color:var(--text-secondary);cursor:default;background:#f3f4f6}.filter-field input:not([type=checkbox]):not([type=radio]):focus,.filter-field select:focus{border-color:var(--brand);background:#fff;box-shadow:0 0 0 3px #0d94881f}.filter-field input[readonly]:focus,.filter-field input.is-readonly:focus{border-color:var(--border);box-shadow:none;background:#f3f4f6}.filter-actions{align-items:center;gap:12px;padding-top:4px;display:flex}.link-btn{color:var(--brand);cursor:pointer;background:0 0;border:0;align-items:center;gap:6px;padding:0;font-size:13px;font-weight:600;line-height:1;display:inline-flex}.link-btn svg{flex-shrink:0;display:block}.link-btn:hover:not(:disabled){text-decoration:underline}.link-btn:disabled,.clear-filters-btn:disabled{opacity:.45;cursor:not-allowed;text-decoration:none}.clear-filters-btn{white-space:nowrap;flex-shrink:0}.table-section{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-sm);flex-direction:column;min-height:0;display:flex;overflow:hidden}.table-toolbar{border-bottom:1px solid var(--border);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;display:flex}.status-tabs{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.status-tab{color:var(--text-secondary);background:#f3f4f6;border:1px solid #0000;border-radius:999px;padding:6px 12px;font-size:12.5px;font-weight:600;transition:all .15s}.status-tab:hover{background:var(--border)}.status-tab.active{background:var(--brand);color:#fff}.status-tab.active.pending{background:var(--pending)}.status-tab.active.approved{background:var(--received)}.status-tab.active.completed{background:#2563eb}.status-tab.active.partial{background:var(--partial)}.status-tab.active.received{background:var(--received)}.status-tab.active.issued{background:var(--brand-dark)}.status-tab.active.cancelled{background:var(--cancelled)}.po-direction-toggles{align-items:center;gap:10px;margin-left:6px;display:flex}.po-direction-card{border:1.5px solid #0000;border-radius:10px;align-items:center;gap:10px;min-height:42px;padding:8px 16px;font-size:13.5px;font-weight:700;line-height:1.2;transition:background .15s,border-color .15s,box-shadow .15s;display:inline-flex}.po-direction-card .po-direction-icon{flex-shrink:0;place-items:center;display:grid}.po-direction-card.is-outgoing{color:#047857;background:#ecfdf5}.po-direction-card.is-outgoing:hover{background:#d1fae5}.po-direction-card.is-outgoing.is-active{background:#d1fae5;border-color:#10b981;box-shadow:0 0 0 1px #10b98140}.po-direction-card.is-incoming{color:#1d4ed8;background:#eff6ff}.po-direction-card.is-incoming:hover{background:#dbeafe}.po-direction-card.is-incoming.is-active{background:#dbeafe;border-color:#3b82f6;box-shadow:0 0 0 1px #3b82f640}.po-items-nav-btn{width:32px;height:32px;color:var(--brand-dark);background:var(--brand-muted);border:1px solid #99f6e4;border-radius:8px;justify-content:center;align-items:center;transition:background .15s,color .15s;display:inline-flex}.po-items-nav-btn:hover:not(:disabled){background:var(--brand-soft);color:#115e59}.po-items-nav-btn:disabled{opacity:.55;cursor:not-allowed}.po-net-amount{font-variant-numeric:tabular-nums;white-space:nowrap}.po-receipts-cell{align-items:center;gap:6px;display:inline-flex}.po-receipt-btn{color:#475569;background:#f8fafc;border:1px solid #e2e8f0;border-radius:6px;justify-content:center;align-items:center;width:28px;height:28px;padding:0;display:inline-flex}.po-receipt-btn-order{background:0 0;border-color:#0000}.po-receipt-btn-order:hover:not(:disabled){color:inherit;background:#eff6ff;border-color:#bfdbfe}.po-receipt-btn-order:disabled,.po-receipt-btn-grn:disabled{opacity:1;cursor:not-allowed}.po-receipt-btn-order:disabled .po-receipt-icon,.po-receipt-btn-grn:disabled .po-receipt-icon{opacity:1;filter:none}.po-receipt-btn-grn{background:0 0;border-color:#0000}.po-receipt-btn-grn:hover:not(:disabled){background:var(--brand-muted);color:inherit;border-color:#99f6e4}.po-receipt-btn:hover:not(:disabled){color:var(--text);background:#e2e8f0}.po-receipt-btn:disabled{opacity:.5;cursor:not-allowed}.po-receipt-icon{object-fit:contain;opacity:1;filter:none;width:20px;height:20px;display:block}.po-receipt-sep{color:var(--text-muted);font-weight:600}.po-receipt-placeholder{min-width:28px;min-height:28px;color:var(--text-muted);justify-content:center;align-items:center;font-weight:600;display:inline-flex}.po-receipt-placeholder-order{min-width:28px}.table-utils{align-items:center;gap:6px;display:flex}.view-toggle{border:1px solid var(--border);border-radius:7px;display:flex;overflow:hidden}.view-toggle button{width:32px;height:30px;color:var(--text-muted);place-items:center;display:grid}.view-toggle button.active{background:var(--brand-muted);color:var(--brand)}.po-table-wrap{overflow-x:auto}.po-list-table th.po-col-sticky-left,.po-list-table td.po-col-sticky-left{z-index:3;background:#fff;position:sticky}.po-list-table th.po-col-sticky-left{z-index:5;background:var(--brand-dark)!important}.po-list-table th.po-col-sticky-right,.po-list-table td.po-col-sticky-right{z-index:3;background:#fff;position:sticky;right:0}.po-list-table th.po-col-sticky-right{z-index:5;box-shadow:-4px 0 10px -4px #0f172a2e;background:var(--brand-dark)!important}.po-list-table td.po-col-sticky-right{box-shadow:-4px 0 10px -4px #0f172a24}.po-list-table .po-col-po-number{width:168px;min-width:168px;left:0}.po-list-table .po-col-vendor{width:220px;min-width:220px;left:168px;box-shadow:4px 0 10px -4px #0f172a29}.po-list-table th.po-col-vendor{box-shadow:4px 0 10px -4px #0f172a33}.po-list-table .po-col-actions{width:132px;min-width:132px}.po-list-table tbody tr:hover td.po-col-sticky-left,.po-list-table tbody tr:hover td.po-col-sticky-right{background:#fafafa}.po-list-table .po-row-skeleton td.po-col-sticky-left,.po-list-table .po-row-skeleton td.po-col-sticky-right{background:#fff}.po-table{border-collapse:collapse;width:100%;font-size:13px}.po-table th{text-align:center;color:#fff;letter-spacing:.03em;background:var(--brand-dark);white-space:nowrap;border-bottom:1px solid #ffffff1f;border-right:1px solid #ffffff1f;padding:10px 12px;font-size:11.5px;font-weight:700}.po-table td{vertical-align:middle;border-bottom:1px solid #f3f4f6;padding:12px}.po-table tbody tr:hover{background:#fafafa}.po-link{color:var(--brand);cursor:pointer;font-weight:600;font:inherit;background:0 0;border:0;padding:0}.po-link:disabled{opacity:.6;cursor:not-allowed;text-decoration:none}.po-number-cell{flex-direction:column;align-items:flex-start;gap:2px;min-width:0;display:flex}.po-followup-link{font:inherit;color:var(--brand);text-overflow:ellipsis;white-space:nowrap;cursor:pointer;text-align:center;background:0 0;border:0;max-width:100%;padding:0;font-size:.72rem;font-weight:500;line-height:1.2;overflow:hidden}.po-followup-link:hover:not(:disabled){text-decoration:underline}.po-followup-link:disabled{color:#64748b;cursor:default;text-decoration:none}.table-skeleton-bar{background:linear-gradient(90deg,#eef2f7 0%,#f8fafc 50%,#eef2f7 100%) 0 0/200% 100%;border-radius:999px;width:72%;height:12px;animation:1.2s ease-in-out infinite skeleton-shimmer}.po-row-skeleton td{padding-top:14px;padding-bottom:14px}.po-empty-state{color:var(--text-secondary);text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:10px;padding:48px 16px;display:flex}.po-empty-state p{color:var(--text);margin:0;font-size:14px;font-weight:600}.po-empty-state span{font-size:13px}.view-po-items-modal.modal-dialog{width:min(1100px,100vw - 32px);max-height:calc(100vh - 48px)}.view-po-items-modal-header{align-items:flex-start}.view-po-items-modal-title-wrap{align-items:flex-start;gap:12px;display:flex}.view-po-items-modal-icon{width:36px;height:36px;color:var(--brand-dark);background:#ecfdf5;border-radius:10px;flex-shrink:0;place-items:center;display:grid}.view-po-items-modal-body{padding-top:12px}.view-po-items-modal-loading{min-height:180px;color:var(--text-secondary);justify-content:center;align-items:center;gap:10px;font-size:14px;display:flex}.view-po-items-modal-loading .spin{animation:.8s linear infinite spin}.view-po-modal.modal-dialog{background:#f3f5f7;border-radius:14px;flex-direction:column;width:min(1120px,96vw);height:auto;max-height:calc(100vh - 28px);display:flex;overflow:hidden}.view-po-header{border-bottom:1px solid var(--border);background:#fff;flex-shrink:0;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;display:flex}.view-po-header-main{align-items:center;gap:10px;min-width:0;display:flex}.view-po-header-icon{width:34px;height:34px;color:var(--brand-dark);background:#0d94881f;border-radius:10px;flex-shrink:0;place-items:center;display:grid}.view-po-header-copy{min-width:0}.view-po-header-title-row{flex-wrap:wrap;align-items:center;gap:8px 10px;display:flex}.view-po-header-title-row h2{color:var(--text);margin:0;font-size:18px;font-weight:700;line-height:1.2}.view-po-related-link{font:inherit;color:var(--brand);cursor:pointer;text-align:left;background:0 0;border:0;padding:0;font-size:12.5px;font-weight:600;line-height:1.2}.view-po-related-link:hover:not(:disabled){text-decoration:underline}.view-po-related-link:disabled{color:#64748b;cursor:default;text-decoration:none}.view-po-header-badges{flex-wrap:wrap;align-items:center;gap:6px;display:inline-flex}.view-po-header-meta{color:var(--text-muted);flex-wrap:wrap;align-items:center;gap:6px 8px;margin-top:3px;font-size:11.5px;display:flex}.view-po-dot{background:var(--text-muted);border-radius:50%;width:3px;height:3px}.view-po-body{flex-direction:column;flex:auto;gap:10px;min-height:0;padding:12px 14px;display:flex;overflow-y:auto}.view-po-card{border:1px solid var(--border);background:#fff;border-radius:12px;padding:10px 12px 12px;box-shadow:0 1px 2px #0f172a08}.view-po-card.tone-mint{background:linear-gradient(#f7fffc 0%,#fff 48%);border-color:#d8eee8}.view-po-card.tone-slate{background:linear-gradient(#f8fafc 0%,#fff 48%);border-color:#e2e8f0}.view-po-card.tone-amber{background:linear-gradient(#fffdf8 0%,#fff 48%);border-color:#f1e6d2}.view-po-card-head{border-bottom:2px solid #0d94882e;align-items:center;gap:8px;margin-bottom:10px;padding-bottom:8px;display:flex}.view-po-card-head h3{color:var(--brand-dark);letter-spacing:.01em;margin:0;font-size:18px;font-weight:600;line-height:1.25}.view-po-card-icon{width:26px;height:26px;color:var(--brand-dark);background:#0d94881f;border-radius:8px;flex-shrink:0;place-items:center;display:grid}.view-po-card-body{min-width:0}.view-po-grid{gap:10px 14px;display:grid}.view-po-grid.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.view-po-grid.cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.view-po-grid.cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.view-po-grid.cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.view-po-grid .view-po-field{min-width:0}.view-po-field.span-full{grid-column:1/-1}.view-po-inline-note{color:var(--text);white-space:pre-wrap;margin:0;font-size:14px;font-weight:500;line-height:1.45}.view-po-inline-note.is-empty,.view-po-note p.is-empty{color:var(--text-muted);font-weight:500}.view-po-label{color:var(--text-muted);margin-bottom:3px;font-size:12.5px;font-weight:500;line-height:1.2;display:block}.view-po-value,.view-po-value strong{color:var(--text);word-break:break-word;font-size:15px;font-weight:500;line-height:1.35}.view-po-value strong{font-weight:600}.view-po-chip{border-radius:999px;align-items:center;padding:3px 9px;font-size:11.5px;font-weight:700;line-height:1.25;display:inline-flex}.view-po-chip.type.vendor_purchase_po{color:#7c3aed;background:#f3e8ff}.view-po-chip.type.internal_request_po{color:#0369a1;background:#e0f2fe}.view-po-email-flag{align-items:center;gap:5px;font-size:13px;font-weight:700;display:inline-flex}.view-po-email-flag.yes{color:var(--brand-dark)}.view-po-email-flag.no{color:var(--text-muted)}.view-po-items-wrap{border:1px solid var(--border);-webkit-overflow-scrolling:touch;background:#fff;border-radius:10px;max-height:min(48vh,420px);overflow:auto}.view-po-items-table{border-collapse:collapse;table-layout:auto;width:100%;min-width:1680px}.view-po-items-table-grouped thead tr.view-po-items-head-group th{text-align:center;vertical-align:middle;border-bottom:1px solid #ffffff2e}.view-po-items-table-grouped thead tr.view-po-items-head-group th.col-num,.view-po-items-table-grouped thead tr.view-po-items-head-group th.col-money,.view-po-items-table-grouped thead tr.view-po-items-head-group th.col-total,.view-po-items-table-grouped thead tr.view-po-items-head-group th:nth-child(2){text-align:center}.view-po-items-table-grouped thead tr.view-po-items-head-sub th{text-align:center;letter-spacing:.01em;padding-top:4px;padding-bottom:7px;font-size:10.5px;font-weight:600;top:35px}.view-po-items-table .col-qty,.view-po-items-table .col-money{text-align:center;font-variant-numeric:tabular-nums;white-space:nowrap}.view-po-items-table .col-medicine{word-break:break-word;min-width:140px;max-width:220px}.view-po-items-table th,.view-po-items-table td{vertical-align:middle;text-align:center;border-bottom:1px solid #eef2f7;padding:8px 10px;font-size:12.5px}.view-po-items-table th{z-index:1;background:var(--brand-dark);color:#fff;letter-spacing:.02em;font-size:11.5px;font-weight:700;position:sticky;top:0}.view-po-items-table tbody tr:nth-child(2n){background:#f8fafc}.view-po-items-table .col-num{text-align:center;font-variant-numeric:tabular-nums}.view-po-items-table .col-total{color:var(--brand-dark);font-weight:700}.view-po-items-table th:first-child,.view-po-items-table td:first-child{width:44px}.view-po-empty-row{color:var(--text-muted);text-align:center!important;padding:18px 10px!important}.view-po-split{grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr);align-items:stretch;gap:10px;display:grid}.view-po-split-left{flex-direction:column;gap:10px;min-width:0;display:flex}.view-po-amount-card{width:100%}.view-po-amount-financial-grid{grid-template-columns:repeat(8,minmax(0,1fr));gap:12px 14px;display:grid}.view-po-amount-payment-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px 14px;display:grid}.view-po-amount-subtitle-row{border-top:2px solid #0d94882e;align-items:center;gap:8px;margin:14px 0 10px;padding-top:14px;display:flex}.view-po-amount-subtitle-icon{width:24px;height:24px;color:var(--brand-dark);background:#0d94881f;border-radius:8px;flex-shrink:0;place-items:center;display:grid}.view-po-amount-subtitle{color:var(--brand-dark);letter-spacing:.01em;margin:0;font-size:15px;font-weight:600;line-height:1.25}.view-po-amount-field{min-width:0}.view-po-amount-field .view-po-amount-value strong{color:var(--text);word-break:break-word;font-size:14px;font-weight:600;line-height:1.35;display:block}.view-po-amount-field.is-total .view-po-amount-value strong{color:var(--brand-dark);font-size:16px;font-weight:700}.view-po-amount-field.is-balance .view-po-amount-value strong{color:#c2410c}.view-po-received-row{margin-bottom:10px}.view-po-meta-row{flex-wrap:wrap;gap:10px 14px;display:flex}.view-po-meta-row:not(:empty){margin-bottom:10px}.view-po-meta-row.is-vendor .view-po-field{flex:0 auto;max-width:200px}.view-po-meta-row.is-internal{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px;display:grid}.view-po-notes-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.view-po-note{border:1px solid var(--border);background:#fff;border-radius:8px;min-width:0;padding:8px 10px}.view-po-note p{color:#374151;white-space:pre-wrap;margin:0;font-size:13px;line-height:1.4}.view-po-empty-hint{color:var(--text-muted);grid-column:1/-1;margin:0;font-size:12.5px}.view-po-amount-summary{flex-direction:column;gap:7px;display:flex}.view-po-amount-summary>div{justify-content:space-between;gap:12px;font-size:13px;display:flex}.view-po-amount-summary span{color:var(--text-muted);font-weight:500}.view-po-amount-summary strong{color:var(--text);font-variant-numeric:tabular-nums;text-align:right;font-weight:700}.view-po-amount-summary .is-total{border-top:1px dashed #cbd5e1;margin-top:4px;padding-top:8px}.view-po-amount-summary .is-total span,.view-po-amount-summary .is-total strong{color:var(--brand-dark);font-size:15px;font-weight:800}.view-po-amount-summary .is-balance strong{color:#b45309}.view-po-payment-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.view-po-status-tile{border:1px solid var(--border);background:#fff;border-radius:10px;align-items:flex-start;gap:8px;min-width:0;padding:10px;display:flex}.view-po-status-tile-icon{width:28px;height:28px;color:var(--brand-dark);background:#0d94881a;border-radius:8px;flex-shrink:0;place-items:center;display:grid}.view-po-status-tile strong{color:var(--text);margin-top:2px;font-size:14px;display:block}.view-po-status-tile .status-badge{margin-top:2px}.view-po-audit-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;display:grid}.view-po-audit-tile{border:1px solid var(--border);color:var(--brand-dark);background:#fff;border-radius:10px;align-items:flex-start;gap:8px;min-width:0;padding:10px;display:flex}.view-po-audit-tile strong{color:var(--text);word-break:break-word;margin-top:2px;font-size:13px;font-weight:700;display:block}.view-po-footer{border-top:1px solid var(--border);background:#fff;flex-shrink:0;justify-content:flex-end;gap:8px;padding:10px 14px;display:flex}.status-badge.payment-pending,.status-badge.payment-partial{color:#c2410c;background:#fff7ed}.status-badge.payment-paid{color:#047857;background:#ecfdf5}.view-po-loading{min-height:200px;color:var(--text-muted);place-items:center;gap:8px;display:grid}@media (width<=1280px){.view-po-grid.cols-5,.view-po-grid.cols-6{grid-template-columns:repeat(3,minmax(0,1fr))}.view-po-amount-financial-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.view-po-amount-payment-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width<=1100px){.view-po-grid.cols-4,.view-po-grid.cols-5,.view-po-grid.cols-6,.view-po-notes-grid,.view-po-meta-row.is-internal{grid-template-columns:repeat(2,minmax(0,1fr))}.view-po-amount-financial-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.view-po-amount-payment-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=720px){.view-po-grid.cols-2,.view-po-grid.cols-4,.view-po-grid.cols-5,.view-po-grid.cols-6,.view-po-notes-grid,.view-po-meta-row.is-internal,.view-po-amount-financial-grid,.view-po-amount-payment-grid{grid-template-columns:1fr}.view-po-meta-row.is-vendor .view-po-field{max-width:none}.view-po-header{align-items:flex-start}}.po-table input[type=checkbox]{width:15px;height:15px;accent-color:var(--brand)}.po-link{color:var(--brand);font-weight:600}.po-link:hover{text-decoration:underline}.ro-counterparty-cell{flex-direction:column;gap:2px;min-width:0;display:flex}.ro-items-cell{align-items:center;gap:8px;display:inline-flex}.ro-items-count{font-variant-numeric:tabular-nums;color:var(--text);min-width:1.25rem;font-weight:600}.ro-counterparty-cell strong{color:var(--text);font-size:13px;font-weight:600;line-height:1.3}.ro-counterparty-cell span{color:var(--text-muted);font-size:11.5px;line-height:1.25}.cell-sub{color:var(--text-muted);margin-top:2px;font-size:11.5px;font-weight:400;display:block}.status-badge{white-space:nowrap;border-radius:999px;align-items:center;gap:5px;padding:4px 10px;font-size:12px;font-weight:600;display:inline-flex}.status-badge:before{content:"";background:currentColor;border-radius:50%;width:6px;height:6px}.status-badge.pending{background:var(--pending-bg);color:var(--pending)}.status-badge.ordered{color:#2563eb;background:#eff6ff}.status-badge.partially_received{background:var(--partial-bg);color:var(--partial)}.status-badge.received{background:var(--received-bg);color:var(--received)}.status-badge.issued,.status-badge.issued-issued{color:var(--brand-dark);background:#ecfdf5}.status-badge.cancelled{background:var(--cancelled-bg);color:var(--cancelled)}.status-badge.approved{background:var(--received-bg);color:var(--received)}.status-badge.completed{color:#2563eb;background:#eff6ff}.status-badge.supplier-pending{background:var(--pending-bg);color:var(--pending)}.status-badge.supplier-approved{background:var(--received-bg);color:var(--received)}.status-badge.supplier-rejected{background:var(--cancelled-bg);color:var(--cancelled)}.status-badge.supplier-unknown{color:var(--text-muted);background:#f3f4f6}.status-badge.draft{color:#2563eb;background:#eff6ff}.status-badge.issued-pending{color:#c2410c;background:#fff7ed}.status-badge.issued-sent{color:#047857;background:#ecfdf5}.status-badge.issued-cancelled{background:var(--danger-bg);color:#b91c1c}.status-badge.issued-unknown{color:var(--text-muted);background:#f3f4f6}.po-sort-btn{color:inherit;font:inherit;cursor:pointer;background:0 0;border:0;align-items:center;gap:6px;padding:0;font-weight:600;display:inline-flex}.po-sort-btn:disabled{cursor:default;opacity:.7}.po-order-type-badge{white-space:nowrap;border-radius:999px;align-items:center;padding:3px 10px;font-size:12px;font-weight:600;display:inline-flex}.po-order-type-badge.is-vendor{color:#2563eb;background:#eff6ff}.po-order-type-badge.is-internal{color:#7c3aed;background:#f5f3ff}.po-supplier-cell{flex-direction:column;gap:4px;min-width:0;display:flex}.po-supplier-cell strong{color:var(--text);font-size:13px;font-weight:600}.po-last-edited{flex-direction:column;gap:2px;min-width:0;display:flex}.po-last-edited-user{color:var(--text-muted);font-size:12px}.po-supplier-chip{border-radius:999px;align-items:center;gap:4px;width:fit-content;padding:2px 8px;font-size:11px;font-weight:600;display:inline-flex}.po-supplier-chip.is-vendor{color:#2563eb;background:#eff6ff}.po-supplier-chip.is-pharmacy{color:#7c3aed;background:#f5f3ff}.grn-count-link{color:var(--brand);font:inherit;cursor:pointer;white-space:nowrap;background:0 0;border:0;padding:0;font-weight:700;text-decoration:underline}.grn-qty-cell{flex-direction:column;gap:1px;line-height:1.2;display:flex}.grn-qty-cell strong{color:var(--text);font-size:13.5px;font-weight:700}.grn-qty-cell span{color:var(--text-muted);font-size:12px}.grn-qty-cell.is-remaining strong,.grn-qty-cell.is-remaining span{color:#dc2626}.grn-qty-cell.is-complete strong,.grn-qty-cell.is-complete span{color:#059669}.grn-row-more{position:relative}.grn-row-more .dropdown-menu{min-width:140px;left:auto;right:0}.grn-dash-table .po-supplier-cell{flex-direction:column;align-items:flex-start;gap:4px}.grn-dash-table .status-badge{border-radius:999px;padding:6px 12px;font-size:12px;font-weight:700}.po-payment-badge{white-space:nowrap;border-radius:999px;align-items:center;padding:3px 10px;font-size:12px;font-weight:600;display:inline-flex}.po-payment-badge.is-pending{color:#ea580c;background:#fff7ed}.po-payment-badge.is-partial{color:#2563eb;background:#eff6ff}.po-payment-badge.is-paid{color:#059669;background:#ecfdf5}.po-payment-badge.is-credit{color:#6d28d9;background:#f5f3ff}.grn-po-overlay,.po-grns-overlay{z-index:1100;padding:16px}.po-grns-modal.modal-dialog{border-radius:12px;width:min(88vw,1280px);height:min(90vh,940px);max-height:min(90vh,940px)}.po-grns-body{flex-direction:column;flex:1;min-height:0;padding:12px 16px 10px;display:flex;overflow:auto}.po-grns-sum{border:1px solid var(--border);background:#fff;border-radius:10px;flex-shrink:0;grid-template-columns:1.1fr .95fr .95fr .9fr .95fr;display:grid}.po-grns-sum>div{min-width:0;padding:12px 14px}.po-grns-sum>div+div{border-left:1px solid var(--border)}.po-grns-sum span{color:var(--text-muted);align-items:center;gap:5px;font-size:11px;font-weight:500;display:flex}.po-grns-sum span+strong,.po-grns-sum span+.po-payment-badge{margin-top:4px;margin-bottom:10px}.po-grns-sum strong{color:var(--text);font-size:13px;display:block}.po-grns-sum strong.is-teal,.po-grns-sum-finance .is-teal{color:var(--brand-dark)}.po-grns-sum-finance .is-red{color:#dc2626}.po-grns-sum-finance>div{justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:6px;display:flex}.po-grns-sum-finance>div:last-child{margin-bottom:0}.po-grns-sum-finance span{margin:0}.po-grns-sum-finance strong{margin:0;font-size:14px}.po-grns-heading{color:var(--text);flex-shrink:0;margin:14px 0 8px;font-size:14px;font-weight:700}.po-grns-table-wrap{flex:none;max-height:190px;margin:0}.po-grns-items-wrap{flex:1;min-height:140px;margin:0 0 10px}.po-grns-items-table{min-width:1080px}.grn-po-items-table tbody tr.is-selected-grn td{background:var(--brand-muted)}.grn-po-items-table tbody tr.is-selected-grn td:first-child{box-shadow:inset 3px 0 0 var(--brand)}.po-grns-cards{flex-shrink:0;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;display:grid}.po-grns-cards article{border:1px solid var(--border);background:#fff;border-radius:10px;align-items:flex-start;gap:10px;padding:12px 14px;display:flex}.po-grns-card-icon{border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;width:32px;height:32px;line-height:0;display:flex}.po-grns-card-icon svg{flex-shrink:0;display:block}.po-grns-card-icon.is-blue{color:#2563eb;background:#dbeafe}.po-grns-card-icon.is-green{background:var(--brand-soft);color:var(--brand-dark)}.po-grns-cards article>div span{color:var(--text-muted);font-size:11px;font-weight:500;display:block}.po-grns-cards strong{color:var(--text);margin-top:3px;font-size:15px;font-weight:700;display:block}.po-grns-cards strong.is-teal{color:var(--brand-dark)}.po-grns-cards small{color:var(--text-muted);margin-top:2px;font-size:11px;display:block}@media (width<=980px){.po-grns-sum,.po-grns-cards{grid-template-columns:1fr 1fr}.po-grns-sum>div:nth-child(n+3){border-top:1px solid var(--border)}.po-grns-sum>div:nth-child(3){border-left:0}}.grn-detail-overlay,.pay-detail-overlay{z-index:1200;padding:16px}.pay-detail-modal.modal-dialog{border-radius:12px;width:min(82vw,1080px);height:auto;max-height:min(90vh,860px)}.pay-detail-body{flex-direction:column;flex:1;gap:12px;min-height:0;padding:14px 18px 10px;display:flex;overflow:auto}.pay-detail-paid-badge{color:#059669;background:#ecfdf5;border-radius:999px;align-items:center;gap:5px;padding:3px 10px;font-size:12px;font-weight:700;display:inline-flex}.pay-detail-hero{grid-template-columns:1fr 1fr;gap:12px;display:grid}.pay-detail-hero-card{border:1px solid var(--border);background:#fff;border-radius:12px;align-items:flex-start;gap:12px;padding:16px 18px;display:flex}.pay-detail-hero-icon{border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;width:40px;height:40px;line-height:0;display:inline-flex}.pay-detail-hero-icon svg,.pay-detail-info-icon svg,.pay-detail-paid-badge svg,.pay-detail-modal .grn-po-header-icon svg,.pay-detail-modal .grn-po-print svg,.pay-detail-modal .grn-po-close-x svg,.pay-detail-timeline-head h3 svg,.pay-detail-modal .grn-po-audit strong svg{flex-shrink:0;display:block}.pay-detail-hero-icon.is-purple{color:#7c3aed;background:#f3e8ff}.pay-detail-hero-icon.is-orange{color:#ea580c;background:#ffedd5}.pay-detail-hero-card>div span{color:var(--text-muted);font-size:12px;font-weight:500;display:block}.pay-detail-hero-card strong{color:var(--text);margin-top:4px;font-size:22px;font-weight:800;display:block}.pay-detail-hero-card small{color:var(--text-muted);margin-top:4px;font-size:12px;display:block}.pay-detail-info{border:1px solid var(--border);background:#fff;border-radius:12px;grid-template-columns:1fr 1fr;display:grid;overflow:hidden}.pay-detail-info-col+.pay-detail-info-col{border-left:1px solid var(--border)}.pay-detail-info-row{align-items:flex-start;gap:10px;padding:14px 16px;display:flex}.pay-detail-info-row+.pay-detail-info-row{border-top:1px solid #f3f4f6}.pay-detail-info-icon{width:28px;height:28px;color:var(--text-muted);background:#f3f4f6;border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;line-height:0;display:inline-flex}.pay-detail-info-row>div span{color:var(--text-muted);font-size:11px;font-weight:500;display:block}.pay-detail-info-row strong{color:var(--text);margin-top:3px;font-size:14px;display:block}.pay-detail-link{color:var(--brand-dark);cursor:pointer;background:0 0;border:0;align-items:center;gap:4px;margin-top:3px;padding:0;font-size:14px;font-weight:700;display:inline-flex}.pay-detail-timeline{background:var(--brand-muted);border:1px solid #99f6e4;border-radius:12px;padding:14px 16px 16px}.pay-detail-timeline-head{justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;display:flex}.pay-detail-timeline-head h3{color:var(--brand-dark);align-items:center;gap:8px;margin:0;font-size:14px;font-weight:700;display:inline-flex}.pay-detail-timeline-item{align-items:flex-start;gap:12px;min-height:48px;padding-left:4px;display:flex;position:relative}.pay-detail-dot{background:var(--brand-dark);width:10px;height:10px;box-shadow:0 0 0 4px var(--brand-soft);z-index:1;border-radius:50%;flex-shrink:0;margin-top:4px;position:relative}.pay-detail-timeline-item:before{content:"";background:#99f6e4;width:2px;position:absolute;top:16px;bottom:0;left:8px}.pay-detail-timeline-item strong{color:var(--text);font-size:13px;display:block}.pay-detail-timeline-item small{color:var(--text-muted);margin-top:2px;font-size:12px;display:block}@media (width<=820px){.pay-detail-hero,.pay-detail-info{grid-template-columns:1fr}.pay-detail-info-col+.pay-detail-info-col{border-left:0;border-top:1px solid var(--border)}}.grn-detail-po{color:var(--brand-dark)!important}.grn-detail-items-head{flex-shrink:0;align-items:baseline;gap:8px;margin:12px 0 8px;display:flex}.grn-detail-items-head h3{color:var(--brand-dark);margin:0;font-size:14px;font-weight:700}.grn-detail-items-head span{color:var(--text-muted);font-size:12px}.grn-detail-table-wrap{flex:1;margin:0 0 10px}.grn-po-items-table.grn-detail-items-table{min-width:1180px}.grn-detail-banner{color:#1d4ed8;background:#eff6ff;border:1px solid #bfdbfe;border-radius:8px;flex-shrink:0;align-items:flex-start;gap:10px;margin-bottom:4px;padding:10px 12px;font-size:13px;display:flex}.grn-detail-banner p{margin:0;line-height:1.4}.grn-detail-banner strong{color:#1d4ed8;font-weight:700}.grn-po-details-modal.modal-dialog{border-radius:12px;width:min(85vw,1240px);height:min(90vh,920px);max-height:min(90vh,920px)}.grn-po-header{border-bottom:1px solid var(--border);flex-shrink:0;justify-content:space-between;align-items:flex-start;gap:16px;padding:16px 20px 12px;display:flex}.grn-po-header-left{align-items:flex-start;gap:10px;min-width:0;display:flex}.grn-po-header-icon{background:var(--brand-muted);width:34px;height:34px;color:var(--brand-dark);border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;margin-top:2px;display:inline-flex}.grn-po-header-left h2{color:var(--text);margin:0;font-size:16px;font-weight:700;line-height:1.2}.grn-po-number-label{color:var(--text-muted);margin-top:8px;font-size:11px;font-weight:500;display:block}.grn-po-number-row{flex-wrap:wrap;align-items:center;gap:10px;margin-top:2px;display:flex}.grn-po-number{color:var(--brand-dark);letter-spacing:-.02em;font-size:20px;font-weight:800}.grn-po-status-badge{color:#c2410c!important;background:#ffedd5!important}.grn-po-status-badge:before{display:none}.grn-po-header-actions{flex-shrink:0;align-items:center;gap:8px;display:flex}.grn-po-print{border:1px solid var(--brand);height:34px;color:var(--brand-dark);cursor:pointer;background:#fff;border-radius:8px;align-items:center;gap:6px;padding:0 12px;font-size:13px;font-weight:600;display:inline-flex}.grn-po-print:hover{background:var(--brand-muted)}.grn-po-download{position:relative}.grn-po-download-btn{border:1px solid var(--border-strong);height:34px;color:var(--text);cursor:pointer;background:#fff;border-radius:8px;align-items:center;gap:6px;padding:0 12px;font-size:13px;font-weight:600;display:inline-flex}.grn-po-download-btn:hover{background:#f9fafb}.grn-po-download-menu{min-width:140px;left:auto;right:0}.grn-po-download-menu button:disabled{opacity:.5;cursor:not-allowed}.grn-po-close-x{color:var(--text-muted)}.grn-po-body{flex-direction:column;flex:1;min-height:0;padding:12px 16px 0;display:flex;overflow:hidden}.grn-po-loading{color:var(--text-secondary);justify-content:center;align-items:center;gap:8px;padding:48px 0;display:flex}.grn-po-summary{border:1px solid var(--border);background:#fff;border-radius:10px;flex-shrink:0;grid-template-columns:minmax(200px,1.25fr) .85fr .85fr .85fr minmax(210px,.95fr);gap:0;display:grid;overflow:hidden}.grn-po-summary-col{border-right:1px solid var(--border);min-width:0;padding:18px 16px}.grn-po-party-line{flex-wrap:wrap;align-items:center;gap:8px;margin-top:8px;display:flex}.grn-po-party-name{color:var(--text);margin:0;font-size:13.5px;display:block}.grn-po-meta-row{color:var(--text-muted);align-items:flex-start;gap:6px;margin-top:0;margin-bottom:24px;display:flex}.grn-po-meta-row:last-child{margin-bottom:0}.grn-po-meta-row span{font-size:11px;font-weight:500;display:block}.grn-po-meta-row p{color:var(--text);margin:4px 0 0;font-size:12px;font-weight:500;line-height:1.45}.grn-po-field{flex-direction:column;align-items:flex-start;margin-bottom:24px;display:flex}.grn-po-field:last-child{margin-bottom:0}.grn-po-field>span:first-child{color:var(--text-muted);align-items:center;gap:5px;font-size:11px;font-weight:500;display:inline-flex}.grn-po-field>.po-supplier-chip,.grn-po-field>.po-payment-badge{margin-top:8px}.grn-po-field strong{color:var(--text);margin-top:8px;font-size:13px;display:block}.grn-po-notes{color:var(--text-secondary);margin-top:8px;font-size:12px;font-style:italic;line-height:1.4;display:block}.grn-po-finance{min-width:0;padding:10px 14px}.grn-po-finance>div{color:var(--text-secondary);justify-content:space-between;align-items:center;gap:12px;padding:3px 0;font-size:12px;display:flex}.grn-po-finance strong{color:var(--text);text-align:right;font-variant-numeric:tabular-nums;font-weight:600}.grn-po-finance .is-total{border-top:1px solid var(--border);margin-top:4px;padding-top:6px;font-weight:700}.grn-po-finance .is-total span,.grn-po-finance .is-total strong{color:var(--brand-dark);font-size:13px}.grn-po-finance .is-balance{padding-top:4px}.grn-po-finance .is-balance span,.grn-po-finance .is-balance strong{color:#dc2626;font-weight:700}.grn-po-tabs{border-bottom:1px solid var(--border);flex-shrink:0;gap:4px;margin:10px 0 0;display:flex}.grn-po-tabs button{color:var(--text-muted);cursor:pointer;background:0 0;border:0;border-bottom:2px solid #0000;align-items:center;gap:6px;margin-bottom:-1px;padding:9px 12px;font-size:13px;font-weight:600;display:inline-flex}.grn-po-tabs button.is-active{color:var(--brand-dark);border-bottom-color:var(--brand)}.grn-po-tabs button:not(:disabled):hover{color:var(--brand-dark)}.grn-po-grns-panel{flex-direction:column;flex:1;min-height:0;margin-top:10px;margin-bottom:12px;display:flex}.grn-po-grns-table-wrap{flex:1;margin:0 0 10px}.grn-po-items-table.grn-po-grns-table{min-width:980px}.grn-po-grn-link{font-weight:700}.grn-against-status{white-space:nowrap;border-radius:999px;align-items:center;padding:3px 10px;font-size:12px;font-weight:600;display:inline-flex}.grn-against-status.is-partial{color:#2563eb;background:#eff6ff}.grn-against-status.is-received,.grn-against-status.is-paid{color:#059669;background:#ecfdf5}.grn-against-status.is-pending{color:#d97706;background:#fffbeb}.grn-against-status.is-credit{color:#6d28d9;background:#f5f3ff}.grn-po-stack-cell{flex-direction:column;gap:1px;line-height:1.25;display:flex}.grn-po-stack-cell strong{color:var(--text);font-size:13px;font-weight:700}.grn-po-stack-cell span{color:var(--text-muted);font-size:11px}.grn-po-items-table .is-actions{text-align:right;width:88px}.grn-po-row-actions{align-items:center;gap:6px;display:inline-flex}.grn-po-icon-action{border:1px solid var(--border-strong);width:30px;height:30px;color:var(--text-secondary);cursor:pointer;background:#fff;border-radius:6px;justify-content:center;align-items:center;padding:0;display:inline-flex}.grn-po-icon-action:hover{color:var(--brand-dark);background:#f9fafb}.grn-po-grn-stats{border:1px solid var(--border);background:#fff;border-radius:10px;flex-shrink:0;grid-template-columns:repeat(4,minmax(0,1fr));display:grid}.grn-po-grn-stats>div{align-items:center;gap:10px;padding:12px 14px;display:flex}.grn-po-grn-stats>div+div{border-left:1px solid var(--border)}.grn-po-grn-stat-icon{background:var(--brand-muted);width:32px;height:32px;color:var(--brand-dark);border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;line-height:0;display:inline-flex}.grn-po-grn-stat-icon svg{flex-shrink:0;display:block}.grn-po-grn-stats>div>div span{color:var(--text-muted);font-size:11px;font-weight:500;display:block}.grn-po-grn-stats strong{color:var(--brand-dark);margin-top:3px;font-size:15px;font-weight:700;display:block}.grn-po-grn-stats small{color:var(--text-muted);margin-top:1px;font-size:11px;display:block}@media (width<=900px){.grn-po-grn-stats{grid-template-columns:1fr 1fr}.grn-po-grn-stats>div:nth-child(3),.grn-po-grn-stats>div:nth-child(4){border-top:1px solid var(--border)}.grn-po-grn-stats>div:nth-child(3){border-left:0}}.grn-po-pay-panel{flex-direction:column;flex:1;min-height:0;margin-top:10px;margin-bottom:8px;display:flex}.grn-po-pay-cards{flex-shrink:0;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:10px;display:grid}.grn-po-pay-card{border:1px solid var(--border);background:#fff;border-radius:10px;align-items:flex-start;gap:10px;padding:12px 14px;display:flex}.grn-po-pay-icon{border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;width:34px;height:34px;line-height:0;display:flex}.grn-po-pay-icon svg{flex-shrink:0;display:block}.grn-po-pay-icon.is-teal{background:var(--brand-soft);color:var(--brand-dark)}.grn-po-pay-icon.is-blue{color:#2563eb;background:#dbeafe}.grn-po-pay-icon.is-purple{color:#7c3aed;background:#f3e8ff}.grn-po-pay-icon.is-orange{color:#ea580c;background:#ffedd5}.grn-po-pay-card>div span{color:var(--text-muted);font-size:11px;font-weight:500;display:block}.grn-po-pay-card strong{color:var(--text);margin-top:3px;font-size:16px;font-weight:700;display:block}.grn-po-pay-card strong.is-teal,.grn-po-pay-card small.is-teal{color:var(--brand-dark)}.grn-po-pay-card small{margin-top:2px;font-size:11px;font-weight:600;display:block}.grn-po-pay-card small.is-percent{color:#dc2626}.grn-po-pay-table-wrap{flex:1;margin:0}.grn-po-items-table.grn-po-pay-table{min-width:1100px}.grn-po-method-badge{color:#059669;white-space:nowrap;background:#ecfdf5;border-radius:999px;align-items:center;padding:3px 10px;font-size:12px;font-weight:600;display:inline-flex}.grn-po-remarks{white-space:normal;max-width:180px;color:var(--text-secondary)}.grn-po-icon-action.is-brand{color:var(--brand-dark)}.grn-po-pay-count{text-align:center;color:var(--text-muted);flex-shrink:0;margin:8px 0 0;font-size:12px}@media (width<=980px){.grn-po-pay-cards{grid-template-columns:1fr 1fr}}.grn-po-items-wrap{border:1px solid var(--border);border-radius:8px;flex:1;min-height:0;margin:10px 0 12px;overflow:auto}.grn-po-items-table{border-collapse:collapse;width:100%;min-width:1080px;font-size:12px}.grn-po-items-table.is-po-items{border-collapse:separate;border-spacing:0;min-width:1680px}.grn-po-items-table.is-po-items .is-sticky-num{z-index:3;background:#fff;width:44px;min-width:44px;position:sticky;left:0}.grn-po-items-table.is-po-items thead .is-sticky-num{z-index:5;background:#f3f4f6}.grn-po-items-table.is-po-items .is-sticky-med{z-index:2;background:#fff;min-width:200px;max-width:240px;position:sticky;left:44px;box-shadow:4px 0 8px #0f172a0f}.grn-po-items-table.is-po-items thead .is-sticky-med{z-index:4;background:#f3f4f6}.grn-po-items-table.is-po-items .is-sticky-total{z-index:2;background:#fff;min-width:120px;position:sticky;right:0;box-shadow:-4px 0 8px #0f172a0f}.grn-po-items-table.is-po-items thead .is-sticky-total{z-index:4;background:#f3f4f6}.grn-po-items-table thead th{z-index:1;color:#374151;text-align:center;border-bottom:1px solid var(--border);white-space:nowrap;background:#f3f4f6;padding:8px 10px;font-size:11px;font-weight:600;position:sticky;top:0}.grn-po-items-table tbody td{color:var(--text);vertical-align:middle;white-space:nowrap;border-bottom:1px solid #f3f4f6;padding:8px 10px}.grn-po-items-table .is-num,.grn-po-items-table .is-qty{text-align:center}.grn-po-items-table .is-money{text-align:center;font-variant-numeric:tabular-nums}.grn-po-med-name{white-space:normal;font-size:12.5px;font-weight:700;display:block}.grn-po-med-pack{color:var(--text-muted);font-size:11px;font-weight:400;display:block}.grn-po-items-table .is-received{color:var(--brand-dark);font-weight:600}.grn-po-items-table .is-remaining{color:#dc2626;font-weight:700}.grn-po-items-table .is-zero{color:var(--text-secondary)}.grn-po-empty{text-align:center;color:var(--text-muted);padding:24px!important}.grn-po-footer{border-top:1px solid var(--border);flex-shrink:0;justify-content:space-between;align-items:center;gap:16px;padding:10px 20px 14px;display:flex}.grn-po-audit{align-items:stretch;gap:18px;display:flex}.grn-po-audit>div{flex-direction:column;gap:2px;display:flex}.grn-po-audit>div+div{border-left:1px solid var(--border);padding-left:18px}.grn-po-audit span{color:var(--text-muted);font-size:11px;font-weight:500}.grn-po-audit strong{color:var(--text);align-items:center;gap:6px;font-size:13px;display:inline-flex}.grn-po-audit small{color:var(--text-muted);font-size:11px}.grn-po-close-btn{border:1px solid var(--border-strong);height:34px;color:var(--text);cursor:pointer;background:#fff;border-radius:8px;padding:0 16px;font-size:13px;font-weight:600}.grn-po-close-btn:hover{background:#f9fafb}@media (width<=1100px){.grn-po-summary{grid-template-columns:1fr 1fr}.grn-po-finance{border-top:1px solid var(--border);grid-column:1/-1}}@media (width<=720px){.grn-po-details-modal.modal-dialog{width:100%;height:calc(100vh - 24px)}.grn-po-header,.grn-po-footer{flex-wrap:wrap}.grn-po-summary{grid-template-columns:1fr}.grn-po-summary-col{border-right:0;border-bottom:1px solid var(--border)}}.po-list-table .amount-col,.po-list-table .amount-cell{text-align:center}.received-cell{min-width:110px}.received-meta{justify-content:space-between;margin-bottom:4px;font-size:12px;font-weight:600;display:flex}.received-meta .pct{color:var(--text-muted);font-weight:500}.progress-bar{background:var(--border);border-radius:999px;height:5px;overflow:hidden}.progress-bar>span{background:var(--brand);border-radius:999px;height:100%;display:block}.progress-bar.partial>span{background:var(--partial)}.progress-bar.full>span{background:var(--received)}.progress-bar.empty>span{background:var(--border-strong);width:0!important}.row-actions{align-items:center;gap:2px;display:flex}.row-actions .app-tooltip-anchor{flex-shrink:0}.row-actions .icon-btn{width:30px;height:30px}.pagination{border-top:1px solid var(--border);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;display:flex}.pagination-info{color:var(--text-secondary);align-items:center;gap:8px;font-size:13px;display:flex}.pagination-info select{border:1px solid var(--border);background:#fff;border-radius:6px;height:30px;padding:0 6px}.page-numbers{align-items:center;gap:4px;display:flex}.page-numbers button{border:1px solid var(--border);background:var(--surface);min-width:32px;height:32px;color:var(--text);border-radius:7px;padding:0 8px;font-size:13px;font-weight:600}.page-numbers button:hover:not(:disabled){background:var(--brand-muted);border-color:var(--brand);color:var(--brand-dark)}.page-numbers button.active{background:var(--brand);border-color:var(--brand);color:#fff}.page-numbers button:disabled{opacity:.45;cursor:default}.modal-overlay{z-index:1000;-webkit-backdrop-filter:blur();opacity:0;background:#11182700;justify-content:center;align-items:center;padding:20px;transition:opacity .38s,background .38s,-webkit-backdrop-filter .38s,backdrop-filter .38s;display:flex;position:fixed;inset:0}.modal-overlay.is-open{opacity:1;-webkit-backdrop-filter:blur(8px);background:#1118276b}.modal-dialog{background:var(--surface);width:min(1180px,100%);max-height:calc(100vh - 40px);transform:translate3d(var(--from-x,0px), var(--from-y,-180px), 0) scale(.08);opacity:0;filter:blur(6px);will-change:transform, opacity, filter;border-radius:14px;flex-direction:column;transition:transform .48s,opacity .34s,filter .34s;display:flex;overflow:hidden;box-shadow:0 0 0 1px #0000000a,0 24px 64px #10182838,0 8px 20px #1018281a}.modal-dialog.is-open{opacity:1;filter:blur();transform:translate(0,0)scale(1)}@media (prefers-reduced-motion:reduce){.modal-overlay,.modal-dialog{transition:none}.modal-dialog{filter:none;transform:none}}.modal-header{border-bottom:1px solid var(--border);flex-shrink:0;justify-content:space-between;align-items:center;padding:14px 18px;display:flex}.modal-title-row{align-items:center;gap:10px;display:flex}.modal-title-icon{background:var(--brand-soft);width:34px;height:34px;color:var(--brand-dark);border-radius:8px;place-items:center;display:grid}.modal-header h2{letter-spacing:-.02em;color:var(--text);font-size:17px;font-weight:700}.modal-body{flex:1;padding:16px 18px 8px;overflow-y:auto}.modal-footer{border-top:1px solid var(--border);background:#fafafa;flex-shrink:0;justify-content:flex-end;align-items:center;gap:8px;padding:12px 18px;display:flex}.po-section{margin-bottom:14px}.po-section>h3,.section-toolbar h3,.order-summary h3{color:var(--brand-dark);margin-bottom:10px;font-size:13px;font-weight:700}.po-form-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 14px;display:grid}.po-form-grid .span-2{grid-column:span 2}.po-form-grid textarea{border:1px solid var(--border);border-radius:var(--radius-sm);width:100%;font:inherit;resize:vertical;background:#fafafa;outline:none;padding:8px 10px;font-size:13px}.po-form-grid textarea:focus{border-color:var(--brand);background:#fff;box-shadow:0 0 0 3px #0d94881f}.req{color:#e11d48;vertical-align:baseline;margin-left:5px;font-size:1.2em;font-weight:800;line-height:1;display:inline-block;position:relative;top:-1px}label .req,th .req{margin-left:6px}.label-info{color:var(--text-muted);vertical-align:middle;margin-left:4px}.field-with-action{gap:6px;display:flex}.field-with-action select{flex:1}.field-action-btn{border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--brand-muted);width:36px;height:36px;color:var(--brand-dark);flex-shrink:0;place-items:center;display:grid}.field-action-btn:hover{background:var(--brand-soft)}.field-with-icon{position:relative}.field-with-icon input{width:100%;padding-right:34px}.field-icon{color:var(--text-muted);pointer-events:none;position:absolute;top:50%;right:10px;transform:translateY(-50%)}.po-main-grid{grid-template-columns:1fr 260px;align-items:start;gap:14px;margin-bottom:14px;display:grid}.medicines-section{border:1px solid var(--border);border-radius:var(--radius);background:#fafafa;min-width:0;padding:12px}.section-toolbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px;display:flex}.section-toolbar h3{margin-bottom:0}.section-toolbar-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.medicine-search{border:1px solid var(--border);min-width:0;color:var(--text-muted);background:#fff;border-radius:8px;flex:200px;align-items:center;gap:6px;padding:4px 6px 4px 10px;display:flex}.medicine-search input{color:var(--text);background:0 0;border:none;outline:none;flex:1;min-width:0;font-size:13px}.medicines-table-wrap{border:1px solid var(--border);background:#fff;border-radius:8px;max-height:320px;overflow:auto}.medicines-table th{z-index:1;position:sticky;top:0}.medicines-table td{font-size:12.5px}.medicine-cell strong{font-size:12.5px;font-weight:600}.muted{color:var(--text-muted)}.qty-input{border:1px solid var(--border);background:#fff;border-radius:6px;align-items:center;gap:4px;min-width:90px;padding:2px 6px 2px 2px;display:flex}.qty-input input{background:0 0;border:none;outline:none;width:52px;padding:4px 6px;font-size:12.5px}.qty-input span{color:var(--text-muted);white-space:nowrap;font-size:11px}.table-input{border:1px solid var(--border);background:#fff;border-radius:6px;outline:none;width:72px;height:30px;padding:0 6px;font-size:12.5px}.table-input:focus{border-color:var(--brand)}select.table-input{width:68px}.amount-cell{white-space:nowrap;font-weight:600}.icon-btn.danger{color:var(--danger)}.icon-btn.danger:hover{background:var(--danger-bg);color:var(--danger)}.icon-btn.danger:disabled{opacity:.45;color:var(--danger)}.table-footer-note{color:var(--text-muted);margin-top:8px;font-size:12px}.order-summary{border:1px solid var(--border);border-radius:var(--radius);background:#fafafa;padding:14px;position:sticky;top:0}.summary-row{color:var(--text-secondary);justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px;font-size:12.5px;display:flex}.summary-row strong{color:var(--text);font-weight:600}.summary-row.sm{margin-bottom:5px;font-size:12px}.summary-row.discount strong{color:#dc2626}.summary-row.editable input{border:1px solid var(--border);text-align:right;background:#fff;border-radius:6px;outline:none;width:88px;height:28px;padding:0 6px;font-size:12.5px}.order-summary hr{border:none;border-top:1px dashed var(--border);margin:8px 0 10px}.gst-box{border:1px solid var(--border);background:#fff;border-radius:8px;margin:8px 0 12px;padding:8px 10px}.gst-box-header{color:var(--text);justify-content:space-between;align-items:center;margin-bottom:6px;font-size:12px;font-weight:600;display:flex}.grand-total{background:var(--brand-soft);border:1px solid #99f6e4;border-radius:8px;flex-direction:column;gap:2px;margin-top:10px;padding:12px;display:flex}.grand-total span{color:var(--brand-dark);font-size:11.5px;font-weight:600}.grand-total strong{color:var(--brand-dark);letter-spacing:-.03em;font-size:20px;font-weight:700}.po-bottom-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:8px;display:grid}.po-bottom-grid .po-section{border:1px solid var(--border);border-radius:var(--radius);background:#fafafa;margin-bottom:0;padding:12px}.po-bottom-grid .filter-field{margin-bottom:10px}.po-bottom-grid .filter-field:last-child{margin-bottom:0}.po-bottom-grid textarea{border:1px solid var(--border);border-radius:var(--radius-sm);width:100%;font:inherit;resize:vertical;background:#fff;outline:none;padding:8px 10px;font-size:13px}.char-count{text-align:right;color:var(--text-muted);margin-top:4px;font-size:11px;display:block}.upload-zone{border:1.5px dashed var(--border-strong);text-align:center;color:var(--text-muted);background:#fff;border-radius:10px;flex-direction:column;justify-content:center;align-items:center;gap:8px;min-height:160px;padding:22px 14px;display:flex}.upload-zone p{color:var(--text-secondary);font-size:13px}.upload-zone span{font-size:11.5px;line-height:1.4}.email-toggle-row{justify-content:space-between;align-items:center;margin:10px 0 8px;font-size:13px;font-weight:500;display:flex}.toggle{background:var(--border-strong);border-radius:999px;width:40px;height:22px;padding:2px;transition:background .15s}.toggle.on{background:var(--brand)}.toggle-knob{width:18px;height:18px;box-shadow:var(--shadow-sm);background:#fff;border-radius:50%;transition:transform .15s;display:block}.toggle.on .toggle-knob{transform:translate(18px)}.email-chip{border:1px solid var(--border);color:var(--text-secondary);background:#fff;border-radius:999px;align-items:center;gap:6px;padding:5px 8px 5px 10px;font-size:12.5px;display:inline-flex}.email-chip button{color:var(--text-muted);place-items:center;display:grid}.btn-outline-brand{border:1px solid var(--brand);color:var(--brand-dark);background:#fff}.btn-outline-brand:hover{background:var(--brand-muted)}.split-btn{display:inline-flex}.split-btn .btn-primary{border-radius:8px 0 0 8px}.split-btn .split-caret{border-left:1px solid #ffffff40;border-radius:0 8px 8px 0;padding-left:8px;padding-right:8px}.create-po-simple.modal-dialog{--po-table-head-h:44px;--po-table-row-h:68px;--po-visible-rows:6;width:min(1680px,94vw);min-width:0;max-width:calc(100vw - 32px);height:min(920px,100vh - 24px);max-height:calc(100vh - 24px)}.create-po-simple .modal-header,.create-po-simple .modal-footer{flex-shrink:0}.create-po-simple .modal-header{padding:14px 20px 10px}.create-po-simple .modal-footer{padding:10px 18px}.create-po-simple .modal-body{flex-direction:column;flex:auto;gap:10px;min-width:0;min-height:0;padding:12px 20px 10px;display:flex;overflow:hidden}.create-po-simple .modal-body>.po-section{flex-shrink:0;margin-bottom:0}.create-po-simple .modal-body>.create-po-items{flex-direction:column;flex:1 1 0;min-height:0;display:flex;overflow:hidden}.create-po-simple .modal-body>.create-po-notes{flex:none}.create-po-section-heading{color:var(--brand-dark);align-items:center;gap:8px;margin-bottom:8px;display:flex}.create-po-section-heading h3{color:inherit;margin:0;font-size:13.5px;font-weight:700}.create-po-section-heading svg{color:var(--brand);flex-shrink:0}.create-po-items-toolbar{justify-content:space-between;align-items:center;gap:12px;display:flex}.create-po-items-actions{flex-shrink:0;align-items:center;gap:8px;display:flex}.create-po-items-toolbar .create-po-section-heading{margin-bottom:0}.create-po-notes-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px}.create-po-supplier-error{margin-top:6px;display:block}.modal-title-block{flex-direction:column;gap:2px;min-width:0;display:flex}.create-po-simple .modal-subtitle{color:var(--text-muted);margin:0 0 0 42px;font-size:12.5px;font-weight:400}.edit-po-modal.modal-dialog{height:min(960px,100vh - 24px)}.edit-po-modal .modal-body{overflow-y:auto}.edit-po-modal .modal-body>.create-po-items{flex:none;min-height:0}.create-po-table tbody tr.is-new-row{animation:1.6s po-row-flash}@keyframes po-row-flash{0%{background:#0d94882e}to{background:0 0}}.create-po-simple .create-po-top-grid{grid-template-columns:repeat(6,minmax(0,1fr));align-items:end;gap:10px 12px}.create-po-simple .create-po-number-input{-webkit-text-fill-color:#64748b;cursor:default;font-weight:500;color:#64748b!important;opacity:1!important;background:#f1f5f9!important}.create-po-simple .filter-field label .create-ro-field-hint-inline{margin-left:2px}.create-po-simple .filter-field>.autocomplete{width:100%}.create-po-simple .filter-field .autocomplete-control{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);gap:8px;height:36px;min-height:36px;padding:0 10px}.create-po-simple .filter-field .autocomplete-control:focus-within{border-color:var(--brand);background:#fff;box-shadow:0 0 0 3px #0d94881f}.create-po-simple .filter-field .autocomplete-control.is-disabled{opacity:.6;cursor:not-allowed;background:#f3f4f6}.create-po-simple .filter-field .autocomplete-control input,.create-po-simple .filter-field .autocomplete-control input:focus,.create-po-simple .filter-field .autocomplete-control input:not([type=checkbox]):not([type=radio]),.create-po-simple .filter-field .autocomplete-control input:not([type=checkbox]):not([type=radio]):focus{height:34px;min-height:34px;color:var(--text);border-radius:0;font-size:13px;box-shadow:none!important;background:0 0!important;border:none!important;outline:none!important;padding:0!important}.create-po-simple .filter-field .autocomplete-control input::placeholder{color:var(--text-muted)}.create-po-simple .filter-field .autocomplete.has-error .autocomplete-control{border-color:#dc2626;box-shadow:0 0 0 3px #dc26261a}.create-po-simple .create-po-top-grid .create-po-email-field{justify-content:flex-start;gap:6px;min-width:0}.create-po-simple .create-po-top-grid .create-po-email-field-spacer{visibility:hidden;pointer-events:none;-webkit-user-select:none;user-select:none;height:1.25em;font-size:12px;line-height:1.25;display:block}.create-po-simple .create-po-top-grid .create-po-email-checkbox{white-space:nowrap;height:36px;min-height:36px;color:var(--text-secondary);gap:10px;margin-top:0;padding:0 2px;font-size:13px;font-weight:500}.create-po-simple .create-po-top-grid .create-po-email-checkbox input[type=checkbox]{appearance:none;cursor:pointer;background:#fff;border:2px solid #cbd5e1;border-radius:4px;flex-shrink:0;width:20px;min-width:20px;height:20px;min-height:20px;margin:0;transition:background-color .15s,border-color .15s;position:relative;overflow:visible}.create-po-simple .create-po-top-grid .create-po-email-checkbox input[type=checkbox]:checked{background:#48cbc0;border-color:#48cbc0}.create-po-simple .create-po-top-grid .create-po-email-checkbox input[type=checkbox]:checked:after{content:"";border:3px solid #1e3a8a;border-width:0 3px 3px 0;width:7px;height:13px;position:absolute;top:-1px;left:4px;transform:rotate(45deg)}.create-po-simple .create-po-top-grid .create-po-email-checkbox input[type=checkbox]:focus-visible{outline:none;box-shadow:0 0 0 3px #48cbc059}.create-po-simple .create-po-top-grid .create-po-email-checkbox input[type=checkbox]:disabled{opacity:.55;cursor:not-allowed}.create-po-simple .create-po-top-grid .checkbox-label{min-height:36px;margin-top:0}.create-po-simple .filter-field label .req{color:#e11d48;margin-left:3px;font-size:1.05em;font-weight:800}@media (width<=1280px){.create-po-simple .create-po-top-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width<=720px){.create-po-simple .create-po-top-grid{grid-template-columns:1fr}}.email-check-field{justify-content:flex-end;min-height:48px}.checkbox-label{color:var(--text-secondary);cursor:pointer;align-items:center;gap:8px;margin-top:18px;font-size:13px;font-weight:500;display:inline-flex!important}.checkbox-label input[type=checkbox]{width:15px;height:15px;accent-color:var(--brand)}.field-error{color:#dc2626;margin-top:4px;font-size:11.5px;display:block}.create-po-items{border:1px solid var(--border);border-radius:var(--radius);box-sizing:border-box;background:#fafafa;min-width:0;max-width:100%;min-height:0;padding:10px 12px 12px;overflow:hidden}.create-po-items .section-toolbar{flex:none;margin-bottom:8px}.create-po-items-error{flex:none;margin-top:4px}.create-po-notes .create-po-section-heading{margin-bottom:6px}.create-po-notes textarea,.create-po-top-notes textarea{resize:vertical;height:80px;min-height:72px;max-height:90px;padding:8px 10px;line-height:1.35}.input-with-icon{border:1px solid var(--border);min-width:140px;color:var(--text-muted);background:#fff;border-radius:6px;align-items:center;gap:6px;padding:0 8px;display:flex}.input-with-icon input{height:30px;color:var(--text);background:0 0;border:none;outline:none;flex:1;min-width:0;font-size:12.5px}.input-with-icon:focus-within{border-color:var(--brand);box-shadow:0 0 0 3px #0d94881f}.autocomplete{width:100%;min-width:0;max-width:100%;position:relative}.autocomplete-control{box-sizing:border-box;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);width:100%;max-width:100%;color:var(--text);align-items:center;gap:6px;min-height:32px;padding:0 8px;display:flex;overflow:hidden}.autocomplete-control.is-disabled{opacity:.6;background:#f3f4f6}.autocomplete-control:focus-within{border-color:var(--brand);box-shadow:0 0 0 3px #0d94881f}.autocomplete-icon{color:var(--brand-dark);flex-shrink:0}.autocomplete-control input{height:30px;color:var(--text);text-overflow:ellipsis;white-space:nowrap;background:0 0;border:none;outline:none;flex:auto;width:100%;min-width:0;font-size:12.5px;overflow:hidden}.autocomplete-spinner{color:var(--brand);flex-shrink:0;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.autocomplete-clear{width:18px;height:18px;color:var(--text-muted);border-radius:4px;flex-shrink:0;place-items:center;display:grid}.autocomplete-clear:hover{color:var(--text);background:#f3f4f6}.autocomplete-chevron{width:18px;height:18px;color:var(--text-muted);border-radius:4px;flex-shrink:0;place-items:center;transition:transform .15s;display:grid}.autocomplete-chevron:hover{color:var(--text);background:#f3f4f6}.autocomplete-chevron.is-open{transform:rotate(180deg)}.autocomplete-menu{z-index:2000;background:var(--surface);color:var(--text);border:1px solid var(--border);box-shadow:var(--shadow-md,0 10px 24px #1018281f);box-sizing:border-box;border-radius:8px;padding:4px;overflow:hidden auto}.autocomplete-menu-portal{z-index:2600;min-height:44px;position:fixed}.autocomplete-status{color:var(--text-muted);padding:10px 8px;font-size:12px}.autocomplete-status.is-error{color:#dc2626}.autocomplete-option{text-align:left;box-sizing:border-box;border-radius:6px;flex-direction:row;align-items:center;gap:10px;width:100%;padding:10px 8px;display:flex}.autocomplete-option:hover,.autocomplete-option.is-active{background:var(--brand-muted)}.autocomplete-option.is-selected{background:#0d94881f}.autocomplete-option.is-selected.is-active,.autocomplete-option.is-selected:hover{background:#0d94882e}.autocomplete-option.is-selected .autocomplete-option-label{color:var(--brand-dark)}.autocomplete-option-icon{width:32px;height:32px;color:var(--text-muted);border-radius:6px;flex:none;justify-content:center;align-items:center;display:inline-flex;overflow:hidden}.autocomplete-option-icon .payment-method-logo{object-fit:contain;background:#fff;border-radius:5px;width:28px;height:28px;display:block}.autocomplete-option-icon .payment-method-logo-split{width:40px;height:40px;margin:-6px}.autocomplete-option.is-active .autocomplete-option-icon,.autocomplete-option.is-selected .autocomplete-option-icon{color:var(--brand-dark)}.autocomplete-option-text{flex-direction:column;flex:auto;gap:2px;min-width:0;display:flex}.autocomplete-option-label{color:var(--text);text-overflow:ellipsis;white-space:nowrap;font-size:12.5px;font-weight:600;overflow:hidden}.autocomplete-option-desc{color:var(--text-muted);text-overflow:ellipsis;white-space:nowrap;font-size:11px;overflow:hidden}.create-po-items .medicines-table-wrap,.create-po-items .create-po-table-wrap{overscroll-behavior:contain;-webkit-overflow-scrolling:touch;border:1px solid var(--border);box-sizing:border-box;background:#fff;border-radius:10px;flex:1 1 0;width:100%;max-width:100%;min-height:0;overflow:auto}.create-po-simple .create-po-items .medicines-table-wrap,.create-po-simple .create-po-items .create-po-table-wrap{flex:1 1 0;align-self:stretch;min-height:0;max-height:100%}.edit-po-modal .create-po-items .medicines-table-wrap,.edit-po-modal .create-po-items .create-po-table-wrap{--edit-po-visible-rows:5;height:auto;min-height:0;max-height:calc(var(--po-table-head-h) + (var(--edit-po-visible-rows) * var(--po-table-row-h)));overscroll-behavior:contain;scroll-behavior:smooth;flex:none;overflow:auto}.create-po-table{table-layout:fixed;border-collapse:separate;border-spacing:0;width:100%;min-width:1100px;max-width:none}.create-po-table col{box-sizing:border-box}.create-po-table th,.create-po-table td{box-sizing:border-box;vertical-align:top;text-align:center;height:auto;min-height:var(--po-table-row-h,68px);white-space:nowrap;background:#fff;border-bottom:1px solid #eef2f7;border-right:1px solid #f1f5f9;padding:6px 8px;font-size:12px;position:relative;overflow:visible}.create-po-table th,.create-po-simple .create-po-table thead th{z-index:3;height:var(--po-table-head-h,44px);min-height:var(--po-table-head-h,44px);vertical-align:middle;background:var(--brand-dark);color:#fff;letter-spacing:.02em;white-space:nowrap;box-shadow:none;border-bottom:1px solid #ffffff1f;border-right:1px solid #ffffff1f;padding:10px 8px;font-size:11px;font-weight:700;position:sticky;top:0;overflow:hidden}.create-po-table th:last-child,.create-po-table td:last-child{border-right:none}.create-po-table th .req,.create-po-simple .create-po-table thead th .req{color:#fecaca;margin-left:3px}.create-po-table tbody tr:nth-child(2n) td{background:#f8fafc}.create-po-table tbody tr:nth-child(odd) td{background:#fff}.create-po-table .col-num,.create-po-table th.col-num{text-align:center;font-variant-numeric:tabular-nums}.create-po-table th.create-po-col-index,.create-po-table td.create-po-col-index{text-align:center;font-variant-numeric:tabular-nums;color:#374151;vertical-align:top;padding-top:14px;padding-left:6px;padding-right:6px;font-weight:600}.create-po-table th.create-po-col-index{color:#fff;vertical-align:middle;padding-top:10px}.create-po-table th.create-po-col-actions,.create-po-table td.create-po-col-actions{text-align:center;vertical-align:top;padding-top:10px}.create-po-table th.create-po-col-actions{vertical-align:middle;padding-top:10px}.create-po-table .table-input,.create-po-table input.table-input,.create-po-table select.table-input{border:1px solid var(--border);width:100%;min-width:0;max-width:100%;height:36px;min-height:36px;max-height:36px;color:var(--text);box-sizing:border-box;background:#fff;border-radius:8px;flex-shrink:0;padding:0 8px;font-size:12.5px;display:block}.create-po-table .table-input-num{text-align:right;font-variant-numeric:tabular-nums}.create-po-order-qty-cell{flex-flow:column;justify-content:flex-start;align-items:stretch;gap:2px;width:100%;min-width:0;max-width:100%;display:flex}.create-po-order-qty-cell .table-input{flex:0 0 36px}.create-po-order-qty-units{min-height:14px;color:var(--brand);white-space:nowrap;text-overflow:ellipsis;text-align:right;font-size:11px;font-weight:600;line-height:1.2;display:block;overflow:hidden}.create-po-table .table-input:focus,.create-po-table select.table-input:focus{border-color:var(--brand-dark);outline:none;box-shadow:0 0 0 3px #0f766e1f}.create-po-table .table-input.has-error,.create-po-table select.table-input.has-error,.create-po-table .autocomplete.has-error .autocomplete-control{border-color:#dc2626;box-shadow:0 0 0 3px #dc26261a}.create-po-cell-autocomplete{min-width:0;max-width:100%}.create-po-cell-autocomplete .autocomplete{width:100%;min-width:0;max-width:100%;display:block}.create-po-cell-autocomplete .autocomplete-control{box-sizing:border-box;background:#fff;border-radius:8px;flex-wrap:nowrap;align-items:center;gap:4px;width:100%;min-width:0;max-width:100%;height:36px;min-height:36px;max-height:36px;padding:0 8px;display:flex}.create-po-cell-autocomplete .autocomplete-control input,.create-po-cell-autocomplete .autocomplete-control input:focus{text-overflow:ellipsis;white-space:nowrap;flex:auto;min-width:0;height:34px;max-height:34px;font-size:12px;overflow:hidden;box-shadow:none!important;background:0 0!important;border:none!important;outline:none!important;padding:0!important}.create-po-table .row-actions{flex-wrap:nowrap;justify-content:center;align-items:center;gap:6px;width:100%;height:36px;display:inline-flex}.create-po-table .row-actions .icon-btn{border-radius:8px;flex:none;width:32px;height:32px}.create-po-table .table-field-error{color:#dc2626;white-space:normal;max-width:100%;margin-top:2px;font-size:10.5px;line-height:1.2;display:block}.create-po-table col.col-index{width:48px}.create-po-table col.col-medicine{width:20%;min-width:180px}.create-po-table col.col-category{width:14%;min-width:130px}.create-po-table col.col-ved{width:11%;min-width:110px}.create-po-table col.col-pack{width:12%;min-width:120px}.create-po-table col.col-qty{width:9%;min-width:96px}.create-po-table col.col-rate{width:12%;min-width:120px}.create-po-table col.col-discount,.create-po-table col.col-free{width:9%;min-width:96px}.create-po-table col.col-actions{width:88px}@media (width<=1280px){.create-po-simple.modal-dialog{width:min(1680px,96vw)}}@media (width<=1100px){.create-po-simple.modal-dialog{width:calc(100vw - 24px);height:calc(100vh - 24px);max-height:calc(100vh - 24px)}}@media (height<=860px){.create-po-simple.modal-dialog{--po-visible-rows:5.5;height:calc(100vh - 20px)}}@media (height<=760px){.create-po-simple.modal-dialog{--po-visible-rows:4.5}.create-po-notes textarea,.create-po-top-notes textarea{height:72px;min-height:70px;max-height:84px}}@media (height<=680px){.create-po-simple.modal-dialog{--po-visible-rows:3.5}}.btn-spinner{animation:.8s linear infinite spin}.toast-viewport{z-index:10000;pointer-events:none;flex-direction:column;gap:8px;width:min(360px,100vw - 32px);display:flex;position:fixed;top:16px;right:16px}.toast{pointer-events:auto;background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:8px;justify-content:space-between;align-items:flex-start;gap:10px;padding:12px 14px;font-size:13px;line-height:1.4;animation:.18s ease-out toast-in;display:flex;box-shadow:0 10px 30px #0f172a1f}.toast-success{background:var(--success-bg);color:var(--success);border-color:#a7f3d0}.toast-error{background:var(--danger-bg);color:var(--danger);border-color:#fecaca}.toast-info{background:var(--info-bg);color:var(--info);border-color:#bfdbfe}.toast-message{flex:1}.toast-dismiss{color:inherit;opacity:.8;cursor:pointer;background:0 0;border:0;padding:0;display:inline-flex}.toast-dismiss:hover{opacity:1}@keyframes toast-in{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}.login-page{--login-brand:#14b8a6;--login-brand-deep:var(--brand);--login-navy:var(--text);isolation:isolate;min-height:100dvh;color:var(--login-navy);background:radial-gradient(52% 46% at 48% 48%,#2dd4bf29,#0000 70%),radial-gradient(38% 32% at 78% 18%,#99f6e447,#0000 68%),linear-gradient(#f7fdfb 0%,#eef8f5 48%,#f4faf8 100%);flex-direction:column;display:flex;position:relative;overflow-x:hidden}.login-canvas{z-index:1;flex:1;grid-template-columns:minmax(280px,430px) minmax(240px,1fr) minmax(360px,430px);align-items:center;gap:clamp(12px,2vw,28px);width:min(1440px,100%);margin:0 auto;padding:clamp(28px,5vh,56px) clamp(20px,4vw,56px) 12px;display:grid;position:relative}.login-scene{z-index:1;pointer-events:none;grid-area:1/2;width:calc(100% + 72px);height:min(640px,72vh);margin-left:-36px;position:relative;overflow:visible}.login-scene-glow{filter:blur(8px);background:radial-gradient(circle,#5eead457 0%,#14b8a61a 42%,#0000 72%);border-radius:50%;width:84%;height:76%;position:absolute;top:12%;left:8%}.login-scene-rings{opacity:.9;width:min(560px,100%);height:min(560px,100%);position:absolute;top:52%;left:50%;transform:translate(-50%,-50%)}.login-scene-ring{transform-origin:320px 330px}.login-scene-item{-webkit-user-select:none;user-select:none;filter:drop-shadow(0 18px 28px #0f172a1f);display:block;position:absolute}.login-scene-bottle{width:min(250px,100%);animation:7s ease-in-out infinite login-float-y;top:46%;left:50%;transform:translate(-50%,-46%)}.login-scene-blister-capsules{width:min(270px,92%);animation:8s ease-in-out infinite login-float-slow;top:8%;left:42%;transform:translate(-50%)rotate(-16deg)}.login-scene-blister-tablets{width:min(230px,78%);animation:9s ease-in-out infinite reverse login-float-y;top:62%;left:6%;transform:rotate(-26deg)}.login-scene-capsule-teal{width:58px;animation:6.5s ease-in-out infinite login-float-x;top:24%;right:2%;transform:rotate(28deg)}.login-scene-capsule-green{width:52px;animation:7.5s ease-in-out infinite reverse login-float-slow;top:42%;left:2%;transform:rotate(-42deg)}.login-scene-tablet-a{width:42px;animation:6s ease-in-out .4s infinite login-float-y;top:68%;right:8%}.login-scene-tablet-b{width:34px;animation:8s ease-in-out .8s infinite login-float-x;top:48%;right:0}.login-scene-capsule-small{width:40px;animation:6.8s ease-in-out .6s infinite login-float-slow;top:12%;left:58%;transform:rotate(55deg)}.login-scene-ring-a{animation:8s ease-in-out infinite login-ring-pulse}.login-scene-ring-b{animation:6.5s ease-in-out infinite reverse login-ring-pulse}.login-scene-ring-c{animation:18s linear infinite login-ring-spin}@keyframes login-float-y{0%,to{translate:0}50%{translate:0 -12px}}@keyframes login-float-x{0%,to{translate:0}50%{translate:8px -8px}}@keyframes login-float-slow{0%,to{translate:0}50%{translate:-6px -10px}}@keyframes login-ring-pulse{0%,to{opacity:.55}50%{opacity:1}}@keyframes login-ring-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes login-rise-in{0%{transform:translateY(10px)}to{transform:translateY(0)}}.login-marketing{z-index:2;grid-area:1/1;max-width:460px;padding-top:8px;animation:.55s login-rise-in;position:relative}.login-brand-logo{align-items:center;gap:12px;margin-bottom:42px;display:flex}.login-brand-logo>.login-brand-mark{color:#fff;background:linear-gradient(145deg, #2dd4bf, var(--brand));border-radius:12px;flex-shrink:0;justify-content:center;align-items:center;width:44px;height:44px;margin:0;padding:0;font-size:0;line-height:0;display:inline-flex;box-shadow:0 8px 20px #0d948847}.login-brand-logo>.login-brand-mark svg{margin:0;display:block}.login-brand-logo strong{letter-spacing:-.03em;color:var(--text);font-size:22px;font-weight:800;line-height:1.1;display:block}.login-brand-logo>div span{color:#64748b;margin-top:2px;font-size:12px;font-weight:500;display:block}.login-brand-heading{letter-spacing:-.04em;color:var(--login-navy);margin:0 0 16px;font-size:clamp(34px,4vw,52px);font-weight:800;line-height:1.12}.login-brand-heading span{color:var(--login-brand-deep);display:block}.login-brand-copy{color:#64748b;max-width:430px;margin:0 0 32px;font-size:15.5px;line-height:1.6}.login-feature-list{flex-direction:column;gap:18px;margin:0;padding:0;list-style:none;display:flex}.login-feature-list li{align-items:flex-start;gap:14px;display:flex}.login-feature-icon{width:42px;height:42px;color:var(--login-brand-deep);background:#ffffffc7;border:1px solid #94a3b847;border-radius:12px;flex-shrink:0;justify-content:center;align-items:center;display:inline-flex;box-shadow:0 4px 12px #0f172a0a}.login-feature-icon svg{display:block}.login-feature-list strong{color:var(--login-navy);font-size:15px;font-weight:700;display:block}.login-feature-list li>div span{color:#64748b;margin-top:2px;font-size:13px;display:block}.login-panel{z-index:2;grid-area:1/3;place-items:center;animation:.6s login-rise-in;display:grid;position:relative}.login-card{background:#fff;border:1px solid #e2e8f0e6;border-radius:24px;flex-direction:column;align-items:stretch;width:min(420px,100%);padding:40px 36px 32px;display:flex;box-shadow:0 28px 80px #0f172a1f,0 8px 24px #0f172a0a}.login-card-icon{width:64px;height:64px;color:var(--brand);background:#e6faf6;border-radius:999px;justify-content:center;align-items:center;margin:0 auto 16px;display:inline-flex;position:relative}.login-card-icon svg{display:block}.login-card h2{text-align:center;letter-spacing:-.03em;color:var(--text);margin:0;font-size:30px;font-weight:800}.login-subtitle{text-align:center;color:#64748b;margin:8px 0 28px;font-size:14px}.login-otp-hint{text-align:center;color:#64748b;margin:-4px 0 0;font-size:13px;line-height:1.45}.login-otp-hint strong{color:#0d9488}.login-otp-meta{flex-direction:column;gap:8px;margin-top:-4px;display:flex}.login-otp-meta .login-otp-hint{margin:0}.login-otp-timer{text-align:center;font-variant-numeric:tabular-nums;letter-spacing:.12em;color:#0d9488;margin:0;font-size:28px;font-weight:800;line-height:1}.login-otp-timer.is-expired{color:#dc2626}.login-form{flex-direction:column;gap:16px;display:flex}.login-field{flex-direction:column;gap:7px;display:flex}.login-field>span{color:var(--text-secondary);font-size:13px;font-weight:650}.login-input-wrap{align-items:center;display:flex;position:relative}.login-input-wrap>svg:first-child{color:var(--text-muted);pointer-events:none;position:absolute;left:14px}.login-input-wrap input{width:100%;height:48px;font:inherit;color:var(--text);background:#fff;border:1.5px solid #e2e8f0;border-radius:10px;outline:none;padding:0 44px 0 42px;font-size:14px;transition:border-color .15s,box-shadow .15s,background .15s}.login-input-wrap input:focus{border-color:#14b8a6;box-shadow:0 0 0 4px #14b8a624}.login-field.is-invalid .login-input-wrap input{border-color:var(--danger);background:var(--danger-bg);box-shadow:0 0 0 3px #ef44441a}.login-field.is-invalid .login-input-wrap>svg:first-child{color:var(--danger)}.login-eye-btn{width:34px;height:34px;color:var(--text-muted);cursor:pointer;background:0 0;border:0;border-radius:8px;place-items:center;display:grid;position:absolute;right:10px}.login-eye-btn:hover{color:var(--brand);background:var(--brand-muted)}.login-row{justify-content:space-between;align-items:center;gap:12px;margin-top:-2px;display:flex}.login-remember{color:#475569;cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;gap:8px;font-size:13.5px;display:inline-flex}.login-remember input{width:16px;height:16px;accent-color:var(--brand)}.login-link{color:var(--brand);font-size:13.5px;font-weight:650;text-decoration:none}.login-link-btn{font:inherit;cursor:pointer;background:0 0;border:0;padding:0}.login-link:hover{text-decoration:underline}.login-submit{color:#fff;background:#14b8a6;border:0;border-radius:12px;justify-content:center;align-items:center;gap:8px;width:100%;height:50px;margin-top:6px;font-size:15px;font-weight:700;transition:transform .15s,box-shadow .15s,filter .15s,background .15s;display:inline-flex;box-shadow:0 10px 22px #0d948842}.login-submit:hover:not(:disabled){background:var(--brand);transform:translateY(-1px);box-shadow:0 14px 28px #0d948852}.login-submit:disabled{opacity:.72;cursor:not-allowed}.login-divider{color:var(--text-muted);align-items:center;gap:12px;margin:18px 0 14px;font-size:12.5px;display:flex}.login-divider:before,.login-divider:after{content:"";background:#e2e8f0;flex:1;height:1px}.login-otp-btn{width:100%;height:48px;color:var(--brand);background:#fff;border:1.5px solid #99f6e4;border-radius:12px;justify-content:center;align-items:center;gap:8px;font-size:14.5px;font-weight:700;text-decoration:none;transition:background .15s,border-color .15s;display:inline-flex}.login-otp-btn:hover{background:var(--brand-muted);border-color:#5eead4}.login-otp-btn.is-disabled{opacity:.55;pointer-events:none}.login-signup{text-align:center;color:#64748b;margin:20px 0 0;font-size:13.5px}.login-page-footer{z-index:1;text-align:center;color:var(--text-muted);padding:8px 16px 22px;font-size:12px;line-height:1.5;position:relative}.login-page-footer p{justify-content:center;align-items:center;gap:6px;margin:0;display:flex}.login-page-footer p+p{margin-top:4px}.login-page-simple{justify-content:center;align-items:center;padding:32px 20px 12px}.login-simple-card{background:#fff;border:1px solid #e2e8f0e6;border-radius:24px;width:min(420px,100%);padding:40px 36px 28px;box-shadow:0 28px 80px #0f172a1f,0 8px 24px #0f172a0a}.login-back-link{width:100%;color:var(--brand);justify-content:center;align-items:center;gap:6px;margin-top:20px;font-size:13.5px;font-weight:650;text-decoration:none;display:inline-flex}.login-back-link:hover{text-decoration:underline}.login-success-note{color:var(--brand-dark);background:#ecfdf5;border:1px solid #d1fae5;border-radius:12px;margin:0;padding:14px 16px;font-size:14px;line-height:1.5}@media (width<=1180px){.login-canvas{grid-template-columns:minmax(240px,1fr) minmax(320px,400px)}.login-scene{opacity:.9;grid-column:auto;height:auto;position:absolute;inset:8% 18% 8% 28%}.login-marketing,.login-panel{grid-column:auto}.login-brand-heading{font-size:clamp(30px,4vw,42px)}}@media (width<=960px){.login-canvas{grid-template-columns:1fr;justify-items:center;padding-top:28px}.login-marketing,.login-panel{grid-area:auto}.login-marketing{text-align:center;max-width:520px}.login-scene{opacity:.28;inset:0}.login-scene-blister-capsules,.login-scene-blister-tablets,.login-scene-capsule-small,.login-scene-tablet-b{display:none}.login-panel{width:100%}.login-card{padding:32px 24px}}@media (width<=640px){.login-page{padding:0}.login-canvas{gap:20px;padding:20px 16px 8px}.login-scene{display:none}.login-brand-logo{margin-bottom:24px}.login-brand-heading{font-size:30px}.login-brand-copy{margin-bottom:20px}.login-card,.login-simple-card{border-radius:20px;padding:28px 18px 24px;box-shadow:0 16px 40px #0f172a14}}@media (prefers-reduced-motion:reduce){.login-scene-item,.login-scene-ring,.login-scene-ring-a,.login-scene-ring-b,.login-scene-ring-c,.login-marketing,.login-panel{animation:none!important}}.add-row-link{color:var(--brand);align-items:center;gap:4px;margin-top:10px;font-size:13px;font-weight:600;display:inline-flex}.add-row-link:hover{color:var(--brand-dark);text-decoration:underline}.notes-section textarea{border:1px solid var(--border);border-radius:var(--radius-sm);width:100%;font:inherit;resize:vertical;background:#fff;outline:none;padding:8px 10px;font-size:13px}.notes-section textarea:focus{border-color:var(--brand);box-shadow:0 0 0 3px #0d94881f}@media (width<=1100px){.po-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.po-form-grid .span-2{grid-column:span 2}.po-main-grid,.po-bottom-grid{grid-template-columns:1fr}}@media (width<=768px){.po-form-grid{grid-template-columns:1fr}.po-form-grid .span-2{grid-column:span 1}}@media (width<=1280px){.stats-row,.filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width<=1024px){.app-shell,.app-shell.sidebar-collapsed{grid-template-columns:minmax(0,1fr)}.sidebar-backdrop{z-index:35;opacity:0;pointer-events:none;background:#11182766;transition:opacity .2s;display:block;position:fixed;inset:0}.app-shell.sidebar-mobile-open .sidebar-backdrop{opacity:1;pointer-events:auto}.sidebar{z-index:40;width:min(var(--sidebar-w), 86vw);max-width:min(var(--sidebar-w), 86vw);height:100vh;box-shadow:none;transition:transform .22s;display:flex;position:fixed;top:0;left:0;transform:translate(-105%)}.app-shell.sidebar-collapsed .sidebar{width:min(var(--sidebar-w), 86vw);max-width:min(var(--sidebar-w), 86vw);box-shadow:none;z-index:40}.app-shell.sidebar-mobile-open .sidebar{transform:translate(0);box-shadow:8px 0 32px #0f172a2e}body:has(.app-shell.sidebar-mobile-open){overflow:hidden}.stats-row{grid-template-columns:repeat(2,minmax(0,1fr))}.filter-grid{grid-template-columns:1fr 1fr}.page-header{flex-direction:column}.global-search{display:none}.topbar{gap:10px;padding:0 12px;display:flex}.topbar-right{margin-left:auto}}@media (width<=900px){.stats-row{grid-template-columns:repeat(2,minmax(0,1fr))}.filter-grid{grid-template-columns:1fr 1fr}}.medicine-page{flex-direction:column;flex:auto;gap:14px;min-height:0;display:flex;overflow:hidden}.medicine-stats-row{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;display:grid}.medicine-stat-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-sm);align-items:center;gap:12px;min-height:78px;padding:14px;display:flex}.medicine-stat-icon{border-radius:12px;flex-shrink:0;place-items:center;width:42px;height:42px;display:grid}.medicine-stat-icon.purple{color:#7c3aed;background:#f3e8ff}.medicine-stat-icon.teal{background:var(--brand-soft);color:var(--brand)}.medicine-stat-icon.amber{background:var(--pending-bg);color:var(--pending)}.medicine-stat-icon.blue{background:var(--partial-bg);color:var(--partial)}.medicine-stat-icon.green{background:var(--received-bg);color:var(--received)}.medicine-stat-meta{flex-direction:column;gap:4px;min-width:0;display:flex}.medicine-stat-label{color:var(--text-muted);font-size:12px;font-weight:500}.medicine-stat-value{letter-spacing:-.03em;font-size:22px;font-weight:700;line-height:1.1}.medicine-filter-toolbar{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-sm);padding:12px 14px}.medicine-filter-header{width:100%;min-width:0;max-width:760px;position:relative}.medicine-filter-main{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.medicine-filter-main .facility-header-filter-select.filter-autocomplete{flex:0 170px;width:170px;min-width:150px;max-width:210px}.medicine-filter-main .facility-header-filter-select .autocomplete-control{height:38px;min-height:38px;padding:0 10px}.medicine-search{flex:320px}.medicine-filter-panel{border-top:1px solid var(--border);margin-top:12px;padding-top:12px}.medicine-filter-panel-popover{z-index:40;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-md,0 10px 28px #0f172a1f);margin-top:0;padding:12px 14px;position:absolute;top:calc(100% + 8px);left:0;right:0}.medicine-table-toolbar{padding:12px 16px}.medicine-total-count{color:var(--text-secondary);font-size:13px}.medicine-table-wrap{max-height:min(62vh,720px);overflow:auto}.medicine-table thead th{z-index:2;background:#f9fafb;position:sticky;top:0}.medicine-name-cell{align-items:center;gap:10px;min-width:0;display:flex}.medicine-name-link{white-space:nowrap;text-overflow:ellipsis;text-align:center;max-width:100%;overflow:hidden}.medicine-pill-icon{border-radius:8px;flex-shrink:0;place-items:center;width:30px;height:30px;display:grid}.medicine-pill-icon.purple{color:#7c3aed;background:#f3e8ff}.medicine-pill-icon.teal{background:var(--brand-soft);color:var(--brand)}.medicine-pill-icon.blue{color:#2563eb;background:#dbeafe}.medicine-pill-icon.amber{color:#d97706;background:#fef3c7}.medicine-pill-icon.green{color:#059669;background:#d1fae5}.medicine-pill-icon.rose{color:#e11d48;background:#ffe4e6}.category-badge{border-radius:999px;align-items:center;padding:3px 10px;font-size:11.5px;font-weight:600;display:inline-flex}.category-badge.tone-purple{color:#7c3aed;background:#f3e8ff}.category-badge.tone-teal{background:var(--brand-soft);color:var(--brand-dark)}.category-badge.tone-blue{color:#1d4ed8;background:#dbeafe}.category-badge.tone-amber{color:#c2410c;background:#ffedd5}.category-badge.tone-green{color:#047857;background:#d1fae5}.category-badge.tone-rose{color:#be123c;background:#ffe4e6}.medicine-status-badge{border-radius:999px;align-items:center;padding:3px 10px;font-size:11.5px;font-weight:700;display:inline-flex}.medicine-status-badge.active{color:#047857;background:#d1fae5}.medicine-status-badge.inactive{color:#b91c1c;background:#fee2e2}.icon-only-btn{padding:8px 10px}.app-tooltip{z-index:5000;background:var(--brand-dark);color:#fff;max-width:min(260px,100vw - 16px);font-family:var(--font);letter-spacing:.01em;text-align:center;box-shadow:var(--shadow-md);pointer-events:none;white-space:nowrap;border-radius:6px;padding:6px 10px;font-size:12px;font-weight:600;line-height:1.35;position:fixed}.app-tooltip-anchor{vertical-align:middle;justify-content:center;align-items:center;display:inline-flex}.filter-field>.app-tooltip-anchor,.form-field>.app-tooltip-anchor,.input-with-counter>.app-tooltip-anchor,.grn-header-field>.app-tooltip-anchor,td.col-num>.app-tooltip-anchor{justify-content:stretch;width:100%;display:block}.filter-field>.app-tooltip-anchor>input,.filter-field>.app-tooltip-anchor>select,.form-field>.app-tooltip-anchor>input,.form-field>.app-tooltip-anchor>select,.input-with-counter>.app-tooltip-anchor>input,.grn-header-field>.app-tooltip-anchor>input,td.col-num>.app-tooltip-anchor>input{box-sizing:border-box;width:100%}.app-tooltip-anchor>.icon-btn:disabled,.app-tooltip-anchor>button:disabled,.app-tooltip-anchor>input:disabled,.app-tooltip-anchor>select:disabled{pointer-events:none}.app-tooltip:after{content:"";left:var(--tooltip-arrow-left,50%);background:var(--brand-dark);width:8px;height:8px;position:absolute;transform:translate(-50%)rotate(45deg)}.app-tooltip--top:after{bottom:-4px}.app-tooltip--bottom:after{top:-4px}.page-ellipsis{color:var(--text-muted);padding:0 4px}.medicine-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:16px;display:grid}.medicine-grid-card{border:1px solid var(--border);background:#fafafa;border-radius:10px;flex-direction:column;gap:8px;padding:14px;display:flex}.medicine-grid-card h3{margin:0;font-size:14px}.medicine-grid-card p{color:var(--text-muted);margin:0;font-size:12px}.medicine-grid-top{justify-content:space-between;align-items:center;display:flex}.medicine-grid-actions{gap:4px;margin-top:4px;display:flex}.medicine-empty{grid-column:1/-1}.medicine-table-section.is-fullscreen{background:#fff;padding:16px}.add-medicine-modal.modal-dialog,.view-medicine-modal.modal-dialog,.medicine-details-modal.modal-dialog{flex-direction:column;width:min(95vw,1280px);max-height:90vh;display:flex}.medicine-details-modal.modal-dialog{width:min(95vw,1500px)}.add-medicine-header{z-index:3;background:#fff;flex-shrink:0;align-items:center;position:sticky;top:0}.add-medicine-header h2{color:var(--text);margin:0;font-size:1.25rem;font-weight:700;line-height:1.2}.modal-subtitle{color:var(--text-muted);margin:6px 0 0;font-size:13px;line-height:1.45}.add-medicine-form{flex-direction:column;flex:1;min-height:0;display:flex}.add-medicine-body{overflow-anchor:none;background:#f8fafc;flex-direction:column;flex:1;gap:24px;min-height:0;padding:16px 20px 20px;display:flex;overflow-y:auto}.add-medicine-footer{z-index:2;border-top:1px solid var(--border);background:#fff;flex-wrap:wrap;flex-shrink:0;justify-content:space-between;gap:12px;position:sticky;bottom:0}.add-medicine-footer-actions{flex-wrap:wrap;gap:10px;margin-left:auto;display:flex}.medicine-top-pharmacy{width:100%;max-width:260px;margin:0}.medicine-top-pharmacy select{width:100%}.medicine-form-card{border:1px solid var(--border);box-shadow:var(--shadow-sm);background:#fff;border-radius:10px;padding:16px}.medicine-card-compact{padding:12px 14px}.medicine-form-section{margin-bottom:22px}.medicine-form-section-title{align-items:center;gap:10px;margin-bottom:14px;display:flex}.medicine-form-section-title h3{color:var(--brand);margin:0;font-size:15px;font-weight:700}.medicine-form-section-icon{background:color-mix(in srgb, var(--brand) 12%, white);width:28px;height:28px;color:var(--brand);border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;display:inline-flex;position:relative}.medicine-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.medicine-grid-fit{flex-wrap:wrap;align-items:flex-start;gap:12px;display:flex}.medicine-grid-fit>.filter-field{flex:0 auto;min-width:0}.medicine-grid-info{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;width:100%;display:grid}.medicine-grid-composition{grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;width:100%;display:grid}.medicine-grid-info>.filter-field,.medicine-grid-composition>.filter-field{flex:unset;width:auto;max-width:none}.medicine-field-sm{width:140px;max-width:100%}.medicine-field-md{width:180px;max-width:100%}.medicine-field-lg{width:220px;max-width:100%}.medicine-grid-5{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;display:grid}.medicine-grid-4{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;display:grid}.medicine-grid-3{grid-template-columns:repeat(3,minmax(0,1fr));align-items:end;gap:12px;display:grid}.medicine-grid-2{grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:12px;display:grid}.medicine-grid-follow{margin-top:12px}.medicine-grid-compliance{grid-template-columns:repeat(5,minmax(0,1fr));align-items:end;gap:12px;width:100%;display:grid}.medicine-flag-option{border:1px solid var(--border);cursor:pointer;width:100%;height:40px;min-height:40px;color:var(--text,#374151);box-shadow:none;background:#fff;border-radius:8px;align-items:center;gap:8px;margin:0;padding:0 10px;display:flex}.medicine-flag-option span{flex-direction:column;justify-content:center;gap:0;min-width:0;display:flex}.medicine-flag-option strong{align-items:center;gap:4px;font-size:13px;font-weight:500;line-height:1.2;display:inline-flex}.medicine-flag-option small{display:none}.medicine-flag-option input{accent-color:var(--brand);box-shadow:none;-webkit-tap-highlight-color:transparent;outline:none;flex-shrink:0;margin:0}.medicine-flag-option input:focus,.medicine-flag-option input:focus-visible,.medicine-flag-option input:checked:focus,.medicine-flag-option input:checked:focus-visible{box-shadow:none!important;outline:none!important}.medicine-flag-option.is-active{border-color:var(--border);color:var(--text);background:#fff}.medicine-flag-option:hover{border-color:var(--border-strong)}.medicine-flag-option:focus-within{border-color:var(--border);box-shadow:none}.medicine-split-row{align-items:stretch;gap:16px;display:grid}.medicine-split-70-30{grid-template-columns:minmax(0,7fr) minmax(0,3fr)}.medicine-split-equal{grid-template-columns:repeat(2,minmax(0,1fr))}.medicine-split-notes-status{grid-template-columns:repeat(2,minmax(0,1fr));width:100%;max-width:none}.medicine-split-row>.medicine-form-card{flex-direction:column;height:100%;display:flex}.medicine-notes-compact textarea{min-height:72px}.medicine-status-compact{gap:8px}.medicine-status-compact .medicine-status-option{padding:10px 12px}.medicine-inventory-stack{flex-direction:column;flex:1;gap:12px;display:flex}.medicine-inventory-stack .filter-field{width:100%}.medicine-field-label{color:var(--text-secondary);align-items:center;gap:6px;margin-bottom:8px;font-size:12.5px;font-weight:600;display:inline-flex}.medicine-inline-check{border:1px solid var(--border);cursor:pointer;min-height:40px;color:var(--text);background:#fafafa;border-radius:8px;align-items:flex-start;gap:8px;padding:10px 12px;font-size:13px;line-height:1.35;display:inline-flex}.medicine-inline-check input{accent-color:var(--brand);flex-shrink:0;margin-top:2px}.medicine-color-input{border:1px solid var(--border);background:#fff;border-radius:8px;align-items:center;gap:8px;min-height:40px;padding:0 8px 0 10px;display:flex;position:relative}.medicine-color-input:focus-within{border-color:var(--brand);box-shadow:0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent)}.medicine-color-swatch{border:1px solid var(--border-strong);border-radius:4px;flex-shrink:0;width:22px;height:22px}.medicine-color-input input[type=text]{min-width:0;box-shadow:none;background:0 0;border:none;flex:1;padding:8px 0}.medicine-color-input input[type=text]:focus{box-shadow:none;outline:none}.medicine-color-picker-btn{width:28px;height:28px;color:var(--text-muted);cursor:pointer;background:0 0;border:none;border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}.medicine-color-picker-btn:hover:not(:disabled){color:var(--brand);background:#f3f4f6}.medicine-color-native{opacity:0;pointer-events:none;width:0;height:0;position:absolute}.input-with-action{position:relative}.input-with-action input{width:100%;padding-right:40px}.input-action-btn,.input-action-icon{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:inline-flex;position:absolute;top:50%;right:8px;transform:translateY(-50%)}.input-action-btn:hover:not(:disabled){color:var(--brand);background:#f3f4f6}.input-action-btn:disabled{opacity:.6;cursor:not-allowed}.input-action-icon{pointer-events:none}.filter-field input.has-error,.filter-field select.has-error,.filter-field textarea.has-error{border-color:var(--danger);box-shadow:0 0 0 3px #ef44441f}.field-hint{color:var(--text-muted);margin-top:4px;font-size:11.5px;display:block}.medicine-info-banner{color:#1e40af;background:#eff6ff;border-radius:10px;align-items:flex-start;gap:10px;margin-top:14px;padding:12px 14px;font-size:13px;line-height:1.45;display:flex}.medicine-info-banner svg{flex-shrink:0;margin-top:1px}.medicine-config-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:16px;display:grid}.medicine-check-card{border:1px solid var(--border);cursor:pointer;background:#fafafa;border-radius:10px;align-items:flex-start;gap:10px;padding:12px 14px;display:flex}.medicine-check-card input{accent-color:var(--brand);margin-top:3px}.medicine-check-card strong{color:var(--text);font-size:13.5px;display:block}.medicine-check-card small{color:var(--text-muted);margin-top:2px;font-size:12px;line-height:1.4;display:block}.medicine-status-field{flex:1;max-width:none}.medicine-status-radios{flex-wrap:wrap;gap:10px;display:flex}.medicine-status-option{border:1px solid var(--border);cursor:pointer;color:var(--text,#374151);background:#fff;border-radius:999px;align-items:center;gap:8px;padding:8px 14px;font-size:13.5px;display:inline-flex}.medicine-status-option input{accent-color:var(--brand);box-shadow:none;outline:none}.medicine-status-option input:focus,.medicine-status-option input:focus-visible{box-shadow:none!important;outline:none!important}.medicine-status-option.is-active{border-color:color-mix(in srgb, var(--brand) 45%, white);background:color-mix(in srgb, var(--brand) 8%, white);color:var(--brand);font-weight:600}.medicine-status-option.is-inactive{background:var(--danger-bg);color:#b91c1c;border-color:#fecaca;font-weight:600}.medicine-notes-wrap{position:relative}.medicine-notes-wrap textarea{resize:vertical;border:1px solid var(--border);width:100%;min-height:120px;font:inherit;color:var(--text);background:#fff;border-radius:8px;padding:10px 12px 28px;font-size:13.5px}.medicine-notes-wrap.medicine-notes-compact textarea{min-height:72px}.medicine-notes-wrap textarea:focus{border-color:var(--brand);box-shadow:0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);outline:none}.medicine-notes-counter{color:var(--text-muted);font-size:11.5px;position:absolute;bottom:8px;right:10px}.add-medicine-skeleton-block{margin-bottom:22px}.add-medicine-skeleton .skeleton-grid{grid-template-columns:1fr 1fr 1fr;gap:12px;margin-top:12px;display:grid}.skeleton-line{background:linear-gradient(90deg, #f3f4f6 25%, var(--border) 50%, #f3f4f6 75%);background-size:200% 100%;border-radius:8px;height:36px;animation:1.2s ease-in-out infinite medicine-skeleton}.skeleton-line.w-40{width:40%;height:18px}.skeleton-line.w-60{width:60%;height:20px}.skeleton-avatar{background:linear-gradient(90deg, #f3f4f6 25%, var(--border) 50%, #f3f4f6 75%);background-size:200% 100%;border-radius:12px;flex-shrink:0;width:44px;height:44px;animation:1.2s ease-in-out infinite medicine-skeleton}@keyframes medicine-skeleton{0%{background-position:200% 0}to{background-position:-200% 0}}.view-medicine-header{align-items:flex-start}.view-medicine-title-block{flex:1;align-items:flex-start;gap:14px;min-width:0;padding-right:8px;display:flex}.view-medicine-icon{color:#7c3aed;background:#ede9fe;border-radius:12px;flex-shrink:0;justify-content:center;align-items:center;width:44px;height:44px;display:inline-flex}.view-medicine-title-row{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.view-medicine-title-row h2{margin:0;font-size:18px;line-height:1.3}.view-medicine-meta{color:var(--text-muted);flex-wrap:wrap;align-items:center;gap:6px;margin:6px 0 0;font-size:13px;display:flex}.view-medicine-meta .meta-sep{opacity:.5}.view-medicine-body{flex:1;min-height:0;overflow-y:auto}.view-medicine-grid{grid-template-columns:1fr 1fr;gap:8px 28px;display:grid}.view-medicine-section{border-bottom:1px solid #f3f4f6;margin-bottom:22px;padding-bottom:4px}.view-medicine-section:last-child{border-bottom:none;margin-bottom:0}.view-medicine-section h3{color:var(--text);margin:0 0 14px;font-size:14px;font-weight:700}.medicine-detail-row{grid-template-columns:148px minmax(0,1fr);align-items:start;gap:10px;margin-bottom:12px;display:grid}.medicine-detail-row .muted-label{color:var(--text-muted);padding-top:2px;font-size:12.5px}.medicine-detail-value{color:var(--text);word-break:break-word;font-size:13.5px;font-weight:600}.medicine-category-pill{color:#7e22ce;background:#f3e8ff;border-radius:999px;align-items:center;padding:3px 10px;font-size:12px;font-weight:600;display:inline-flex}.medicine-detail-status.active{color:#15803d}.medicine-detail-status.inactive{color:#b91c1c}.medicine-yesno-badge{border-radius:999px;align-items:center;padding:2px 10px;font-size:12px;font-weight:600;display:inline-flex}.medicine-yesno-badge.yes{color:#15803d;background:#dcfce7}.medicine-yesno-badge.no{color:#b91c1c;background:#fee2e2}.view-medicine-footer{gap:12px}.view-medicine-footer .btn-primary{margin-left:auto}.view-medicine-header-skeleton{flex:1;align-items:center;gap:14px;display:flex}.view-medicine-header-skeleton-text{flex:1;gap:8px;display:grid}.view-medicine-skeleton{grid-template-columns:1fr 1fr;gap:24px;display:grid}.view-medicine-skeleton-col{gap:10px;display:grid}.medicine-details-modal.modal-dialog{background:#fff;border-radius:18px;flex-direction:column;width:min(95vw,1500px);max-width:min(95vw,1500px);max-height:90vh;display:flex;position:relative}.medicine-details-header{background:#fff;border-bottom:1px solid #eef2f7;flex-shrink:0;align-items:center;gap:16px;padding:18px 48px 16px 22px}.medicine-details-header-main{flex:1;align-items:center;gap:14px;min-width:0;display:flex}.medicine-details-header-icon{color:#7c3aed;background:#ede9fe;border-radius:12px;flex-shrink:0;justify-content:center;align-items:center;width:42px;height:42px;display:inline-flex}.medicine-details-header h2{color:var(--text);margin:0;font-size:1.15rem;font-weight:700;line-height:1.2}:is(.medicine-details-modal .medicine-details-close,.medicine-details-modal .app-tooltip-anchor:has(.medicine-details-close)){z-index:2;position:absolute;top:14px;right:14px}.medicine-details-modal .app-tooltip-anchor:has(.medicine-details-close){display:inline-flex}.medicine-details-close{width:32px;height:32px;box-shadow:none;color:var(--text-muted);cursor:pointer;background:0 0;border:none;border-radius:0;flex-shrink:0;justify-content:center;align-items:center;margin:0;padding:0;transition:color .15s;display:inline-flex}.medicine-details-close:hover{color:var(--text);background:0 0;border:none}.medicine-details-body{background:#fff;flex:1;min-height:0;padding:18px 22px;overflow-y:auto}.medicine-details-footer{background:#fff;border-top:1px solid #eef2f7;flex-shrink:0;justify-content:flex-end;gap:10px;padding:12px 22px}.medicine-details-layout{display:block}.medicine-details-sidebar{background:#fff;border:1px solid #e8edf5;border-radius:16px;flex-direction:column;gap:12px;padding:14px;display:flex;position:sticky;top:0;box-shadow:0 1px 2px #1018280a}.medicine-details-image{aspect-ratio:1.2;background:linear-gradient(165deg,#f3e8ff 0%,#ede9fe 45%,#e0e7ff 100%);border:1px solid #e9e0ff;border-radius:14px;justify-content:center;align-items:center;display:flex;overflow:hidden}.medicine-details-image-art{width:140px;height:90px;position:relative}.medicine-details-capsule{background:linear-gradient(90deg,#a78bfa 0 50%,#fff 50% 100%);border-radius:999px;width:92px;height:36px;position:absolute;top:22px;left:8px;transform:rotate(-18deg);box-shadow:0 8px 16px #7c3aed38,inset 0 1px #ffffff8c}.medicine-details-tablet{background:radial-gradient(circle at 35% 30%,#fff 0%,#f8fafc 42%,#e2e8f0 100%);border-radius:50%;width:54px;height:54px;position:absolute;bottom:8px;right:10px;box-shadow:0 8px 14px #0f172a1f,inset 0 0 0 1px #94a3b859}.medicine-details-sidebar-heading{padding:0 2px}.medicine-details-name{color:var(--text);word-break:break-word;margin:0;font-size:1.05rem;font-weight:700;line-height:1.35}.medicine-details-category{color:#7c3aed;margin:4px 0 0;font-size:13px;font-weight:600}.medicine-details-quick-list{gap:12px;margin:4px 0 0;padding:0;list-style:none;display:grid}.medicine-details-quick-list li{color:#8b5cf6;align-items:flex-start;gap:10px;display:flex}.medicine-details-quick-list span{color:var(--text-muted);margin-bottom:2px;font-size:11px;font-weight:500;display:block}.medicine-details-quick-list strong{color:var(--text);word-break:break-word;font-size:13px;font-weight:600;display:block}.medicine-details-status-card{border:1px solid #0000;border-radius:12px;align-items:flex-start;gap:10px;margin-top:auto;padding:12px;display:flex}.medicine-details-status-card.is-active{color:#047857;background:#ecfdf5;border-color:#a7f3d0}.medicine-details-status-card.is-inactive{border-color:var(--border);color:var(--text-muted);background:#f3f4f6}.medicine-details-status-dot{background:currentColor;border-radius:999px;flex-shrink:0;width:10px;height:10px;margin-top:4px}.medicine-details-status-card strong{color:inherit;margin-bottom:2px;font-size:13px;display:block}.medicine-details-status-card small{color:inherit;opacity:.9;font-size:12px;line-height:1.4;display:block}.medicine-details-main{gap:14px;min-width:0;display:grid}.medicine-details-top-row{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:14px;display:grid}.medicine-details-mid-row{grid-template-columns:minmax(0,1.7fr) minmax(220px,.85fr);align-items:stretch;gap:14px;display:grid}.medicine-details-bottom-row{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:14px;display:grid}.medicine-details-card{background:#fff;border:1px solid #e8edf5;border-radius:14px;min-width:0;padding:14px 16px 16px;box-shadow:0 1px 2px #1018280a}.medicine-details-card-title{align-items:center;gap:10px;margin-bottom:12px;display:flex}.medicine-details-card-title h3{margin:0;font-size:14px;font-weight:700}.medicine-details-card-icon{border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;width:28px;height:28px;display:inline-flex}.medicine-details-card-body{gap:9px;display:grid}.medicine-details-card--blue .medicine-details-card-title h3,.medicine-details-card--blue .medicine-details-card-icon{color:#2563eb}.medicine-details-card--blue .medicine-details-card-icon{background:#dbeafe}.medicine-details-card--green .medicine-details-card-title h3,.medicine-details-card--green .medicine-details-card-icon{color:#059669}.medicine-details-card--green .medicine-details-card-icon{background:#d1fae5}.medicine-details-card--orange .medicine-details-card-title h3,.medicine-details-card--orange .medicine-details-card-icon{color:#ea580c}.medicine-details-card--orange .medicine-details-card-icon{background:#ffedd5}.medicine-details-card--purple .medicine-details-card-title h3,.medicine-details-card--purple .medicine-details-card-icon{color:#7c3aed}.medicine-details-card--purple .medicine-details-card-icon{background:#ede9fe}.medicine-details-card--navy .medicine-details-card-title h3,.medicine-details-card--navy .medicine-details-card-icon{color:#1d4ed8}.medicine-details-card--navy .medicine-details-card-icon{background:#dbeafe}.medicine-details-card--pink .medicine-details-card-title h3,.medicine-details-card--pink .medicine-details-card-icon{color:#db2777}.medicine-details-card--pink .medicine-details-card-icon{background:#fce7f3}.medicine-details-card--teal .medicine-details-card-title h3,.medicine-details-card--teal .medicine-details-card-icon{color:var(--brand-dark)}.medicine-details-card--teal .medicine-details-card-icon{background:var(--brand-soft)}.medicine-details-row{grid-template-columns:minmax(118px,46%) 10px minmax(0,1fr);align-items:start;gap:4px;min-width:0;display:grid}.medicine-details-label{color:var(--text-muted);font-size:12.5px;font-weight:500;line-height:1.45}.medicine-details-colon{color:var(--text-muted);text-align:center;font-size:12.5px;font-weight:500;line-height:1.45}.medicine-details-value{color:var(--text);word-break:break-word;min-width:0;font-size:12.5px;font-weight:600;line-height:1.45}.medicine-details-pharmacy-cols{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:18px 24px;display:grid}.medicine-details-pharmacy-cols>div{gap:9px;min-width:0;display:grid}.medicine-details-card--pharmacy .medicine-details-row{grid-template-columns:minmax(120px,52%) 10px minmax(0,1fr)}.medicine-details-card--inventory .medicine-details-row{grid-template-columns:minmax(130px,58%) 10px minmax(0,1fr)}.medicine-ved-badge{letter-spacing:.02em;border-radius:5px;justify-content:center;align-items:center;min-width:22px;height:22px;padding:0 6px;font-size:11px;font-weight:700;line-height:1;display:inline-flex}.medicine-ved-badge--vital{color:#fff;background:#059669}.medicine-ved-badge--essential{color:#fff;background:#ea580c}.medicine-ved-badge--desirable{color:#fff;background:#dc2626}.medicine-ved-badge--default{background:var(--border);color:#374151}.medicine-bool-yes,.medicine-bool-no{align-items:center;gap:5px;font-weight:600;display:inline-flex}.medicine-bool-yes{color:#059669}.medicine-bool-no{color:#dc2626}.medicine-details-color{align-items:center;gap:8px;display:inline-flex}.medicine-details-color-swatch{border:1px solid #0000001f;border-radius:3px;flex-shrink:0;width:14px;height:14px}.medicine-details-user{align-items:center;gap:6px;display:inline-flex}.medicine-details-user-avatar{background:var(--border);width:18px;height:18px;color:var(--text-secondary);border-radius:999px;flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}.medicine-details-status-options{gap:10px;display:grid}.medicine-details-status-option{border:1.5px solid var(--border);opacity:.72;background:#fff;border-radius:12px;align-items:flex-start;gap:12px;padding:12px 14px;display:flex}.medicine-details-status-option strong{color:var(--text);margin-bottom:2px;font-size:13.5px;display:block}.medicine-details-status-option small{color:var(--text-muted);font-size:12px;line-height:1.4;display:block}.medicine-details-status-option.is-selected{opacity:1}.medicine-details-status-option.is-selected.is-active{background:#ecfdf5;border-color:#34d399}.medicine-details-status-option.is-selected.is-inactive{border-color:var(--text-muted);background:#f3f4f6}.medicine-details-radio{width:18px;height:18px;color:var(--border-strong);flex-shrink:0;justify-content:center;align-items:center;margin-top:1px;display:inline-flex}.medicine-details-status-option.is-selected.is-active .medicine-details-radio{color:#10b981}.medicine-details-status-option.is-selected.is-inactive .medicine-details-radio{color:var(--text-muted)}.medicine-details-skeleton{display:block}.medicine-details-skeleton-right{gap:12px;display:grid}.medicine-details-skel-top{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;display:grid}.medicine-details-skel-mid{grid-template-columns:1.7fr .85fr;gap:14px;display:grid}.medicine-details-skel-card{background:#fff;border:1px solid #e8edf5;border-radius:14px;gap:10px;padding:16px;display:grid}.medicine-details-error{text-align:center;min-height:280px;color:var(--text-muted);background:#fff;border:1px solid #e8edf5;border-radius:14px;flex-direction:column;justify-content:center;align-items:center;gap:10px;padding:32px 20px;display:flex}.medicine-details-error h3{color:var(--text);margin:0;font-size:1.05rem}.medicine-details-error p{max-width:420px;margin:0 0 8px}@media (width<=1280px){.medicine-details-top-row,.medicine-details-mid-row,.medicine-details-bottom-row,.medicine-details-skel-top,.medicine-details-skel-mid,.medicine-details-pharmacy-cols{grid-template-columns:1fr}}@media (width<=1100px){.medicine-details-layout,.medicine-details-skeleton{display:block}}@media (width<=640px){.medicine-details-header{padding-left:14px;padding-right:44px}.medicine-details-body,.medicine-details-footer{padding-left:14px;padding-right:14px}.medicine-details-row{grid-template-columns:minmax(110px,48%) 10px minmax(0,1fr)}}@media (width<=1439px){.add-medicine-body{gap:20px;padding:14px 16px 16px}.medicine-grid-5{gap:10px}.medicine-field-lg{width:200px}.medicine-field-md{width:160px}.medicine-field-sm{width:130px}}@media (width<=1100px){.medicine-grid-5,.medicine-grid-4,.medicine-grid-3,.medicine-grid-info,.medicine-grid-composition{grid-template-columns:repeat(2,minmax(0,1fr))}.medicine-split-70-30,.medicine-split-equal,.medicine-split-notes-status{grid-template-columns:1fr;max-width:none}.medicine-grid-compliance{grid-template-columns:repeat(2,minmax(0,1fr))}.medicine-field-sm,.medicine-field-md,.medicine-field-lg{width:calc(50% - 6px);max-width:none}.medicine-grid-info>.filter-field,.medicine-grid-composition>.filter-field{width:auto}}@media (width<=900px){.add-medicine-modal.modal-dialog,.view-medicine-modal.modal-dialog{width:min(96vw,720px)}.medicine-form-grid,.medicine-config-row,.medicine-grid-5,.medicine-grid-4,.medicine-grid-3,.medicine-grid-2,.medicine-grid-info,.medicine-grid-composition,.medicine-grid-compliance,.medicine-split-70-30,.medicine-split-equal,.medicine-split-notes-status,.view-medicine-grid,.view-medicine-skeleton,.add-medicine-skeleton .skeleton-grid{grid-template-columns:1fr;max-width:none}.medicine-field-sm,.medicine-field-md,.medicine-field-lg,.medicine-top-pharmacy{width:100%;max-width:none}.medicine-detail-row{grid-template-columns:1fr;gap:4px}}@media (width<=640px){.add-medicine-footer{flex-direction:column-reverse;align-items:stretch}.add-medicine-footer-actions{width:100%;margin-left:0}.add-medicine-footer-actions .btn,.add-medicine-footer>.btn,.view-medicine-footer .btn{justify-content:center;width:100%}.view-medicine-footer{flex-direction:column-reverse}.view-medicine-footer .btn-primary{margin-left:0}}.add-medicine-note{color:var(--text-muted);margin:14px 0 0;font-size:12.5px;line-height:1.5}@media (width<=1280px){.medicine-stats-row{grid-template-columns:repeat(3,minmax(0,1fr))}.medicine-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.medicine-mobile-cards{display:none}@media (width<=900px){.medicine-stats-row{grid-template-columns:1fr 1fr}.medicine-filter-main{flex-direction:column;align-items:stretch}.medicine-grid{grid-template-columns:1fr}.medicine-table-wrap{display:none}.medicine-mobile-cards{display:grid}}.category-stats-row{grid-template-columns:repeat(4,minmax(0,1fr))}.medicine-stat-hint{color:var(--text-muted);margin-top:2px;font-size:11px;font-weight:500;display:block}.category-name-cell{align-items:center;gap:10px;min-width:0;display:flex}.category-name-cell strong{color:var(--text);font-size:13.5px}.category-avatar{border-radius:999px;flex-shrink:0;justify-content:center;align-items:center;width:30px;height:30px;display:inline-flex}.category-avatar.teal{background:var(--brand-soft);color:var(--brand)}.category-avatar.blue{color:#2563eb;background:#dbeafe}.category-avatar.purple{color:#7c3aed;background:#f3e8ff}.category-avatar.amber{color:#d97706;background:#fef3c7}.category-avatar.rose{color:#e11d48;background:#ffe4e6}.category-avatar.green{color:#16a34a;background:#dcfce7}.category-avatar.orange{color:#ea580c;background:#ffedd5}.category-avatar.indigo{color:#4f46e5;background:#e0e7ff}.category-code-badge{color:var(--text-secondary);letter-spacing:.02em;background:#f3f4f6;border-radius:6px;align-items:center;padding:2px 8px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:12px;font-weight:600;display:inline-flex}.category-description-cell{max-width:280px;color:var(--text-muted);white-space:nowrap;text-overflow:ellipsis;font-size:13px;overflow:hidden}.category-table .col-actions{width:110px}.category-table thead th{z-index:1;background:#f9fafb;position:sticky;top:0}.category-more-btn{display:none}.add-category-modal.modal-dialog{border-radius:16px;flex-direction:column;width:min(520px,100vw - 32px);max-width:min(520px,100vw - 32px);max-height:min(90vh,720px);display:flex}.add-category-form{flex-direction:column;flex:1;min-height:0;display:flex}.add-category-body{overflow-anchor:none;background:#fff;flex-direction:column;flex:1;gap:14px;min-height:0;padding:16px 20px 18px;display:flex;overflow-y:auto}.add-category-footer{background:#fff;border-top:1px solid #eef2f7;flex-shrink:0;justify-content:flex-end;gap:10px;padding:12px 20px}.add-category-footer .btn-primary{margin-left:0}.category-mobile-cards{gap:12px;padding:4px 0 12px;display:none}.category-mobile-card{border:1px solid var(--border);background:#fff;border-radius:12px;gap:10px;padding:14px;display:grid}.category-mobile-card.is-loading{min-height:110px}.category-mobile-top{justify-content:space-between;align-items:flex-start;gap:10px;display:flex}.category-mobile-card p{color:var(--text-muted);margin:0;font-size:13px;line-height:1.45}.category-mobile-meta{color:var(--text-muted);justify-content:space-between;align-items:center;gap:8px;font-size:12px;display:flex}.category-mobile-card .category-name-cell{align-items:flex-start}.category-mobile-card .category-name-cell>div{gap:4px;display:grid}@media (width<=1280px){.category-stats-row{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=900px){.category-table-wrap{display:none}.category-mobile-cards{display:grid}.category-stats-row{grid-template-columns:1fr 1fr}.add-category-modal.modal-dialog{width:min(100%,100vw - 24px);max-width:min(100%,100vw - 24px);max-height:min(92vh,900px)}.add-category-footer{flex-wrap:wrap}.add-category-footer .btn{flex:auto;justify-content:center}}@media (width<=640px){.category-stats-row{grid-template-columns:1fr}}.pack-stats-row{grid-template-columns:repeat(3,minmax(0,1fr))}.pack-table thead th{z-index:1;background:#f9fafb;position:sticky;top:0}.pack-table .col-actions{width:96px}.add-pack-modal.modal-dialog{border-radius:16px;flex-direction:column;width:min(520px,100vw - 32px);max-width:min(520px,100vw - 32px);max-height:min(90vh,720px);display:flex}.add-pack-header{border-bottom:1px solid #eef2f7;align-items:center;padding:16px 20px}.add-pack-header h2{color:var(--text);margin:0;font-size:1.1rem;font-weight:700;line-height:1.2}.add-pack-form{flex-direction:column;flex:1;min-height:0;display:flex}.add-pack-body{overflow-anchor:none;background:#fff;flex-direction:column;flex:1;gap:14px;min-height:0;padding:16px 20px 18px;display:flex;overflow-y:auto}.add-pack-footer{background:#fff;border-top:1px solid #eef2f7;flex-shrink:0;justify-content:flex-end;gap:10px;padding:12px 20px;position:sticky;bottom:0}.input-with-counter{position:relative}.input-with-counter input{width:100%;padding-right:52px}.inline-counter{color:var(--text-muted);pointer-events:none;font-size:11.5px;position:absolute;top:50%;right:10px;transform:translateY(-50%)}.pack-status-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:100%;display:grid}.pack-status-card{border:1px solid var(--border);cursor:pointer;background:#fff;border-radius:10px;align-items:center;gap:8px;margin:0;padding:10px 12px;display:flex}.pack-status-card input{accent-color:var(--brand);box-shadow:none;outline:none;margin-top:2px}.pack-status-card input:focus,.pack-status-card input:focus-visible{box-shadow:none!important;outline:none!important}.pack-status-card strong{color:var(--text);font-size:13px;display:block}.pack-status-card small{color:var(--text-muted);margin-top:1px;font-size:11.5px;line-height:1.35;display:block}.pack-status-card.is-selected,.pack-status-card.is-selected-inactive{border-color:var(--brand);background:color-mix(in srgb, var(--brand) 8%, white)}@media (width<=1100px){.pack-stats-row{grid-template-columns:1fr}}@media (width<=900px){.pack-table-wrap{display:none}.pack-mobile-cards{display:grid}.add-pack-modal.modal-dialog{width:min(100%,100vw - 24px);max-width:min(100%,100vw - 24px)}.add-pack-footer{flex-wrap:wrap}.add-pack-footer .btn{flex:auto;justify-content:center}.pack-status-cards{grid-template-columns:1fr}}.vendor-stats-row{grid-template-columns:repeat(4,minmax(0,1fr))}.vendor-table thead th{z-index:1;background:#f9fafb;position:sticky;top:0}.vendor-table .col-actions{width:120px}.vendor-pay-outstanding-btn{white-space:nowrap;min-height:36px;padding:8px 14px;font-size:13px;font-weight:600}.vendor-pay-now-btn{white-space:nowrap;min-height:30px;padding:6px 10px;font-size:12px;font-weight:600;line-height:1.2}.vendor-po-row-actions{flex-wrap:nowrap;align-items:center;gap:6px}.vendor-return-credit-cell{white-space:nowrap;font-variant-numeric:tabular-nums;color:var(--text,#374151);font-weight:600}.vendor-created-at-cell{white-space:nowrap;flex-direction:column;gap:2px;line-height:1.35;display:flex}.vendor-created-at-cell small{color:var(--text-muted);text-transform:lowercase;font-size:12px}.vendor-mobile-credit-row{flex-wrap:wrap;align-items:center;gap:10px 14px;margin:10px 0 4px;display:flex}.vendor-phone-cell{color:var(--text,#374151);align-items:center;gap:6px;display:inline-flex}.vendor-phone-cell svg{color:var(--text-muted);flex-shrink:0}.add-vendor-modal.modal-dialog{border-radius:16px;flex-direction:column;width:min(1100px,100vw - 32px);max-width:min(1100px,100vw - 32px);max-height:min(92vh,920px);display:flex}.add-vendor-header{border-bottom:1px solid #eef2f7;align-items:center;padding:16px 20px}.add-vendor-title-row{align-items:center;gap:12px;display:flex}.add-vendor-title-icon{background:var(--brand-soft);width:40px;height:40px;color:var(--brand-dark);border-radius:12px;flex-shrink:0;place-items:center;display:grid}.add-vendor-header h2{margin:0;font-size:1.15rem;font-weight:700}.add-vendor-form{flex-direction:column;flex:1;min-height:0;display:flex}.add-vendor-modal select.is-readonly:disabled{color:var(--text-secondary);cursor:not-allowed;opacity:1;pointer-events:none;background:#f3f4f6}.add-vendor-modal .vendor-pharmacy-locked-note{color:#92400e;background:#fffbeb;border:1px solid #fde68a;border-radius:8px;align-items:flex-start;gap:8px;margin:0 0 12px;padding:8px 10px;font-size:12.5px;line-height:1.4;display:flex}.add-vendor-modal .vendor-pharmacy-locked-note svg{flex-shrink:0;margin-top:1px}.add-vendor-body{overflow-anchor:none;background:#f8fafc;flex-direction:column;flex:1;gap:14px;min-height:0;padding:16px 20px 18px;display:flex;overflow-y:auto}.add-vendor-footer{z-index:2;background:#fff;border-top:1px solid #eef2f7;flex-shrink:0;justify-content:flex-end;gap:10px;padding:12px 20px;position:sticky;bottom:0}.vendor-form-card{background:#fff;border:1px solid #e8edf5;border-radius:14px;padding:14px 16px 16px;box-shadow:0 1px 2px #1018280a}.vendor-form-card-title{align-items:center;gap:10px;margin-bottom:12px;display:flex}.vendor-form-card-title h3{color:var(--text);align-items:center;gap:6px;margin:0;font-size:14px;font-weight:700;display:inline-flex}.vendor-form-card-icon{color:#475569;background:#f1f5f9;border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;width:28px;height:28px;display:inline-flex}.vendor-grid-4{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;display:grid}.vendor-grid-5{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;display:grid}.vendor-grid-5+.vendor-grid-5{margin-top:12px}.vendor-credit-groups{gap:14px;display:grid}.vendor-credit-group-title{color:#334155;margin:0 0 8px;font-size:12.5px;font-weight:700}.vendor-grid-3--tight{margin-top:0}.vendor-grid-3{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:12px;display:grid}.vendor-grid-2{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.vendor-split-row{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:14px;display:grid}.vendor-money-input{border:1px solid var(--border);background:#fff;border-radius:8px;grid-template-columns:28px minmax(0,1fr);align-items:center;min-height:40px;display:grid;overflow:hidden}.vendor-money-prefix{height:100%;color:var(--text-muted);background:#f9fafb;border-right:1px solid #eef2f7;place-items:center;font-size:13px;font-weight:600;display:grid}.vendor-money-input input{box-shadow:none!important;background:0 0!important;border:none!important;border-radius:0!important;height:38px!important;min-height:38px!important}.vendor-money-input input:focus{outline:none;box-shadow:none!important}.vendor-money-input.is-readonly{background:#f9fafb}.vendor-credit-hint{color:var(--text-muted);margin:8px 0 0;font-size:11.5px}.vendor-status-cards{gap:10px;display:grid}.vendor-status-card{border:1.5px solid var(--border);cursor:pointer;background:#fff;border-radius:12px;align-items:center;gap:10px;margin:0;padding:12px 14px;display:flex}.vendor-status-card input{accent-color:var(--brand);box-shadow:none;outline:none;margin-top:0}.vendor-status-card input:focus,.vendor-status-card input:focus-visible{box-shadow:none!important;outline:none!important}.vendor-status-card strong{color:var(--text);font-size:13.5px;display:block}.vendor-status-card small{color:var(--text-muted);margin-top:2px;font-size:12px;line-height:1.35;display:block}.vendor-status-card.is-selected,.vendor-status-card.is-selected-inactive{border-color:var(--brand);background:color-mix(in srgb, var(--brand) 8%, white)}.vendor-form-section{border-bottom:1px solid #f3f4f6;margin-bottom:14px;padding-bottom:8px}.vendor-form-section:last-child{border-bottom:none;margin-bottom:0}.vendor-form-section h3{color:var(--text);margin:0 0 12px;font-size:14px;font-weight:700}.vendor-form-grid{gap:14px 16px;display:grid}.vendor-form-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.vendor-form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.vendor-form-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.vendor-span-2{grid-column:1/-1}.phone-input-row{align-items:stretch;gap:8px;min-width:0;display:flex}.phone-input-row select{box-sizing:border-box;flex:none;width:max-content;min-width:3.25rem;max-width:4.75rem;padding-left:8px;padding-right:6px}.phone-input-row input{flex:auto;width:auto;min-width:0}.vendor-form-section textarea,.vendor-form-card textarea{resize:vertical;border:1px solid var(--border);width:100%;min-height:84px;font:inherit;border-radius:8px;padding:10px 12px;font-size:13.5px}.vendor-mobile-cards{display:none}@media (width<=1280px){.vendor-stats-row,.vendor-form-grid.three,.vendor-form-grid.four,.vendor-grid-5,.vendor-grid-4,.vendor-grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}.vendor-split-row{grid-template-columns:1fr}}@media (width<=900px){.vendor-table-wrap{display:none}.vendor-mobile-cards{display:grid}.vendor-form-grid.two,.vendor-form-grid.three,.vendor-form-grid.four,.vendor-grid-5,.vendor-grid-4,.vendor-grid-3,.vendor-grid-2,.vendor-split-row{grid-template-columns:1fr}.add-vendor-modal.modal-dialog{width:min(100%,100vw - 24px);max-width:min(100%,100vw - 24px)}.add-vendor-footer{flex-wrap:wrap}.add-vendor-footer .btn{flex:auto;justify-content:center}}@media (width<=640px){.vendor-stats-row{grid-template-columns:1fr}}.vendor-details-modal.modal-dialog{border-radius:14px;flex-direction:column;width:min(1120px,96vw);max-height:min(92vh,980px);display:flex;overflow:hidden}.vendor-details-header{border-bottom:1px solid var(--border);align-items:flex-start;padding:16px 20px}.vendor-details-header-main{align-items:flex-start;gap:12px;min-width:0;display:flex}.vendor-details-header-icon{width:40px;height:40px;color:var(--brand);background:#0d94881f;border-radius:10px;flex-shrink:0;place-items:center;display:grid}.vendor-details-header h2{color:var(--text);margin:0;font-size:18px;font-weight:700}.vendor-details-header .modal-subtitle{color:#64748b;margin:2px 0 0;font-size:13px}.vendor-details-close{color:#64748b;cursor:pointer;background:0 0;border:none;border-radius:999px;place-items:center;width:34px;height:34px;display:grid}.vendor-details-close:hover{color:var(--text);background:#f1f5f9}.vendor-details-body{background:#f8fafc;flex:1;min-height:0;padding:16px 18px;overflow-y:auto}.vendor-details-layout{align-items:start;gap:14px;display:grid}.vendor-details-sidebar{display:none}.vendor-details-profile{text-align:center;justify-items:center;gap:6px;margin-bottom:18px;display:grid}.vendor-details-avatar{width:72px;height:72px;color:var(--brand);background:#0d94881f;border:3px solid #0d94882e;border-radius:999px;place-items:center;margin-bottom:6px;display:grid}.vendor-details-name{color:var(--text);word-break:break-word;margin:0;font-size:16px;font-weight:700}.vendor-details-code{color:var(--brand);margin:0;font-size:13px;font-weight:600}.vendor-details-status-badge{border-radius:999px;align-items:center;gap:5px;margin-top:4px;padding:4px 10px;font-size:12px;font-weight:700;display:inline-flex}.vendor-details-status-badge.is-active{color:#047857;background:#d1fae5}.vendor-details-status-badge.is-inactive{color:#b91c1c;background:#fee2e2}.vendor-details-meta-list{gap:12px;margin:0;padding:0;list-style:none;display:grid}.vendor-details-meta-list li{align-items:flex-start;gap:10px;min-width:0;display:flex}.vendor-details-meta-list svg{color:var(--brand);flex-shrink:0;margin-top:2px}.vendor-details-meta-list span{color:var(--text-muted);text-transform:uppercase;letter-spacing:.02em;font-size:11px;font-weight:600;display:block}.vendor-details-meta-list strong{color:var(--text);word-break:break-word;margin-top:2px;font-size:13px;font-weight:600;line-height:1.35;display:block}.vendor-details-main{gap:12px;min-width:0;display:grid}.vendor-details-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;overflow:hidden}.vendor-details-card-header{border-bottom:1px solid #f1f5f9;align-items:center;gap:8px;padding:10px 14px;display:flex}.vendor-details-card-header h3{margin:0;font-size:13.5px;font-weight:700}.vendor-details-card-icon{border-radius:8px;flex-shrink:0;place-items:center;width:26px;height:26px;display:grid}.vendor-details-card-body{gap:12px;padding:14px;display:grid}.vendor-details-card--teal .vendor-details-card-header{background:var(--brand-muted)}.vendor-details-card--teal .vendor-details-card-header h3,.vendor-details-card--teal .vendor-details-card-icon{color:var(--brand)}.vendor-details-card--teal .vendor-details-card-icon{background:#0d94881f}.vendor-details-card--blue .vendor-details-card-header{background:#eff6ff}.vendor-details-card--blue .vendor-details-card-header h3,.vendor-details-card--blue .vendor-details-card-icon{color:#2563eb}.vendor-details-card--blue .vendor-details-card-icon{background:#2563eb1f}.vendor-details-card--purple .vendor-details-card-header{background:#f5f3ff}.vendor-details-card--purple .vendor-details-card-header h3,.vendor-details-card--purple .vendor-details-card-icon{color:#7c3aed}.vendor-details-card--purple .vendor-details-card-icon{background:#7c3aed1f}.vendor-details-card--green .vendor-details-card-header{background:#ecfdf5}.vendor-details-card--green .vendor-details-card-header h3,.vendor-details-card--green .vendor-details-card-icon{color:#059669}.vendor-details-card--green .vendor-details-card-icon{background:#0596691f}.vendor-details-card--orange .vendor-details-card-header{background:#fff7ed}.vendor-details-card--orange .vendor-details-card-header h3,.vendor-details-card--orange .vendor-details-card-icon{color:#ea580c}.vendor-details-card--orange .vendor-details-card-icon{background:#ea580c1f}.vendor-details-grid{gap:14px 18px;display:grid}.vendor-details-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.vendor-details-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.vendor-details-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.vendor-details-item{gap:4px;min-width:0;display:grid}.vendor-details-label{letter-spacing:.02em;text-transform:uppercase;color:var(--text-muted);font-size:11.5px;font-weight:600;display:block}.vendor-details-value{color:var(--text);word-break:break-word;white-space:pre-wrap;font-size:13.5px;font-weight:600;line-height:1.4}.vendor-details-country{align-items:center;gap:6px;display:inline-flex}.vendor-details-flag{font-size:14px;line-height:1}.vendor-details-split{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.vendor-details-split--bottom{grid-template-columns:repeat(2,minmax(0,1fr))}.vendor-details-credit-groups{gap:14px;display:grid}.vendor-details-credit-group-title{color:#6d28d9;margin:0 0 8px;font-size:12.5px;font-weight:700}.vendor-details-credit-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;display:grid}.vendor-details-audit-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px;display:grid}.vendor-details-credit-field{background:#f5f3ff;border:1px solid #ede9fe;border-radius:10px;gap:6px;padding:10px 12px;display:grid}.vendor-details-credit-field span{color:var(--text-muted);text-transform:uppercase;letter-spacing:.02em;font-size:11px;font-weight:600}.vendor-details-credit-field strong{color:var(--text);font-size:14px;font-weight:700}.vendor-details-credit-hint{color:var(--text-muted);margin:0;font-size:11.5px}.vendor-details-status-panel{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;display:grid}.vendor-details-status-left{align-content:start;gap:6px;display:grid}.vendor-details-status-text{font-size:15px;font-weight:700}.vendor-details-status-text.is-active{color:#059669}.vendor-details-status-text.is-inactive{color:#dc2626}.vendor-details-status-left p{color:#64748b;margin:0;font-size:12.5px;line-height:1.45}.vendor-details-status-right{gap:12px;display:grid}.vendor-details-user{align-items:center;gap:6px;display:inline-flex}.vendor-details-user svg{color:var(--brand);flex-shrink:0}.vendor-details-footer{border-top:1px solid var(--border);background:#fff;justify-content:flex-end;padding:12px 18px}.vendor-details-skeleton{gap:14px;display:grid}.vendor-details-skeleton-left,.vendor-details-skel-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;gap:10px;padding:16px;display:grid}.vendor-details-skeleton-right{gap:12px;display:grid}.vendor-details-skel-avatar{border-radius:999px;width:72px;height:72px;margin:0 auto 8px}.vendor-details-error{text-align:center;color:#64748b;align-content:center;justify-items:center;gap:10px;min-height:280px;display:grid}.vendor-details-error h3{color:var(--text);margin:0;font-size:16px}.vendor-details-error p{max-width:360px;margin:0;font-size:13.5px}.vendor-details-error .btn{align-items:center;gap:6px;margin-top:4px;display:inline-flex}.view-vendor-modal.modal-dialog{border-radius:12px;flex-direction:column;width:min(1080px,96vw);max-height:min(90vh,960px);display:flex}.view-vendor-header{align-items:center}.view-vendor-title-wrap{align-items:center;gap:12px;min-width:0;display:flex}.view-vendor-title-icon{width:36px;height:36px;color:var(--brand);background:#0d94881f;border-radius:10px;flex-shrink:0;place-items:center;margin-top:0;display:grid}.view-vendor-body{flex-direction:column;flex:1;gap:12px;min-height:0;display:flex;overflow-y:auto}.view-vendor-body.is-loading{overflow:hidden}.view-vendor-skeleton{gap:12px;display:grid}.view-vendor-card{border:1px solid var(--border);background:#fff;border-radius:12px;padding:14px 16px}.view-vendor-card.is-loading{gap:10px;display:grid}.view-vendor-card-header{align-items:center;gap:10px;margin-bottom:12px;display:flex}.view-vendor-card-icon{width:28px;height:28px;color:var(--brand);background:#0d94881a;border-radius:8px;flex-shrink:0;place-items:center;display:grid}.view-vendor-card-header h3{color:var(--text);margin:0;font-size:14px;font-weight:700}.view-vendor-card-body{gap:12px;display:grid}.view-vendor-grid{gap:14px 18px;display:grid}.view-vendor-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.view-vendor-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.view-vendor-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.vendor-detail-item{gap:4px;min-width:0;display:grid}.vendor-detail-label{letter-spacing:.02em;text-transform:uppercase;color:var(--text-muted);font-size:11.5px;font-weight:600;display:block}.vendor-detail-value{color:var(--text);word-break:break-word;font-size:13.5px;font-weight:600;line-height:1.4}.view-vendor-bottom-grid{grid-template-columns:minmax(220px,.85fr) minmax(0,1.4fr);gap:12px;display:grid}.view-vendor-status-block{justify-items:start;gap:8px;display:grid}.view-vendor-status-copy{color:#64748b;margin:0;font-size:12.5px;line-height:1.45}.view-vendor-timeline-value{align-items:center;gap:6px;display:inline-flex}.view-vendor-timeline-value svg{color:var(--brand);flex-shrink:0}.view-vendor-footer{justify-content:flex-end}.view-category-modal.modal-dialog,.view-pack-modal.modal-dialog{width:min(760px,96vw)}.view-category-description{color:var(--text-secondary);white-space:pre-wrap;margin:0;font-size:14px;line-height:1.55}.view-category-basic-grid{align-items:start}.vendor-edit-loading-overlay{z-index:80;color:#fff;background:#11182747;justify-content:center;align-items:center;gap:10px;font-size:14px;font-weight:600;display:flex;position:fixed;inset:0}@media (width<=980px){.vendor-details-layout,.vendor-details-skeleton{grid-template-columns:1fr}.vendor-details-grid.three,.vendor-details-grid.four,.vendor-details-split,.vendor-details-split--bottom,.vendor-details-credit-grid,.vendor-details-audit-grid,.vendor-details-status-panel,.view-vendor-grid.three,.view-vendor-grid.four,.view-vendor-bottom-grid,.view-vendor-grid.four.timeline{grid-template-columns:1fr 1fr}}@media (width<=720px){.vendor-details-modal.modal-dialog,.view-vendor-modal.modal-dialog{width:min(100vw - 16px,1120px)}.vendor-details-grid.two,.vendor-details-grid.three,.vendor-details-grid.four,.vendor-details-split,.vendor-details-split--bottom,.vendor-details-credit-grid,.vendor-details-audit-grid,.vendor-details-status-panel,.view-vendor-grid.two,.view-vendor-grid.three,.view-vendor-grid.four,.view-vendor-bottom-grid,.view-vendor-grid.four.timeline{grid-template-columns:1fr}}.add-medicine-header-main{align-items:center;gap:12px;min-width:0;display:flex}.add-medicine-edit-icon{color:#7c3aed;background:#ede9fe;border-radius:12px;flex-shrink:0;justify-content:center;align-items:center;width:42px;height:42px;margin-top:0;display:inline-flex}.medicine-edit-info-card .medicine-edit-info-grid{gap:12px;margin-bottom:0;display:grid}.medicine-edit-info-card .medicine-edit-info-grid:last-child{margin-bottom:0}.medicine-edit-info-row-4{grid-template-columns:repeat(4,minmax(0,1fr))}.medicine-edit-info-row-5{grid-template-columns:repeat(5,minmax(0,1fr))}.medicine-edit-info-row-6{grid-template-columns:repeat(6,minmax(0,1fr))}.medicine-edit-notes-field{grid-column:1/-1}.medicine-edit-pharmacy-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;display:grid}.medicine-edit-inventory-status{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:16px;min-width:0;display:grid}.medicine-edit-inventory-status>.medicine-form-card{min-width:0;height:100%}.medicine-edit-status-card{max-width:none}.medicine-status-radios-stacked.category-status-radios,.medicine-status-radios.medicine-status-radios-stacked{grid-template-columns:1fr}.medicine-yesno-field{min-width:0}.medicine-yesno-check{border:1px solid var(--border);cursor:pointer;-webkit-user-select:none;user-select:none;color:#374151;min-height:40px;box-shadow:none;background:#fff;border-radius:8px;align-items:center;gap:8px;padding:0 12px;font-size:13px;font-weight:600;display:inline-flex}.medicine-yesno-check input{width:15px;height:15px;accent-color:var(--brand);box-shadow:none;-webkit-tap-highlight-color:transparent;outline:none}.medicine-yesno-check input:focus,.medicine-yesno-check input:focus-visible,.medicine-yesno-check:focus-within{box-shadow:none;outline:none}.medicine-yesno-check.is-checked{border-color:color-mix(in srgb, var(--brand) 45%, white);background:color-mix(in srgb, var(--brand) 8%, white);color:var(--brand)}.medicine-pharmacy-rx-check{color:#374151;cursor:pointer;align-items:center;gap:8px;margin-top:12px;font-size:13px;font-weight:600;display:inline-flex}.medicine-pharmacy-rx-check input{width:15px;height:15px;accent-color:var(--brand);box-shadow:none;-webkit-tap-highlight-color:transparent;outline:none}.medicine-pharmacy-rx-check input:focus,.medicine-pharmacy-rx-check input:focus-visible{box-shadow:none!important;outline:none!important}.medicine-pharmacy-rx-check.is-checked{color:var(--brand)}.medicine-edit-error{text-align:center;min-height:280px;color:var(--text-muted);background:#fff;border:1px solid #e8edf5;border-radius:14px;flex-direction:column;justify-content:center;align-items:center;gap:10px;padding:32px 20px;display:flex}.medicine-edit-error h3{color:var(--text);margin:0;font-size:1.05rem}.medicine-edit-error p{max-width:420px;margin:0 0 8px}@media (width<=1280px){.medicine-edit-info-row-4,.medicine-edit-info-row-5,.medicine-edit-info-row-6,.medicine-edit-pharmacy-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.medicine-edit-inventory-status{grid-template-columns:1fr}}@media (width<=640px){.medicine-edit-info-row-4,.medicine-edit-info-row-5,.medicine-edit-info-row-6,.medicine-edit-pharmacy-grid{grid-template-columns:1fr}.medicine-edit-notes-field{grid-column:1}}.medicine-form-span-2{grid-column:span 2}.medicine-flag-info{vertical-align:middle;color:var(--text-muted);margin-left:2px;display:inline-flex}.medicine-status-radios-detailed{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:100%;max-width:none;display:grid}.medicine-status-field:has(.medicine-status-radios-detailed){max-width:none}.medicine-status-radios-detailed .medicine-status-option{border-radius:10px;align-items:flex-start;width:100%;padding:14px 16px}.medicine-status-radios-detailed .medicine-status-option.is-active,.medicine-status-radios-detailed .medicine-status-option.is-inactive{border-color:var(--brand);background:color-mix(in srgb, var(--brand) 10%, white);color:var(--text);font-weight:600}.medicine-status-radios-detailed .medicine-status-option span{flex-direction:column;gap:2px;display:flex}.medicine-status-radios-detailed .medicine-status-option strong{font-size:13.5px;font-weight:600}.medicine-status-radios-detailed .medicine-status-option small{color:var(--text-muted);font-size:12px;font-weight:400;line-height:1.35}.medicine-audit-card{background:#eff6ff;border:1px solid #dbeafe;border-radius:12px;margin-top:4px;padding:14px 16px}.medicine-audit-title{color:#1e40af;align-items:center;gap:8px;margin-bottom:12px;font-size:13.5px;font-weight:600;display:flex}.medicine-audit-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 16px;display:grid}.medicine-audit-grid .muted-label{color:var(--text-muted);margin-bottom:3px;font-size:12px;display:block}.medicine-audit-grid strong{color:var(--text);word-break:break-word;font-size:13.5px;font-weight:600}.medicine-edit-loading-overlay{z-index:80;color:#fff;background:#11182747;justify-content:center;align-items:center;gap:10px;font-size:14px;font-weight:600;display:flex;position:fixed;inset:0}.medicine-row-menu{z-index:90;border:1px solid var(--border);opacity:0;background:#fff;border-radius:12px;min-width:260px;padding:6px;transition:opacity .16s,transform .16s;position:fixed;transform:translateY(-4px)scale(.98);box-shadow:0 12px 32px #0f172a24}.medicine-row-menu.is-open{opacity:1;transform:translateY(0)scale(1)}.medicine-row-menu-item{text-align:left;cursor:pointer;width:100%;color:var(--text);background:0 0;border:0;border-radius:8px;align-items:flex-start;gap:10px;padding:10px;display:flex}.medicine-row-menu-item:hover{background:#f9fafb}.medicine-row-menu-item.is-danger:hover{background:var(--danger-bg)}.medicine-row-menu-icon{border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;width:32px;height:32px;display:inline-flex}.medicine-row-menu-icon.is-warning{color:#ea580c;background:#fff7ed}.medicine-row-menu-icon.is-success{color:#059669;background:#ecfdf5}.medicine-row-menu-icon.is-danger{background:var(--danger-bg);color:#dc2626}.medicine-row-menu-copy{flex-direction:column;gap:2px;min-width:0;display:flex}.medicine-row-menu-copy strong{font-size:13.5px;font-weight:600;line-height:1.3}.medicine-row-menu-copy span{color:var(--text-muted);font-size:12px;line-height:1.35}.medicine-row-menu-divider{background:#f3f4f6;height:1px;margin:4px 6px}.confirm-dialog.modal-dialog{width:min(480px,92vw)}.confirm-dialog-overlay.modal-overlay{z-index:1100}.confirm-dialog-header{align-items:center}.confirm-dialog-title-row{align-items:center;gap:10px;min-width:0;display:flex}.confirm-dialog-title-row h2{color:var(--text);margin:0;font-size:17px;font-weight:700}.confirm-dialog-icon{border-radius:999px;flex-shrink:0;justify-content:center;align-items:center;width:34px;height:34px;display:inline-flex}.confirm-dialog-icon.is-danger{background:var(--danger-bg);color:var(--danger)}.confirm-dialog-icon.is-warning{color:#ea580c;background:#fff7ed}.confirm-dialog-icon.is-primary{background:var(--brand-soft);color:var(--brand)}.confirm-dialog-body p{color:var(--text-muted);white-space:pre-line;margin:0;font-size:14px;line-height:1.5}.confirm-dialog-footer{justify-content:flex-end;gap:10px}.btn-danger{background:var(--danger);border-color:var(--danger);color:#fff}.btn-danger:hover:not(:disabled){background:#dc2626;border-color:#dc2626}.btn-warning{color:#fff;background:#ea580c;border-color:#ea580c}.btn-warning:hover:not(:disabled){background:#c2410c;border-color:#c2410c}@media (width<=900px){.medicine-form-span-2{grid-column:span 1}.medicine-audit-grid,.medicine-status-radios-detailed{grid-template-columns:1fr}}.add-category-header{border-bottom:1px solid #eef2f7;align-items:center;padding:16px 20px}.add-category-header h2{color:var(--text);margin:0;font-size:1.1rem;font-weight:700;line-height:1.2}.add-category-header .modal-subtitle{color:var(--text-muted);margin:4px 0 0;font-size:12.5px}.add-category-header-main{align-items:center;gap:12px;min-width:0;display:flex}.add-category-edit-icon,.add-category-create-icon{background:var(--brand-soft);width:40px;height:40px;color:var(--brand-dark);border-radius:12px;flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}.add-category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.add-category-modal .filter-field label{color:var(--text-secondary);font-size:12.5px;font-weight:600}.add-category-modal .filter-field input:not([type=checkbox]):not([type=radio]),.add-category-modal .filter-field select{background:#fff;border-radius:8px;height:40px}.add-category-meta-row{grid-template-columns:120px minmax(0,1fr);align-items:start;gap:12px;display:grid}.add-category-display-order{max-width:none}.category-audit-card{background:#f8fafc;border:1px solid #e8edf5;border-radius:12px;margin-top:2px;padding:12px 14px}.category-audit-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 20px;display:grid}.category-audit-col{flex-direction:column;gap:10px;display:flex}.category-audit-item{color:var(--text-muted);align-items:flex-start;gap:8px;display:flex}.category-audit-item .muted-label{color:var(--text-muted);margin-bottom:2px;font-size:11.5px;display:block}.category-audit-item strong{color:var(--text);word-break:break-word;font-size:13px;font-weight:600}.category-status-radios{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:100%;display:grid}.category-status-radios .medicine-status-option{box-sizing:border-box;width:100%;min-height:0;color:var(--text,#374151);border:1px solid var(--border);background:#fff;border-radius:10px;align-items:flex-start;gap:8px;padding:10px 12px;font-size:13px;font-weight:600}.category-status-radios .medicine-status-option span{flex-direction:column;gap:1px;min-width:0;display:flex}.category-status-radios .medicine-status-option strong{color:inherit;font-size:13px;font-weight:600;line-height:1.3}.category-status-radios .medicine-status-option.is-active,.category-status-radios .medicine-status-option.is-inactive{border-color:var(--brand);background:color-mix(in srgb, var(--brand) 8%, white);color:var(--text);font-weight:600}.category-status-radios .medicine-status-option input{box-shadow:none;accent-color:var(--brand);outline:none;flex-shrink:0;margin-top:2px}.category-status-radios .medicine-status-option input:focus,.category-status-radios .medicine-status-option input:focus-visible{box-shadow:none!important;outline:none!important}.category-status-radios .medicine-status-option:has(input:disabled){opacity:.65;cursor:not-allowed}@media (width<=700px){.add-category-grid,.category-audit-grid,.category-status-radios,.add-category-meta-row{grid-template-columns:1fr}}.add-pack-header-main{align-items:center;gap:12px;min-width:0;display:flex}.add-pack-edit-icon,.add-pack-create-icon{background:var(--brand-soft);width:40px;height:40px;color:var(--brand-dark);border-radius:12px;flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}.add-pack-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.add-pack-meta-row{grid-template-columns:140px minmax(0,1fr);align-items:start;gap:12px;display:grid}.add-pack-modal .filter-field label{color:var(--text-secondary);font-size:12.5px;font-weight:600}.add-pack-modal .filter-field input:not([type=checkbox]):not([type=radio]),.add-pack-modal .filter-field select{background:#fff;border-radius:8px;height:40px}.pack-audit-card{background:#f8fafc;border:1px solid #e8edf5;border-radius:12px;margin-top:2px;padding:12px 14px}.pack-row-menu{min-width:160px;padding:4px}.pack-row-menu-item{color:var(--text);align-items:center;gap:10px;padding:10px 12px;font-size:13.5px;font-weight:500}.pack-row-menu-icon-inline{color:#ea580c;flex-shrink:0}.pack-row-menu-item.is-danger .pack-row-menu-icon-inline{color:#dc2626}@media (width<=700px){.add-pack-grid,.add-pack-meta-row,.pack-status-cards{grid-template-columns:1fr}}.facility-stats-row{grid-template-columns:repeat(4,minmax(0,1fr))}.facility-type-badge{white-space:nowrap;border-radius:999px;align-items:center;padding:4px 10px;font-size:12px;font-weight:600;line-height:1.2;display:inline-flex}.facility-type-badge.tone-green{color:#047857;background:#d1fae5}.facility-type-badge.tone-blue{color:#1d4ed8;background:#dbeafe}.facility-type-badge.tone-purple{color:#7c3aed;background:#f3e8ff}.facility-type-badge.tone-amber{color:#c2410c;background:#ffedd5}.facility-type-badge.tone-teal{background:var(--brand-soft);color:var(--brand-dark)}.facility-type-badge.tone-rose{color:#be123c;background:#ffe4e6}.facility-type-badge.tone-red{color:#b91c1c;background:#fee2e2}.facility-type-badge.tone-orange{color:#ea580c;background:#ffedd5}.facility-type-badge.tone-indigo{color:#4338ca;background:#e0e7ff}.facility-type-badge.tone-slate{color:#475569;background:#f1f5f9}.facility-table thead th{z-index:1;background:#f9fafb;position:sticky;top:0}.facility-table th.facility-col-sticky-left,.facility-table td.facility-col-sticky-left{z-index:2;background:#fff;position:sticky;left:0}.facility-table th.facility-col-sticky-left{z-index:5;box-shadow:4px 0 10px -4px #0f172a2e;background:var(--brand-dark)!important}.facility-table td.facility-col-sticky-left{box-shadow:4px 0 10px -4px #0f172a24}.facility-table th.facility-col-sticky-right,.facility-table td.facility-col-sticky-right{z-index:2;background:#fff;position:sticky;right:0}.facility-table th.facility-col-sticky-right{z-index:5;box-shadow:-4px 0 10px -4px #0f172a2e;background:var(--brand-dark)!important}.facility-table td.facility-col-sticky-right{box-shadow:-4px 0 10px -4px #0f172a24}.facility-table .facility-col-name{min-width:200px;max-width:280px}.facility-table tbody tr:hover td.facility-col-sticky-left,.facility-table tbody tr:hover td.facility-col-sticky-right{background:#fafafa}.facility-table .col-actions{width:120px}.facility-table-wrap{overflow-x:auto}.facility-email-link{color:var(--brand);font-weight:500;text-decoration:none}.facility-email-link:hover{text-decoration:underline}.sortable-th{color:inherit;font:inherit;cursor:pointer;background:0 0;border:0;align-items:center;gap:6px;padding:0;font-weight:600;display:inline-flex}.sortable-th svg{color:#fff;stroke:currentColor;flex-shrink:0}.sortable-th.is-active svg{color:#fff;stroke:currentColor}.facility-grid-card h3{margin:8px 0 4px;font-size:15px}.facility-grid-card p{color:var(--text-muted);margin:0;font-size:13px}@media (width<=1200px){.facility-stats-row{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=700px){.facility-stats-row{grid-template-columns:1fr}.facility-table-wrap{display:none}.facility-mobile-cards{display:grid}}@media (width>=701px){.facility-mobile-cards{display:none}}.add-facility-modal.modal-dialog{border-radius:16px;flex-direction:column;width:min(720px,100vw - 32px);max-width:min(720px,100vw - 32px);max-height:min(90vh,880px);display:flex;overflow:hidden;box-shadow:0 0 0 1px #0f172a0a,0 22px 56px #0f172a2e}.add-facility-modal.is-edit.modal-dialog{width:min(920px,100vw - 32px);max-width:min(920px,100vw - 32px);max-height:min(92vh,960px)}.add-facility-modal .modal-header{background:#fff;border-bottom:1px solid #eef2f7;flex-shrink:0;padding:14px 18px}.add-facility-header{align-items:center}.add-facility-title-wrap{align-items:center;gap:12px;min-width:0;display:flex}.add-facility-icon{background:var(--brand-soft);width:40px;height:40px;color:var(--brand-dark);border-radius:12px;flex-shrink:0;place-items:center;display:grid}.add-facility-modal .modal-header h2{letter-spacing:-.02em;color:var(--text);margin:0;font-size:1.15rem;font-weight:700;line-height:1.25}.add-facility-modal .modal-subtitle{color:#64748b;margin:3px 0 0;font-size:12.5px;line-height:1.4}.add-facility-form{flex-direction:column;flex:1;min-height:0;display:flex}.add-facility-body{overflow-anchor:none;scroll-behavior:smooth;scrollbar-width:thin;scrollbar-color:#cbd5e1 transparent;background:#f8fafc;flex-direction:column;flex:1;gap:12px;min-height:0;padding:14px 16px 16px;display:flex;overflow:hidden auto}.add-facility-body::-webkit-scrollbar{width:8px}.add-facility-body::-webkit-scrollbar-thumb{background:#cbd5e1 padding-box content-box;border:2px solid #0000;border-radius:999px}.facility-form-card{background:#fff;border:1px solid #e8edf5;border-radius:12px;padding:12px 14px 14px;box-shadow:0 1px 2px #0f172a08}.facility-form-card-title{align-items:center;gap:8px;margin-bottom:12px;display:flex}.facility-form-card-title h3{color:var(--text);margin:0;font-size:13.5px;font-weight:700}.facility-form-card-icon{width:26px;height:26px;color:var(--brand);background:#0d94881a;border-radius:8px;flex-shrink:0;place-items:center;display:grid}.facility-form-card-body,.facility-form-grid{gap:12px;display:grid}.facility-form-grid.one{grid-template-columns:1fr}.facility-form-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.facility-form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.facility-form-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.facility-form-split{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);align-items:start;gap:12px;display:grid}.facility-form-lower-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:12px;display:grid}.facility-form-lower-col{flex-direction:column;gap:12px;min-width:0;min-height:0;display:flex}.facility-form-lower-col>.facility-form-card{flex-direction:column;min-height:0;display:flex}.facility-form-lower-col>.facility-form-card>.facility-form-card-body{flex:1;min-height:0}.facility-form-lower-col>.facility-form-card:only-child,.facility-form-lower-col>.facility-form-card:last-child:not(:only-child){flex:auto}.facility-address-full{margin-top:12px}.add-facility-modal .filter-field{gap:5px;min-width:0}.add-facility-modal .filter-field label{color:#64748b;font-size:12px;font-weight:600}.add-facility-modal .filter-field input:not([type=checkbox]):not([type=radio]),.add-facility-modal .filter-field select,.add-facility-modal .facility-user-trigger{background:#fff;border:1px solid #e2e8f0;border-radius:9px;height:38px;min-height:38px;padding:0 11px;font-size:13.5px}.add-facility-modal .filter-field input:not([type=checkbox]):not([type=radio]):focus,.add-facility-modal .filter-field select:focus,.add-facility-modal .facility-user-trigger:focus{border-color:var(--brand);outline:none;box-shadow:0 0 0 3px #0d94881f}.add-facility-modal .phone-input-row{grid-template-columns:72px minmax(0,1fr);align-items:stretch;gap:8px;display:grid}.add-facility-modal .phone-input-row select,.add-facility-modal .phone-input-row input{background:#fff;border:1px solid #e2e8f0;border-radius:9px;height:38px;min-height:38px;padding:0 10px;font-size:13.5px}.add-facility-modal .field-error{margin-top:2px;font-size:11.5px}.add-facility-footer{z-index:2;background:#fff;border-top:1px solid #eef2f7;flex-shrink:0;justify-content:flex-end;align-items:center;gap:10px;padding:12px 16px;display:flex;position:sticky;bottom:0}.add-facility-footer .btn{border-radius:9px;align-items:center;gap:6px;height:38px;min-height:38px;padding:0 14px;font-size:13.5px;font-weight:600;display:inline-flex}.facility-default-address{border:1px solid color-mix(in srgb, var(--brand) 22%, white);background:color-mix(in srgb, var(--brand) 7%, white);cursor:pointer;border-radius:10px;align-items:flex-start;gap:10px;min-height:40px;padding:10px 12px;display:flex}.facility-default-address input{accent-color:var(--brand);flex-shrink:0;width:15px;height:15px;margin-top:2px}.facility-default-address strong{color:var(--text);font-size:13px;font-weight:600;line-height:1.3;display:block}.facility-default-address small{color:#64748b;margin-top:2px;font-size:11.5px;line-height:1.35;display:block}.facility-address-fields{opacity:0;grid-template-rows:0fr;margin-top:0;transition:grid-template-rows .24s,opacity .2s,margin .2s;display:grid;overflow:hidden}.facility-address-fields.is-open{opacity:1;grid-template-rows:1fr;margin-top:12px}.facility-address-fields-inner{min-height:0;overflow:hidden}.facility-address-grid{align-items:start}.facility-user-field,.facility-user-control{position:relative}.facility-user-trigger{color:#64748b;width:100%;font:inherit;cursor:pointer;justify-content:space-between;align-items:center;gap:8px;display:flex}.facility-user-trigger.is-open{border-color:var(--brand);box-shadow:0 0 0 3px #0d94881f}.facility-user-trigger.has-error{border-color:var(--danger)}.facility-user-trigger:disabled{opacity:.65;cursor:not-allowed}.facility-user-dropdown{z-index:30;background:#fff;border:1px solid #e2e8f0;border-radius:10px;flex-direction:column;display:flex;position:absolute;top:calc(100% + 4px);left:0;right:0;overflow:hidden;box-shadow:0 10px 28px #0f172a1f}.facility-user-dropdown-portal{z-index:5000;box-sizing:border-box;position:fixed;inset:auto}.facility-user-dropdown-portal .facility-user-options{flex:auto;min-height:0;max-height:none;overflow-y:auto}.facility-user-search{border-bottom:1px solid #eef2f7;align-items:center;gap:8px;padding:8px 10px;display:flex}.facility-user-search input{width:100%;font:inherit;outline:none;font-size:13px;height:28px!important;min-height:28px!important;box-shadow:none!important;background:0 0!important;border:0!important;padding:0!important}.facility-user-options{max-height:180px;padding:4px;overflow-y:auto}.facility-user-empty{text-align:center;margin:0;padding:10px;font-size:12.5px}.facility-user-option{width:100%;color:inherit;font:inherit;text-align:center;cursor:pointer;background:0 0;border:0;border-radius:8px;align-items:center;gap:8px;padding:6px 8px;display:flex}.facility-user-option:hover{background:#f8fafc}.facility-user-meta{flex-direction:column;gap:0;min-width:0;display:flex}.facility-user-meta strong{color:var(--text);font-size:12.5px}.facility-user-meta small{color:#64748b;text-overflow:ellipsis;white-space:nowrap;font-size:11px;overflow:hidden}.facility-user-chips{flex-wrap:wrap;gap:6px;margin-top:8px;display:flex}.facility-user-chip{color:var(--text-secondary);background:#fff;border:1px solid #e2e8f0;border-radius:999px;align-items:center;gap:6px;padding:3px 7px 3px 4px;font-size:12px;line-height:1.2;display:inline-flex}.facility-user-chip button{color:var(--text-muted);place-items:center;display:grid}.facility-user-avatar{color:#fff;border-radius:999px;flex-shrink:0;place-items:center;width:20px;height:20px;font-size:9px;font-weight:700;display:grid}.facility-user-avatar.tone-green{background:#059669}.facility-user-avatar.tone-teal{background:var(--brand)}.facility-user-avatar.tone-blue{background:#2563eb}.facility-user-avatar.tone-amber{background:#d97706}.facility-user-avatar.tone-purple{background:#7c3aed}.facility-user-avatar.tone-rose{background:#e11d48}.facility-remarks-wrap textarea{resize:vertical;height:84px;max-height:110px;line-height:1.4;background:#fff!important;border:1px solid #e2e8f0!important;border-radius:8px!important;min-height:84px!important;padding:8px 10px 24px!important;font-size:13.5px!important}.facility-remarks-wrap .medicine-notes-counter{font-size:11px;bottom:6px;right:8px}.facility-status-cards{grid-template-columns:1fr;gap:10px;display:grid}.facility-status-card{border:1.5px solid var(--border);cursor:pointer;background:#fff;border-radius:12px;align-items:center;gap:12px;min-height:44px;margin:0;padding:12px 14px;transition:border-color .15s,background .15s,box-shadow .15s;display:flex}.facility-status-card input{accent-color:var(--brand);width:16px;height:16px;box-shadow:none;outline:none;flex-shrink:0;margin:0}.facility-status-card input:focus,.facility-status-card input:focus-visible{box-shadow:none!important;outline:none!important}.facility-status-card span{flex-direction:column;gap:2px;min-width:0;display:flex}.facility-status-card strong{color:var(--text);font-size:13.5px;font-weight:700;line-height:1.3;display:block}.facility-status-card small{color:#64748b;font-size:12px;font-weight:400;line-height:1.4;display:block}.facility-status-card.is-selected{border-color:color-mix(in srgb, var(--brand) 55%, white);background:color-mix(in srgb, var(--brand) 8%, white);box-shadow:0 0 0 1px color-mix(in srgb, var(--brand) 12%, transparent)}.facility-status-card.is-selected-inactive{border-color:color-mix(in srgb, var(--brand) 55%, white);background:color-mix(in srgb, var(--brand) 8%, white)}.facility-yesno-row{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.facility-yesno-group{flex-wrap:wrap;gap:8px;display:inline-flex}.facility-yesno-option{cursor:pointer;color:#475569;background:#fff;border:1px solid #e2e8f0;border-radius:9px;align-items:center;gap:8px;min-height:38px;padding:0 14px;font-size:13px;font-weight:600;transition:border-color .16s,background .16s,color .16s;display:inline-flex}.facility-yesno-option input{accent-color:var(--brand);width:14px;height:14px;margin:0}.facility-yesno-option.is-selected{border-color:color-mix(in srgb, var(--brand) 45%, white);background:color-mix(in srgb, var(--brand) 8%, white);color:var(--brand-dark)}.facility-status-option.is-selected.is-active{color:#15803d;background:#f0fdf4;border-color:#86efac}.facility-status-option.is-selected.is-inactive{background:var(--danger-bg);color:#b91c1c;border-color:#fecaca}.facility-address-banner{color:#065f46;background:#ecfdf5;border:1px solid #a7f3d0;border-radius:10px;align-items:flex-start;gap:10px;padding:10px 12px;display:flex}.facility-address-banner--inline{align-items:center;gap:8px;min-height:38px;padding:0 12px}.facility-address-banner>svg{color:#059669;flex-shrink:0;margin-top:1px}.facility-address-banner--inline>svg{margin-top:0}.facility-address-banner strong{font-size:13px;font-weight:700;display:block}.facility-address-banner p{color:#047857;margin:2px 0 0;font-size:12.5px;line-height:1.4}.facility-readonly-value{min-height:38px;color:var(--text);word-break:break-word;background:#f8fafc;border:1px solid #e2e8f0;border-radius:9px;align-items:center;padding:8px 11px;font-size:13.5px;display:flex}.facility-form-country{align-items:center;gap:6px;display:inline-flex}.facility-form-flag{font-size:14px;line-height:1}.facility-form-card--green .facility-form-card-icon{color:#059669;background:#0596691f}.facility-form-card--purple .facility-form-card-icon{color:#7c3aed;background:#7c3aed1f}.facility-form-card--cyan .facility-form-card-icon{color:#0891b2;background:#0891b21f}.facility-form-card--orange .facility-form-card-icon{color:#ea580c;background:#ea580c1f}.facility-form-card--blue .facility-form-card-icon{color:#2563eb;background:#2563eb1f}.facility-audit-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px;display:grid}.facility-audit-grid--row{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 20px;width:100%}.facility-audit-card{width:100%}.facility-audit-item{gap:6px;min-width:0;display:grid}.facility-audit-label{color:#64748b;text-transform:none;letter-spacing:0;font-size:12px;font-weight:600}.facility-audit-value{color:var(--text);align-items:center;gap:6px;min-width:0;font-size:13.5px;font-weight:600;display:inline-flex}.facility-audit-value svg{color:var(--text-muted);flex-shrink:0}.facility-form-load-error{text-align:center;color:#64748b;justify-items:center;gap:10px;padding:36px 20px;display:grid}.facility-form-load-error h3{color:var(--text);margin:0;font-size:1rem;font-weight:700}.facility-form-load-error p{max-width:360px;margin:0;font-size:13px;line-height:1.45}.add-facility-modal .filter-field input[readonly]{color:var(--text-secondary);cursor:default;background:#f8fafc}.add-facility-modal input:disabled,.add-facility-modal select:disabled,.add-facility-modal textarea:disabled{color:#64748b;cursor:not-allowed;background:#f8fafc!important}.add-facility-modal select.is-readonly:disabled{color:#475569;opacity:1;border-color:#e2e8f0;background:#f1f5f9!important}.facility-assigned-users-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0;padding:0;list-style:none;display:grid}@media (width>=981px){.facility-details-main .facility-assigned-users-list{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width<=720px){.facility-assigned-users-list{grid-template-columns:1fr}}.facility-assigned-user-item{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;align-items:flex-start;gap:10px;padding:10px 12px;display:flex}.facility-assigned-user-bullet{color:#0f766e;background:#ecfeff;border-radius:999px;flex-shrink:0;justify-content:center;align-items:center;width:28px;height:28px;margin-top:1px;display:inline-flex}.facility-assigned-user-body{gap:2px;min-width:0;display:grid}.facility-assigned-user-name-row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.facility-assigned-user-name-row strong{color:var(--text);font-size:13.5px;font-weight:650}.facility-assigned-user-meta{color:#64748b;font-size:12.5px;line-height:1.35}.facility-assigned-user-status{border-radius:999px;align-items:center;padding:1px 8px;font-size:11px;font-weight:600;display:inline-flex}.facility-assigned-user-status.is-inactive{color:#b91c1c;background:#fef2f2}.facility-assigned-users-empty{color:#64748b;background:#f8fafc;border:1px dashed #cbd5e1;border-radius:10px;margin:0;padding:12px 14px;font-size:13px}@media (width<=900px){.add-facility-modal.modal-dialog,.add-facility-modal.is-edit.modal-dialog{width:min(100%,100vw - 24px);max-width:min(100%,100vw - 24px);max-height:92vh}.facility-form-grid.two,.facility-form-grid.three,.facility-form-grid.four,.facility-form-split,.facility-form-lower-grid,.facility-address-grid,.facility-status-cards,.facility-audit-grid,.facility-audit-grid--row{grid-template-columns:1fr}}.facility-details-modal.modal-dialog{border-radius:14px;flex-direction:column;width:min(1120px,96vw);max-width:min(1120px,96vw);max-height:min(92vh,980px);display:flex;overflow:hidden}.facility-details-header{border-bottom:1px solid var(--border);align-items:center;padding:16px 20px}.facility-details-header-main{align-items:center;gap:12px;min-width:0;display:flex}.facility-details-header-icon{width:40px;height:40px;color:var(--brand);background:#0d94881f;border-radius:10px;flex-shrink:0;place-items:center;display:grid}.facility-details-header h2{color:var(--text);margin:0;font-size:18px;font-weight:700;line-height:1.2}.facility-details-close{color:#64748b;cursor:pointer;background:0 0;border:none;border-radius:999px;place-items:center;width:34px;height:34px;display:grid}.facility-details-close:hover{color:var(--text);background:#f1f5f9}.facility-details-body{background:#f8fafc;flex:1;min-height:0;padding:16px 18px;overflow-y:auto}.facility-details-layout{align-items:start;gap:14px;display:grid}.facility-details-sidebar{display:none}.facility-details-profile{text-align:center;justify-items:center;gap:6px;margin-bottom:18px;display:grid}.facility-details-avatar{width:72px;height:72px;color:var(--brand);background:#0d94881f;border:3px solid #0d94882e;border-radius:999px;place-items:center;margin-bottom:6px;display:grid}.facility-details-name{color:var(--text);word-break:break-word;margin:0;font-size:16px;font-weight:700}.facility-details-status-badge{border-radius:999px;align-items:center;gap:5px;margin-top:4px;padding:4px 10px;font-size:12px;font-weight:700;display:inline-flex}.facility-details-status-badge.is-active{color:#047857;background:#d1fae5}.facility-details-status-badge.is-inactive{color:#b91c1c;background:#fee2e2}.facility-details-meta-list{gap:12px;margin:0;padding:0;list-style:none;display:grid}.facility-details-meta-list li{align-items:flex-start;gap:10px;min-width:0;display:flex}.facility-details-meta-list svg{color:var(--brand);flex-shrink:0;margin-top:2px}.facility-details-meta-list span{color:var(--text-muted);text-transform:uppercase;letter-spacing:.02em;font-size:11px;font-weight:600;display:block}.facility-details-meta-list strong{color:var(--text);word-break:break-word;margin-top:2px;font-size:13px;font-weight:600;line-height:1.35;display:block}.facility-details-main{gap:12px;min-width:0;display:grid}.facility-details-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;overflow:hidden}.facility-details-card-header{border-bottom:1px solid #f1f5f9;align-items:center;gap:8px;padding:10px 14px;display:flex}.facility-details-card-header h3{margin:0;font-size:13.5px;font-weight:700}.facility-details-card-icon{border-radius:8px;flex-shrink:0;place-items:center;width:26px;height:26px;display:grid}.facility-details-card-body{gap:12px;padding:14px;display:grid}.facility-details-card--teal .facility-details-card-header{background:var(--brand-muted)}.facility-details-card--teal .facility-details-card-header h3,.facility-details-card--teal .facility-details-card-icon{color:var(--brand)}.facility-details-card--teal .facility-details-card-icon{background:#0d94881f}.facility-details-card--blue .facility-details-card-header{background:#eff6ff}.facility-details-card--blue .facility-details-card-header h3,.facility-details-card--blue .facility-details-card-icon{color:#2563eb}.facility-details-card--blue .facility-details-card-icon{background:#2563eb1f}.facility-details-card--purple .facility-details-card-header{background:#f5f3ff}.facility-details-card--purple .facility-details-card-header h3,.facility-details-card--purple .facility-details-card-icon{color:#7c3aed}.facility-details-card--purple .facility-details-card-icon{background:#7c3aed1f}.facility-details-card--green .facility-details-card-header{background:#ecfdf5}.facility-details-card--green .facility-details-card-header h3,.facility-details-card--green .facility-details-card-icon{color:#059669}.facility-details-card--green .facility-details-card-icon{background:#0596691f}.facility-details-card--orange .facility-details-card-header{background:#fff7ed}.facility-details-card--orange .facility-details-card-header h3,.facility-details-card--orange .facility-details-card-icon{color:#ea580c}.facility-details-card--orange .facility-details-card-icon{background:#ea580c1f}.facility-details-grid{gap:14px 18px;display:grid}.facility-details-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.facility-details-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.facility-details-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.facility-details-item{gap:4px;min-width:0;display:grid}.facility-details-label{letter-spacing:.02em;text-transform:uppercase;color:var(--text-muted);font-size:11.5px;font-weight:600;display:block}.facility-details-value{color:var(--text);word-break:break-word;white-space:pre-wrap;font-size:13.5px;font-weight:600;line-height:1.4}.facility-details-country,.facility-details-inline,.facility-details-yesno{align-items:center;gap:6px;display:inline-flex}.facility-details-flag{font-size:14px;line-height:1}.facility-details-type-pill{color:#047857;background:#d1fae5;border-radius:999px;align-items:center;padding:3px 10px;font-size:12px;font-weight:700;display:inline-flex}.facility-details-yesno.is-yes{color:#047857}.facility-details-yesno.is-no{color:#64748b}.facility-details-address-banner{color:#065f46;background:#ecfdf5;border:1px solid #a7f3d0;border-radius:10px;align-items:flex-start;gap:10px;padding:10px 12px;display:flex}.facility-details-address-banner strong{font-size:13px;font-weight:700;display:block}.facility-details-address-banner p{color:#047857;margin:2px 0 0;font-size:12.5px;line-height:1.4}.facility-details-split{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.facility-details-triple{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.facility-details-status-block{justify-items:start;gap:8px;display:grid}.facility-details-status-block p{color:#64748b;margin:0;font-size:12.5px;line-height:1.45}.facility-details-audit-grid{grid-template-columns:1fr 1fr;gap:12px;display:grid}.facility-details-footer{border-top:1px solid var(--border);background:#fff;justify-content:flex-end;padding:12px 18px}.facility-details-skeleton{gap:14px;display:grid}.facility-details-skeleton-left,.facility-details-skel-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;gap:10px;padding:16px;display:grid}.facility-details-skeleton-right{gap:12px;display:grid}.facility-details-skel-avatar{border-radius:999px;width:72px;height:72px;margin:0 auto 8px}.facility-details-error{text-align:center;color:#64748b;align-content:center;justify-items:center;gap:10px;min-height:280px;display:grid}.facility-details-error h3{color:var(--text);margin:0;font-size:16px}.facility-details-error p{max-width:360px;margin:0;font-size:13.5px}.facility-details-error .btn{align-items:center;gap:6px;margin-top:4px;display:inline-flex}@media (width<=980px){.facility-details-layout,.facility-details-skeleton{grid-template-columns:1fr}.facility-details-grid.three,.facility-details-grid.four,.facility-details-split,.facility-details-triple,.facility-details-audit-grid{grid-template-columns:1fr 1fr}}@media (width<=720px){.facility-details-modal.modal-dialog{width:min(100vw - 16px,1120px);max-width:min(100vw - 16px,1120px)}.facility-details-grid.two,.facility-details-grid.three,.facility-details-grid.four,.facility-details-split,.facility-details-triple,.facility-details-audit-grid{grid-template-columns:1fr}}.view-facility-modal.modal-dialog{border-radius:12px;flex-direction:column;width:min(980px,96vw);max-height:85vh;display:flex;box-shadow:0 0 0 1px #0f172a0a,0 18px 48px #0f172a29}.view-facility-modal .modal-header{border-bottom:1px solid #eef2f7;flex-shrink:0;padding:16px 20px 14px}.view-facility-title-wrap{align-items:flex-start;gap:12px;display:flex}.view-facility-icon{background:var(--brand-soft);width:34px;height:34px;color:var(--brand-dark);border-radius:10px;flex-shrink:0;place-items:center;margin-top:2px;display:grid}.view-facility-modal .modal-header h2{letter-spacing:-.02em;color:var(--text);margin:0;font-size:24px;font-weight:700}.view-facility-modal .modal-subtitle{color:#64748b;margin:4px 0 0;font-size:13.5px}.view-facility-body{scroll-behavior:smooth;scrollbar-width:thin;scrollbar-color:#cbd5e1 transparent;flex:1;min-height:0;padding:16px 20px 8px;overflow:hidden auto}.view-facility-footer{background:#fff;border-top:1px solid #eef2f7;flex-shrink:0;justify-content:flex-end;gap:10px;padding:12px 20px 16px;display:flex}.view-facility-footer .btn{height:40px;min-height:40px;padding:0 16px}.view-facility-section{border-bottom:1px solid #f1f5f9;margin-bottom:18px;padding-bottom:16px}.view-facility-section:last-child{border-bottom:none;margin-bottom:4px;padding-bottom:0}.view-facility-section h3{color:var(--text);margin:0 0 12px;font-size:15px;font-weight:600}.view-facility-basic-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 28px;display:grid}.view-facility-col{flex-direction:column;gap:10px;display:flex}.facility-view-item{flex-direction:column;gap:3px;min-width:0;display:flex}.facility-view-label{color:#64748b;font-size:12.5px;font-weight:500}.facility-view-value{color:var(--text);word-break:break-word;font-size:14px;font-weight:550;line-height:1.45}.facility-view-value .medicine-status-badge,.facility-view-value .facility-type-badge,.facility-view-value .facility-address-source-badge{width:fit-content}.facility-address-source-badge{color:#047857;background:#d1fae5;border-radius:999px;align-items:center;padding:3px 9px;font-size:12px;font-weight:600;display:inline-flex}.facility-address-source-badge.is-custom{color:#4338ca;background:#e0e7ff}.view-facility-address-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.view-facility-card{background:#fff;border:1px solid #e2e8f0;border-radius:10px;flex-direction:column;gap:10px;padding:12px 14px;display:flex}.view-facility-card h4{color:var(--text);margin:0;font-size:13.5px;font-weight:600}.view-facility-card.is-loading .skeleton-line{margin-bottom:8px}.view-facility-contact-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 16px;display:grid}.view-facility-empty-users{text-align:center;color:#64748b;background:#f8fafc;border:1px dashed #e2e8f0;border-radius:10px;padding:16px;font-size:13.5px}.view-facility-users-wrap{border:1px solid #e2e8f0;border-radius:10px;max-height:260px;overflow:auto}.view-facility-users-table{border-collapse:collapse;width:100%;font-size:13px}.view-facility-users-table thead th{z-index:1;color:#64748b;letter-spacing:.04em;text-align:center;white-space:nowrap;background:#f8fafc;border-bottom:1px solid #e2e8f0;padding:10px 12px;font-size:11px;font-weight:600;position:sticky;top:0}.view-facility-users-table tbody td{color:var(--text-secondary);vertical-align:middle;border-bottom:1px solid #f1f5f9;padding:10px 12px}.view-facility-users-table tbody tr:nth-child(2n){background:#fafbfc}.view-facility-users-table tbody tr:last-child td{border-bottom:none}.view-facility-user-cell{align-items:center;gap:8px;display:inline-flex}.view-facility-user-cell strong{color:var(--text);font-size:13px;font-weight:600}.view-facility-skeleton{flex-direction:column;gap:16px;display:flex}.view-facility-users-skel{flex-direction:column;gap:8px;display:flex}@media (width<=900px){.view-facility-modal.modal-dialog{width:min(100%,96vw);max-height:90vh}.view-facility-basic-grid,.view-facility-address-grid,.view-facility-contact-grid{grid-template-columns:1fr}}.grn-receive-confirm-overlay{z-index:1200}.grn-receive-confirm-modal.modal-dialog{background:#fff;border-radius:16px;flex-direction:column;width:min(92vw,440px);max-width:440px;max-height:90vh;padding:22px 22px 18px;display:flex;position:relative;overflow:hidden;box-shadow:0 0 0 1px #0000000a,0 24px 64px #10182838}.grn-receive-confirm-close{z-index:1;position:absolute;top:12px;right:12px}.grn-receive-confirm-hero{text-align:center;flex-direction:column;align-items:center;gap:8px;padding:4px 8px 16px;display:flex}.grn-receive-confirm-hero-icon{color:#0f766e;background:#ecfdf5;border-radius:999px;place-items:center;width:52px;height:52px;margin-bottom:2px;display:grid}.grn-receive-confirm-hero h2{color:var(--text);margin:0;font-size:18px;font-weight:800;line-height:1.25}.grn-receive-confirm-hero p{max-width:32ch;color:var(--text-muted);margin:0;font-size:13px;line-height:1.45}.grn-receive-confirm-choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.grn-receive-confirm-choice{border:1.5px solid var(--border);cursor:pointer;text-align:center;background:#fff;border-radius:12px;flex-direction:column;justify-content:flex-start;align-items:center;gap:10px;min-height:132px;padding:14px 12px 16px;transition:border-color .15s,background .15s,box-shadow .15s;display:flex;position:relative}.grn-receive-confirm-choice:disabled{cursor:not-allowed;opacity:.7}.grn-receive-confirm-choice.is-create{background:#f0fdf4;border-color:#86efac}.grn-receive-confirm-choice.is-skip{background:#fff1f2;border-color:#fecaca}.grn-receive-confirm-choice.is-create.is-selected{border-color:#16a34a;box-shadow:0 0 0 3px #16a34a1f}.grn-receive-confirm-choice.is-skip.is-selected{border-color:#ef4444;box-shadow:0 0 0 3px #ef44441f}.grn-receive-confirm-check{color:#fff;background:#fff;border:2px solid #94a3b8;border-radius:4px;place-items:center;width:16px;height:16px;display:grid;position:absolute;top:10px;left:10px}.grn-receive-confirm-choice.is-create .grn-receive-confirm-check{border-color:#22c55e}.grn-receive-confirm-choice.is-skip .grn-receive-confirm-check{border-color:#f87171}.grn-receive-confirm-choice.is-create.is-selected .grn-receive-confirm-check{background:#16a34a;border-color:#16a34a}.grn-receive-confirm-choice.is-skip.is-selected .grn-receive-confirm-check{background:#ef4444;border-color:#ef4444}.grn-receive-confirm-choice-icon{background:#fff;border-radius:999px;place-items:center;width:40px;height:40px;margin-top:8px;display:grid}.grn-receive-confirm-choice.is-create .grn-receive-confirm-choice-icon{color:#16a34a;box-shadow:0 0 0 1px #bbf7d0}.grn-receive-confirm-choice.is-skip .grn-receive-confirm-choice-icon{color:#ef4444;box-shadow:0 0 0 1px #fecaca}.grn-receive-confirm-choice-text{flex-direction:column;gap:4px;display:flex}.grn-receive-confirm-choice-text strong{font-size:13px;font-weight:800;line-height:1.25}.grn-receive-confirm-choice.is-create .grn-receive-confirm-choice-text strong{color:#15803d}.grn-receive-confirm-choice.is-skip .grn-receive-confirm-choice-text strong{color:#b91c1c}.grn-receive-confirm-choice-text small{color:#475569;font-size:11.5px;line-height:1.35}.grn-receive-confirm-footer{flex-wrap:wrap;justify-content:center;gap:10px;margin-top:18px;padding-top:4px;display:flex}.grn-receive-confirm-footer .btn{text-align:center;justify-content:center;min-width:110px}@media (width<=480px){.grn-receive-confirm-choices{grid-template-columns:1fr}.grn-receive-confirm-footer{flex-direction:column-reverse}.grn-receive-confirm-footer .btn{width:100%}}.grn-modal.modal-dialog{background:#fff;border-radius:12px;flex-direction:column;width:min(96vw,1800px);max-width:1800px;height:auto;max-height:92vh;display:flex;overflow:hidden;box-shadow:0 0 0 1px #0000000a,0 24px 64px #10182838,0 8px 20px #1018281a}.grn-modal-header{border-bottom:1px solid var(--border);z-index:5;background:#fff;flex-shrink:0;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px 16px;padding:10px 14px;display:grid}.grn-modal-title-wrap{flex:none;align-items:flex-start;gap:10px;min-width:0;display:flex}.grn-modal-icon{width:34px;height:34px;color:var(--brand-dark);background:#ecfdf5;border-radius:10px;flex-shrink:0;place-items:center;display:grid}.grn-modal-header h2{color:var(--text);white-space:nowrap;margin:0;font-size:15px;font-weight:700;line-height:1.25}.grn-modal-title-row{white-space:normal;flex-wrap:wrap;align-items:center;gap:8px;display:inline-flex}.grn-draft-banner{color:#1e3a8a;background:#eff6ff;border:1px solid #bfdbfe;border-radius:8px;margin:0 14px 10px;padding:10px 12px;font-size:.875rem;line-height:1.4}.grn-draft-banner strong{font-weight:700}.grn-draft-banner.is-error{background:var(--danger-bg);color:#dc2626;border-color:#fecaca}.grn-modal-subtitle{color:var(--text-muted);flex-direction:column;gap:2px;margin:2px 0 0;font-size:11.5px;font-weight:400;display:flex}.grn-modal-subtitle strong{color:var(--brand-dark);font-weight:700}.grn-related-po-link{font:inherit;color:var(--brand-dark);cursor:pointer;background:0 0;border:0;padding:0;font-weight:700}.grn-related-po-link:hover:not(:disabled){text-decoration:underline}.grn-related-po-link:disabled{cursor:default;opacity:.7}.grn-header-fields{grid-template-columns:minmax(0,1.15fr) minmax(0,1.25fr) minmax(0,1.15fr) minmax(0,.95fr) minmax(0,1.2fr);align-items:start;gap:8px 12px;width:100%;min-width:0;margin:0;display:grid;transform:none}.grn-header-field{flex:none;grid-template-rows:14px 32px;grid-auto-rows:0;align-items:stretch;gap:4px;width:100%;min-width:0;max-width:none;display:grid;position:relative;overflow:visible}.grn-header-field-vendor{grid-template-rows:14px 32px auto;grid-auto-rows:auto}.grn-field-help{color:var(--text-muted);margin:0;padding:0;font-size:10px;font-weight:400;line-height:1.35;display:block}.grn-field-warn{color:#b45309;margin-top:4px;font-size:10px;font-weight:600;line-height:1.3;display:block}.grn-table .app-date-input.has-warning .app-date-input-field{background:#fffbeb;border-color:#f59e0b}.grn-credit-available-text{color:#374151;font-weight:700}.grn-header-field label{color:var(--text-muted);white-space:nowrap;text-overflow:ellipsis;height:14px;margin:0;padding:0;font-size:10px;font-weight:600;line-height:14px;display:block;overflow:hidden}.grn-header-field>input,.grn-header-field>.grn-input-disabled,.grn-header-field>.autocomplete,.grn-header-field>.app-date-input{grid-row:2;width:100%;min-width:0;height:32px;min-height:32px;max-height:32px}.grn-header-field>input,.grn-header-field>.grn-input-disabled:not(.app-date-input):not(.autocomplete){border:1px solid var(--border);width:100%;height:32px;min-height:32px;max-height:32px;color:var(--text);box-sizing:border-box;text-overflow:ellipsis;white-space:nowrap;background:#fff;border-radius:8px;padding:0 8px;font-size:12px;line-height:30px;overflow:hidden}.grn-header-field .autocomplete,.grn-header-field .app-date-input{width:100%;min-width:0}.grn-header-field .autocomplete-control{box-sizing:border-box;border-radius:8px;align-items:center;width:100%;height:32px;min-height:32px;max-height:32px;padding:0 6px;display:flex}.grn-header-field .autocomplete-control input{height:30px;min-height:30px;max-height:30px;padding:0;font-size:12px;line-height:30px}.grn-header-field .app-date-input,.grn-header-field .app-date-input.grn-input-disabled{cursor:default;color:inherit;box-shadow:none!important;background:0 0!important;border:none!important;padding:0!important;overflow:visible!important}.grn-header-field .app-date-input-control{box-sizing:border-box;background:0 0;border:none;border-radius:0;align-items:center;width:100%;height:32px;min-height:32px;max-height:32px;padding:0;display:flex}.grn-header-field .app-date-input-field{box-sizing:border-box;border:1px solid var(--border);height:32px;min-height:32px;max-height:32px;color:var(--text);background:#fff;border-radius:8px;outline:none;padding:0 36px 0 8px;font-size:12px;line-height:30px}.grn-header-field .app-date-input-field:focus{border-color:var(--brand-dark);box-shadow:0 0 0 3px #0f766e1f}.grn-header-field .app-date-input.has-error .app-date-input-field{border-color:#dc2626;box-shadow:0 0 0 3px #dc26261a}.grn-header-field .grn-field-error{z-index:1;pointer-events:none;margin:0;font-size:9px;line-height:1.2;position:absolute;inset:calc(100% + 1px) 0 auto}.grn-modal-header>.icon-btn{flex:none;place-self:start end;margin:0}.grn-modal-body{background:#fff;flex-direction:column;flex:auto;gap:8px;min-height:0;padding:8px 14px 0;display:flex;overflow:hidden auto}.grn-modal-loading{min-height:220px;color:var(--text-secondary);justify-content:center;align-items:center;gap:10px;font-size:14px;display:flex}.grn-modal-loading .spin,.grn-modal-footer .spin{animation:.8s linear infinite spin}.grn-card{border:1px solid var(--border);background:#fff;border-radius:12px;min-width:0;padding:12px;box-shadow:0 1px 2px #0f172a08}.grn-items-card{--grn-table-head-h:56px;--grn-table-row-h:68px;--grn-visible-rows:6;--grn-table-visible-h:calc(var(--grn-table-head-h) + (var(--grn-visible-rows) * var(--grn-table-row-h)));flex-direction:column;flex:none;min-height:0;padding:10px;display:flex}.grn-items-card .grn-table-wrap{height:var(--grn-table-visible-h);max-height:var(--grn-table-visible-h);min-height:var(--grn-table-visible-h);flex:none}.grn-summary-card{flex:none;padding:10px 12px}.grn-card-head{border-bottom:2px solid #0f766e2e;align-items:center;gap:8px;width:100%;margin-bottom:10px;padding-bottom:8px;display:flex}.grn-card-head-toggle{cursor:pointer;text-align:center;background:0 0;border:none;border-bottom:2px solid #0f766e2e;margin-bottom:0}.grn-summary-card.is-open .grn-card-head-toggle{margin-bottom:12px}.grn-card-head h3{color:var(--brand-dark);letter-spacing:.01em;flex:auto;margin:0;font-size:14px;font-weight:700}.grn-collapse-chevron{color:var(--brand-dark);flex-shrink:0;transition:transform .18s}.grn-collapse-chevron.is-open{transform:rotate(180deg)}.grn-card-icon{width:26px;height:26px;color:var(--brand-dark);background:#0d94881f;border-radius:8px;flex-shrink:0;place-items:center;display:grid}.grn-table-wrap{border:1px solid var(--border);-webkit-overflow-scrolling:touch;scrollbar-gutter:stable;background:#fff;border-radius:10px;width:100%;overflow:auto}.grn-table-wrap::-webkit-scrollbar{height:10px}.grn-table-wrap::-webkit-scrollbar-thumb{background:var(--text-muted);border-radius:999px}.grn-table-wrap::-webkit-scrollbar-track{background:#e2e8f0}.grn-table{border-collapse:separate;border-spacing:0;table-layout:fixed;max-width:none}.grn-table col{box-sizing:border-box}.grn-table th,.grn-table td{box-sizing:border-box;text-align:center;background:#fff;border-bottom:1px solid #eef2f7;border-right:1px solid #f1f5f9;padding:6px 8px;font-size:12px;position:relative;overflow:visible}.grn-table td{vertical-align:top;height:auto;min-height:var(--grn-table-row-h,68px)}.grn-table th{z-index:3;height:var(--grn-table-head-h,56px);min-height:var(--grn-table-head-h,56px);background:var(--brand-dark);color:#fff;letter-spacing:.02em;white-space:normal;text-overflow:unset;vertical-align:middle;word-break:normal;-webkit-hyphens:manual;hyphens:manual;border-right-color:#ffffff1f;padding:8px 10px;font-size:12px;font-weight:700;line-height:1.2;position:sticky;top:0;overflow:visible}.grn-table .col-num,.grn-table td.col-num{text-align:center;font-variant-numeric:tabular-nums}.grn-table th.col-num,.grn-table th.grn-col-sticky-right{text-align:center}.grn-table tbody tr:nth-child(2n) td{background:#f8fafc}.grn-table tbody tr:nth-child(odd) td{background:#fff}.grn-table tbody tr.is-invalid-row td{background:var(--danger-bg)}.grn-table tbody tr.is-not-received-row td{background:#f8fafc}.grn-table tbody tr.is-not-received-row:nth-child(2n) td{background:#f1f5f9}.grn-table tbody tr.is-not-received-row td.grn-col-sticky-left,.grn-table tbody tr.is-not-received-row td.grn-col-sticky-right{background:inherit}.grn-receipt-status-badge{white-space:nowrap;border:1px solid #0000;border-radius:999px;justify-content:center;align-items:center;min-height:24px;padding:2px 8px;font-size:11px;font-weight:600;line-height:1.2;display:inline-flex}.grn-receipt-status-badge.is-not_received{color:#64748b;background:#f1f5f9;border-color:#e2e8f0}.grn-receipt-status-badge.is-partially_received{color:#1d4ed8;background:#dbeafe;border-color:#bfdbfe}.grn-receipt-status-badge.is-fully_received{color:#15803d;background:#dcfce7;border-color:#bbf7d0}.grn-table tbody tr.is-invalid-row:nth-child(2n) td{background:#fee2e2}.grn-table th.grn-col-sticky-left,.grn-table td.grn-col-sticky-left{z-index:2;position:sticky}.grn-table th.grn-col-index,.grn-table td.grn-col-index{text-align:center;font-variant-numeric:tabular-nums;color:#374151;width:48px;min-width:48px;max-width:48px;box-shadow:none;padding-left:6px;padding-right:6px;font-weight:600;left:0}.grn-table th.grn-col-medicine,.grn-table td.grn-col-medicine{width:220px;min-width:220px;max-width:220px;box-shadow:4px 0 10px -4px #0f172a29}.grn-table th.grn-col-sticky-left{z-index:5;background:var(--brand-dark);color:#fff}.grn-table th.grn-col-index{color:#fff}.grn-internal-notice{color:#1d4ed8;background:#eff6ff;border:1px solid #bfdbfe;border-radius:10px;align-items:flex-start;gap:10px;margin:0 0 10px;padding:10px 12px;display:flex}.grn-internal-notice svg{flex:none;margin-top:1px}.grn-internal-notice p{margin:0;font-size:13px;font-weight:600;line-height:1.4}.grn-table.is-internal-issue th.grn-col-index,.grn-table.is-internal-issue td.grn-col-index{text-align:center;vertical-align:middle;width:176px;min-width:176px;max-width:176px;padding:8px 6px}.grn-table.is-internal-issue tbody tr{--grn-table-row-h:72px}.grn-issue-status{text-align:center;border-left:4px solid;border-radius:8px;align-items:flex-start;gap:8px;width:100%;min-height:56px;padding:8px 8px 8px 10px;line-height:1.25;display:flex}.grn-issue-status strong{font-size:13px;display:block}.grn-issue-status span{color:var(--text-secondary);margin-top:2px;font-size:11px;font-weight:500;display:block}.grn-issue-status svg{flex:none;margin-top:1px}.grn-issue-status.is-approve{color:#15803d;background:#ecfdf3;border-left-color:#16a34a}.grn-issue-status.is-hold{color:#c2410c;background:#fff7ed;border-left-color:#ea580c}.grn-issue-status.is-reject{background:var(--danger-bg);color:#b91c1c;border-left-color:#dc2626}.grn-table tbody tr.grn-issue-banner-row td{background:0 0;border-top:none;padding:0 8px 8px}.grn-issue-banner{border:1px solid #0000;border-radius:8px;align-items:center;gap:10px;width:100%;min-height:40px;padding:8px 10px;display:flex}.grn-issue-banner.is-hold{color:#c2410c;background:#fff9f2;border-color:#fed7aa}.grn-issue-banner.is-reject{background:var(--danger-bg);color:#b91c1c;border-color:#fecaca}.grn-issue-banner-copy{min-width:0;color:var(--text-secondary);flex-wrap:wrap;flex:1;justify-content:flex-start;align-items:center;gap:8px 10px;font-size:13px;display:flex}.grn-issue-banner-copy strong{font-size:13px}.grn-issue-banner.is-hold .grn-issue-banner-copy strong{color:#ea580c}.grn-issue-banner.is-reject .grn-issue-banner-copy strong{color:#dc2626}.grn-issue-dot{color:var(--text-muted);margin:0 4px}.grn-issue-details-btn{cursor:pointer;background:0 0;border-radius:8px;flex:none;margin-left:0;padding:4px 10px;font-size:13px;font-weight:600}.grn-issue-banner.is-hold .grn-issue-details-btn{color:#ea580c;border:1px solid #fdba74}.grn-issue-banner.is-reject .grn-issue-details-btn{color:#dc2626;border:1px solid #fca5a5}.grn-issue-details-overlay{z-index:1100;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#0f172a73;justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;inset:0}.grn-item-status-modal{background:#fff;border-radius:16px;width:min(860px,100vw - 32px);max-height:calc(100vh - 48px);overflow:auto;box-shadow:0 24px 60px #0f172a47}.grn-item-status-header{justify-content:space-between;align-items:flex-start;gap:12px;padding:20px 22px 12px;display:flex}.grn-item-status-title-wrap{align-items:flex-start;gap:12px;display:flex}.grn-item-status-title-icon{color:#ea580c;background:#fff7ed;border-radius:10px;place-items:center;width:36px;height:36px;display:grid}.grn-item-status-modal.is-reject .grn-item-status-title-icon{background:var(--danger-bg);color:#dc2626}.grn-item-status-header h3{color:var(--text);margin:0;font-size:20px}.grn-item-status-header p{color:#64748b;margin:4px 0 0;font-size:13px}.grn-item-status-x{color:#64748b;cursor:pointer;background:0 0;border:none;padding:4px}.grn-item-status-summary{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;align-items:center;gap:14px;margin:0 22px 16px;padding:14px 16px;display:flex}.grn-item-status-pill-icon{width:40px;height:40px;color:var(--brand-dark);background:#fff;border:1px solid #d1fae5;border-radius:999px;flex:none;place-items:center;display:grid}.grn-item-status-summary-copy{flex:1;min-width:0}.grn-item-status-summary-copy strong{color:var(--text);font-size:16px;display:block}.grn-item-status-summary-copy span{color:#64748b;font-size:13px}.grn-item-status-badge{letter-spacing:.04em;border-radius:999px;flex:none;align-items:center;gap:6px;padding:6px 12px;font-size:12px;font-weight:700;display:inline-flex}.grn-item-status-badge.is-hold{color:#c2410c;background:#fff7ed;border:1px solid #fdba74}.grn-item-status-badge.is-reject{background:var(--danger-bg);color:#b91c1c;border:1px solid #fca5a5}.grn-item-status-qty{text-align:right;flex:none;margin-left:auto}.grn-item-status-qty span{letter-spacing:.06em;text-transform:uppercase;color:var(--text-muted);font-size:11px;font-weight:700;display:block}.grn-item-status-qty strong{color:var(--text);font-size:20px}.grn-item-status-qty em{color:#64748b;font-size:13px;font-style:normal;font-weight:600}.grn-item-status-grid{grid-template-columns:1fr 1fr;gap:20px;padding:4px 22px 8px;display:grid}.grn-item-status-col h4{color:var(--text);align-items:center;gap:8px;margin:0 0 12px;font-size:14px;display:flex}.grn-item-status-col h4 svg{color:var(--brand-dark)}.grn-item-status-modal.is-hold .grn-item-status-col:first-child h4 svg{color:#ea580c}.grn-item-status-modal.is-reject .grn-item-status-col:first-child h4 svg{color:#dc2626}.grn-item-status-reason,.grn-item-status-meta{color:#ea580c;align-items:flex-start;gap:10px;margin-bottom:12px;display:flex}.grn-item-status-modal.is-reject .grn-item-status-reason,.grn-item-status-modal.is-reject .grn-item-status-meta{color:#dc2626}.grn-item-status-reason{background:#fff7ed;border-radius:10px;padding:10px 12px}.grn-item-status-modal.is-reject .grn-item-status-reason{background:var(--danger-bg)}.grn-item-status-reason span,.grn-item-status-meta span{letter-spacing:.05em;text-transform:uppercase;color:var(--text-muted);font-size:11px;font-weight:700;display:block}.grn-item-status-reason p,.grn-item-status-meta p{color:var(--text);margin:2px 0 0;font-size:14px;font-weight:600}.grn-item-status-timeline{border-left:2px solid #e2e8f0;margin:0;padding:0 0 0 10px;list-style:none}.grn-item-status-timeline li{padding:0 0 16px 18px;position:relative}.grn-item-status-dot{color:#64748b;background:#e2e8f0;border-radius:999px;justify-content:center;align-items:center;width:24px;height:24px;line-height:0;display:flex;position:absolute;top:0;left:-18px}.grn-item-status-dot svg{flex:none;display:block}.grn-item-status-timeline li.is-current .grn-item-status-dot{color:#fff;background:#ea580c}.grn-item-status-timeline li.is-current.is-reject .grn-item-status-dot{background:#dc2626}.grn-item-status-timeline strong,.grn-item-status-timeline span:not(.grn-item-status-dot){display:block}.grn-item-status-timeline strong{color:var(--text);font-size:14px}.grn-item-status-timeline span{color:#64748b;font-size:12px}.grn-item-status-event-card{background:#fff7ed;border:1px solid #fdba74;border-radius:10px;padding:10px 12px}.grn-item-status-timeline li.is-reject .grn-item-status-event-card{background:var(--danger-bg);border-color:#fca5a5}.grn-item-status-event-reason{color:#c2410c;margin:8px 0 0;font-size:13px;font-weight:600}.grn-item-status-timeline li.is-reject .grn-item-status-event-reason{color:#b91c1c}.grn-item-status-footer{justify-content:flex-end;padding:12px 22px 18px;display:flex}.grn-item-status-close{border:1px solid var(--brand-dark);color:var(--brand-dark);cursor:pointer;background:#fff;border-radius:8px;padding:8px 16px;font-weight:600}@media (width<=760px){.grn-item-status-grid,.grn-item-status-summary{flex-wrap:wrap;grid-template-columns:1fr}.grn-item-status-qty{text-align:center;width:100%;margin-left:0}}.grn-table tbody tr:nth-child(2n) td.grn-col-sticky-left{background:#f8fafc}.grn-table tbody tr:nth-child(odd) td.grn-col-sticky-left{background:#fff}.grn-table tbody tr.is-invalid-row td.grn-col-sticky-left{background:var(--danger-bg)}.grn-table th.grn-col-sticky-right,.grn-table td.grn-col-sticky-right{z-index:2;text-align:center;width:88px;min-width:88px;max-width:88px;position:sticky;right:0;box-shadow:-4px 0 10px -4px #0f172a29}.grn-table th.grn-col-sticky-right{z-index:5;background:var(--brand-dark)}.grn-table tbody tr:nth-child(2n) td.grn-col-sticky-right{background:#f8fafc}.grn-table tbody tr:nth-child(odd) td.grn-col-sticky-right{background:#fff}.grn-table tbody tr.is-invalid-row td.grn-col-sticky-right{background:var(--danger-bg)}.grn-table .table-input,.grn-table input.table-input,.grn-summary-grid input,.grn-summary-grid textarea,.grn-payment-grid input{border:1px solid var(--border);width:100%;min-width:0;height:36px;min-height:36px;color:var(--text);box-sizing:border-box;background:#fff;border-radius:8px;padding:0 8px;font-size:12.5px}.grn-table .autocomplete-control{border-radius:8px;height:36px;min-height:36px;padding:0 8px}.grn-table .autocomplete-control input{height:34px;font-size:12.5px}.grn-table .table-input-num{text-align:right;font-variant-numeric:tabular-nums}.grn-table .table-input:focus,.grn-summary-grid input:focus,.grn-summary-grid textarea:focus,.grn-payment-grid input:focus{border-color:var(--brand-dark);outline:none;box-shadow:0 0 0 3px #0f766e1f}.grn-table .table-input.has-error,.grn-summary-grid input.has-error,.grn-summary-grid textarea.has-error,.grn-summary-grid .autocomplete.has-error .autocomplete-control,.grn-payment-grid input.has-error,.grn-payment-grid .autocomplete.has-error .autocomplete-control,.grn-table .app-date-input.has-error .app-date-input-field,.grn-summary-grid .app-date-input.has-error .app-date-input-field{border-color:#dc2626;box-shadow:0 0 0 3px #dc26261a}.grn-table .table-field-error{color:#dc2626;white-space:normal;margin-top:2px;font-size:10.5px;line-height:1.2;display:block}.grn-input-disabled:not(.app-date-input):not(.autocomplete),.grn-table .grn-input-disabled:not(.app-date-input):not(.autocomplete),.grn-summary-grid .grn-input-disabled:not(.app-date-input):not(.autocomplete),.grn-payment-grid .grn-input-disabled:not(.app-date-input):not(.autocomplete){color:var(--text-secondary);cursor:not-allowed;border-color:var(--border);text-overflow:ellipsis;white-space:nowrap;overflow:hidden;background:#f3f4f6!important}.app-date-input.grn-input-disabled{cursor:default;color:inherit;box-shadow:none!important;background:0 0!important;border:none!important;padding:0!important;overflow:visible!important}.grn-modal.is-payment-settled .app-date-input.is-disabled .app-date-input-field,.grn-modal.is-payment-settled .app-date-input.grn-input-disabled .app-date-input-field,.grn-header-field .app-date-input.is-disabled .app-date-input-field,.grn-summary-grid .app-date-input.is-disabled .app-date-input-field,.grn-summary-grid .app-date-input.grn-input-disabled .app-date-input-field{color:var(--text-secondary);cursor:not-allowed;border-color:var(--border);box-shadow:none;background:#f3f4f6!important}.grn-modal.is-payment-settled .app-date-input.is-disabled .app-date-input-icon-btn,.grn-modal.is-payment-settled .app-date-input.grn-input-disabled .app-date-input-icon-btn{color:var(--text-muted);pointer-events:none}.grn-modal.is-payment-settled .autocomplete-control.is-disabled,.grn-payment-grid .autocomplete.grn-input-disabled .autocomplete-control{opacity:1;cursor:not-allowed;background:#f3f4f6!important}.grn-modal.is-payment-settled .grn-segmented button:disabled,.grn-summary-grid .grn-segmented button:disabled{color:var(--text-secondary);cursor:not-allowed;opacity:1;background:#f3f4f6}.grn-modal.is-payment-settled .toggle:disabled,.grn-payment-grid .toggle:disabled{cursor:not-allowed;opacity:.7}.grn-table .grn-calc-value{text-align:right;font-variant-numeric:tabular-nums;text-overflow:clip;white-space:nowrap;cursor:default;font-weight:600;overflow:visible;color:var(--text)!important;background:#f8fafc!important}.grn-cell-autocomplete .autocomplete{width:100%;min-width:0}.grn-cell-autocomplete .autocomplete-control{gap:4px;padding:0 6px}.grn-cell-autocomplete .autocomplete-control input{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:12px;overflow:hidden}.grn-cell-pack .grn-pack-autocomplete .autocomplete-control{align-items:center;gap:6px;padding:0 8px}.grn-cell-pack .grn-pack-autocomplete .autocomplete-icon,.grn-cell-pack .grn-pack-autocomplete .autocomplete-clear{flex-shrink:0;place-items:center;display:grid}.grn-cell-pack .grn-pack-autocomplete .autocomplete-chevron{display:none}.grn-cell-pack .grn-pack-autocomplete .autocomplete-control input{text-overflow:clip;white-space:nowrap;flex:auto;width:100%;min-width:0;font-size:12.5px;line-height:1.25;overflow:visible}.grn-table th .req{margin-left:4px}.grn-summary-grid label{font-weight:600}.grn-table .table-input.has-error:focus,.grn-summary-grid input.has-error:focus,.grn-summary-grid textarea.has-error:focus,.grn-table .autocomplete.has-error .autocomplete-control:focus-within,.grn-summary-grid .autocomplete.has-error .autocomplete-control:focus-within,.grn-table .app-date-input.has-error .app-date-input-field:focus,.grn-summary-grid .app-date-input.has-error .app-date-input-field:focus{border-color:#dc2626;box-shadow:0 0 0 3px #dc26261f}.grn-table .autocomplete.has-error .autocomplete-control,.grn-cell-autocomplete .autocomplete.has-error .autocomplete-control{border-color:#dc2626;box-shadow:0 0 0 3px #dc26261a}.grn-cell-autocomplete .autocomplete-control input{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.grn-cell-autocomplete .autocomplete-control,.grn-summary-grid .autocomplete-control,.grn-payment-grid .autocomplete-control{border-radius:8px;height:36px;min-height:36px;padding:0 8px}.grn-cell-autocomplete .autocomplete-control input,.grn-summary-grid .autocomplete-control input,.grn-payment-grid .autocomplete-control input{height:34px;font-size:12.5px}.grn-cell-date .app-date-input{width:100%;min-width:0}.grn-cell-date .app-date-input-control{align-items:center;width:100%;min-width:0;height:36px;min-height:36px;display:flex;position:relative}.grn-cell-date .app-date-input-field{border:1px solid var(--border);width:100%;min-width:0;height:36px;min-height:36px;color:var(--text);box-sizing:border-box;background:#fff;border-radius:8px;outline:none;font-size:12.5px;padding:0 36px 0 8px!important}.grn-cell-date .app-date-input.is-disabled .app-date-input-field,.grn-cell-date .app-date-input.is-readonly .app-date-input-field,.grn-cell-date .app-date-input.grn-input-disabled .app-date-input-field{color:var(--text-secondary);cursor:not-allowed;border-color:var(--border);box-shadow:none;background:#f3f4f6!important}.grn-cell-date .app-date-input.is-disabled .app-date-input-icon-btn,.grn-cell-date .app-date-input.is-readonly .app-date-input-icon-btn,.grn-cell-date .app-date-input.grn-input-disabled .app-date-input-icon-btn{color:var(--text-muted);pointer-events:none}.grn-cell-date .app-date-input-field:focus{border-color:var(--brand-dark);box-shadow:0 0 0 3px #0f766e1f}.grn-cell-date .app-date-input.has-error .app-date-input-field,.grn-cell-date .app-date-input-field.has-error{border-color:#dc2626;box-shadow:0 0 0 3px #dc26261a}.grn-cell-date .app-date-input.has-error .app-date-input-field:focus,.grn-cell-date .app-date-input-field.has-error:focus{border-color:#dc2626;box-shadow:0 0 0 3px #dc26261f}.grn-cell-date .app-date-input-icon-btn{border-radius:6px;width:26px;height:26px;right:6px}.grn-field-error{color:#dc2626;white-space:nowrap;text-overflow:ellipsis;pointer-events:none;z-index:1;margin:0;font-size:9.5px;line-height:1;position:absolute;bottom:1px;left:8px;right:8px;overflow:hidden}.grn-field .grn-field-error,.grn-summary-grid .grn-field-error{white-space:normal;pointer-events:auto;margin-top:4px;font-size:11px;display:block;position:static}.grn-row-actions{justify-content:center;align-items:center;gap:8px;display:inline-flex}.grn-action-btn{cursor:pointer;border:1px solid #0000;border-radius:8px;place-items:center;width:32px;height:32px;transition:background .12s,border-color .12s;display:grid}.grn-action-btn.add{color:#059669;background:#ecfdf5;border-color:#a7f3d0}.grn-action-btn.add:hover{background:#d1fae5}.grn-action-btn.delete{background:var(--danger-bg);color:#dc2626;border-color:#fecaca}.grn-action-btn.delete:hover:not(:disabled){background:#fee2e2}.grn-action-btn:disabled{opacity:.4;cursor:not-allowed}.grn-table-summary{flex-wrap:wrap;align-items:stretch;gap:8px;margin-top:12px;display:flex}.grn-summary-chip{border:1px solid var(--border);background:#fff;border-radius:10px;flex-direction:column;gap:2px;min-width:110px;padding:8px 10px;display:flex}.grn-summary-label{color:var(--text-muted);text-transform:uppercase;letter-spacing:.02em;font-size:11px;font-weight:600}.grn-summary-chip strong{color:var(--text);font-variant-numeric:tabular-nums;font-size:15px;font-weight:700}.grn-summary-chip-total{background:#ecfdf5;border-color:#99f6e4;min-width:190px;margin-left:auto;padding:10px 14px}.grn-summary-chip-total .grn-summary-label{color:var(--brand-dark)}.grn-summary-chip-total strong{color:var(--brand-dark);font-size:18px}.grn-summary-grid{flex-direction:column;gap:12px;width:100%;display:flex}.grn-summary-row{align-items:start;gap:10px 12px;width:100%;display:grid}.grn-summary-row-7{grid-template-columns:repeat(7,minmax(0,1fr))}.grn-summary-row-8{grid-template-columns:repeat(8,minmax(0,1fr))}.grn-summary-row-6{grid-template-columns:repeat(6,minmax(0,1fr))}.grn-summary-row-6 .grn-field:first-child .grn-segmented,.grn-summary-row-7 .grn-field:nth-child(2) .grn-segmented{width:auto;min-width:120px;max-width:160px}.grn-summary-row-4{grid-template-columns:repeat(8,minmax(0,1fr))}.grn-summary-row-4 .grn-field:nth-child(2) .grn-segmented{width:auto;min-width:120px;max-width:160px}.grn-summary-row-5{grid-template-columns:repeat(5,minmax(0,1fr))}.grn-summary-row-notes{grid-template-columns:1fr}.grn-field{flex-direction:column;gap:4px;min-width:0;display:flex}.grn-field-span-2{grid-column:span 2}.grn-field-notes{grid-column:1/-1;width:100%}.grn-field label{color:var(--text-muted);align-items:center;gap:5px;min-height:14px;font-size:11px;font-weight:600;line-height:1.2;display:inline-flex}.grn-field label svg{color:var(--brand-dark);flex-shrink:0}.grn-field-net label,.grn-field-total label{color:var(--brand-dark);font-weight:700}.grn-field-net .grn-net-amount-input,.grn-field-total .grn-total-amount-input{cursor:default;border-color:#99f6e4;font-weight:700;color:var(--brand-dark)!important;background:var(--brand-muted)!important}.grn-summary-grid input,.grn-summary-grid textarea,.grn-payment-grid input{border:1px solid var(--border);width:100%;height:36px;min-height:36px;color:var(--text);box-sizing:border-box;background:#fff;border-radius:8px;padding:0 10px;font-size:12.5px}.grn-summary-grid textarea{resize:vertical;height:auto;min-height:52px;padding:8px 10px}.grn-summary-grid .autocomplete,.grn-payment-grid .autocomplete{width:100%;min-width:0}.grn-summary-grid .autocomplete-control,.grn-payment-grid .autocomplete-control{border:1px solid var(--border);box-sizing:border-box;background:#fff;border-radius:8px;width:100%;height:36px;min-height:36px;padding:0 8px}.grn-summary-grid .autocomplete-control:focus-within,.grn-payment-grid .autocomplete-control:focus-within{border-color:var(--brand-dark);box-shadow:0 0 0 3px #0f766e1f}.grn-summary-grid .autocomplete-control input,.grn-payment-grid .autocomplete-control input{outline:none;box-shadow:none!important;background:0 0!important;border:none!important;border-radius:0!important;height:34px!important;min-height:34px!important;padding:0!important}.grn-summary-grid .autocomplete-control input:focus,.grn-payment-grid .autocomplete-control input:focus{box-shadow:none!important;border:none!important}.grn-summary-grid .autocomplete.has-error .autocomplete-control,.grn-payment-grid .autocomplete.has-error .autocomplete-control{border-color:#dc2626;box-shadow:0 0 0 3px #dc26261a}.grn-nested-label{margin-top:4px!important}.grn-net-amount{color:var(--brand-dark)!important;font-weight:700!important}.grn-segmented{border:1px solid var(--border);background:#f9fafb;border-radius:8px;grid-template-columns:1fr 1fr;gap:0;width:100%;height:36px;display:inline-grid;overflow:hidden}.grn-segmented button{height:36px;min-height:36px;color:var(--text-muted);cursor:pointer;background:0 0;border:none;padding:0 10px;font-size:12.5px;font-weight:600}.grn-segmented button+button{border-left:1px solid var(--border)}.grn-segmented button.is-active{background:var(--brand-dark);color:#fff}.grn-toggle-row{border:1px solid var(--border);box-sizing:border-box;background:#fff;border-radius:8px;align-items:center;gap:10px;height:36px;min-height:36px;padding:0 10px;display:flex}.grn-toggle-text{color:#374151;font-size:13px;font-weight:600}.grn-payment-card{flex-direction:column;flex:none;min-width:0;display:flex}.grn-payment-section-head{align-items:flex-start;gap:10px;margin-bottom:12px;display:flex}.grn-payment-section-head h3{color:var(--brand-dark);margin:0;font-size:14px;font-weight:700}.grn-payment-section-head p{color:var(--text-muted);margin:2px 0 0;font-size:12px;line-height:1.35}.grn-payment-history-table-wrap{border:1px solid var(--border);background:#fff;border-radius:10px;flex:1;min-height:120px;overflow:auto}.grn-payment-history-table{border-collapse:collapse;width:100%;font-size:12.5px}.grn-payment-history-table th,.grn-payment-history-table td{text-align:center;vertical-align:middle;border-bottom:1px solid #f1f5f9;padding:8px 10px}.grn-payment-history-table th{color:var(--text-muted);letter-spacing:.02em;white-space:nowrap;background:#f8fafc;font-size:11px;font-weight:700}.grn-payment-history-table td.col-num,.grn-payment-history-table th.col-num{text-align:center;font-variant-numeric:tabular-nums}.grn-payment-history-empty{color:var(--text-muted);text-align:center!important;padding:28px 12px!important}.grn-payment-history-footer{border-top:1px solid var(--border);flex-wrap:wrap;gap:16px 24px;margin-top:12px;padding-top:10px;display:flex}.grn-payment-history-stat{flex-direction:column;gap:2px;display:flex}.grn-payment-history-stat span{color:var(--text-muted);text-transform:uppercase;letter-spacing:.02em;font-size:11px;font-weight:600}.grn-payment-history-stat strong{font-variant-numeric:tabular-nums;font-size:16px;font-weight:700}.grn-payment-history-stat.is-paid strong{color:var(--brand-dark)}.grn-payment-history-stat.is-balance strong{color:#ea580c}.grn-vendor-credit-breakdown{background:var(--brand-muted);border:1px dashed #99f6e4;border-radius:10px;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 14px;padding:10px 12px;display:grid}.grn-vendor-credit-breakdown span{color:var(--brand-dark);font-size:11px;font-weight:600;display:block}.grn-vendor-credit-breakdown strong{color:#134e4a;margin-top:2px;font-size:14px;display:block}.grn-payment-grid{grid-template-columns:repeat(7,minmax(0,1fr));align-items:start;gap:12px;width:100%;min-width:0;display:grid}.grn-payment-grid.is-internal{grid-template-columns:repeat(5,minmax(0,1fr))}.grn-payment-grid .grn-field{width:100%;min-width:0;max-width:100%}.grn-payment-grid .grn-field>input,.grn-payment-grid .grn-field>.autocomplete,.grn-payment-grid .grn-field>.number-input,.grn-payment-grid .grn-field>.grn-amount-due-box{box-sizing:border-box;width:100%;min-width:0;max-width:100%}.grn-payment-credit-field .grn-toggle-row{width:100%;min-width:0;max-width:none;height:36px;min-height:36px}.grn-payment-card .grn-field label{white-space:nowrap;text-overflow:ellipsis;min-height:14px;overflow:hidden}.grn-payment-grid .grn-input-disabled{color:var(--text-muted)!important;background:#f3f4f6!important}.grn-payment-grid .grn-field-net .grn-net-amount-input{border-color:#99f6e4;background:var(--brand-muted)!important;color:var(--brand-dark)!important}.grn-field-amount-due{flex-direction:column;gap:4px;width:100%;min-width:0;max-width:100%;display:flex}.grn-field-amount-due .grn-amount-due-label-spacer{visibility:hidden;pointer-events:none;-webkit-user-select:none;user-select:none}.grn-field-amount-due .grn-amount-due-box{box-sizing:border-box;border:1px solid #0000;border-radius:10px;align-content:center;gap:2px;width:100%;min-width:0;max-width:100%;min-height:56px;padding:8px 12px;display:grid;overflow:hidden}.grn-field-amount-due .grn-amount-due-box>span{white-space:nowrap;text-overflow:ellipsis;font-size:11px;font-weight:650;line-height:1.2;overflow:hidden}.grn-field-amount-due .grn-amount-due-box>strong{letter-spacing:-.02em;white-space:nowrap;text-overflow:ellipsis;font-size:16px;font-weight:800;line-height:1.2;overflow:hidden}.grn-field-amount-due .grn-amount-due-box.is-due{background:#fef2f2;border-color:#fca5a5;box-shadow:0 0 0 1px #dc262614}.grn-field-amount-due .grn-amount-due-box.is-due>span{color:#b91c1c}.grn-field-amount-due .grn-amount-due-box.is-due>strong{color:#dc2626}.grn-field-amount-due .grn-amount-due-box.is-zero{background:#ecfdf5;border-color:#6ee7b7;box-shadow:0 0 0 1px #04785714}.grn-field-amount-due .grn-amount-due-box.is-zero>span{color:#047857}.grn-field-amount-due .grn-amount-due-box.is-zero>strong{color:#059669}.grn-modal-footer{border-top:1px solid var(--border);z-index:5;background:#fff;flex-shrink:0;justify-content:flex-end;align-items:center;gap:8px;padding:8px 14px;display:flex}.grn-modal-footer .btn{border:1px solid var(--brand-dark);min-height:38px;box-shadow:none;justify-content:center;align-items:center;gap:6px;padding:0 16px;display:inline-flex}.grn-modal-footer .btn-outline-brand{border-color:var(--brand-dark);color:var(--brand-dark);background:#fff}.grn-modal-footer .btn-outline-brand:hover{background:#ecfdf5}.grn-modal-footer .btn-secondary{border-color:var(--brand-dark);color:var(--brand-dark);background:#fff}.grn-modal-footer .btn-secondary:hover{color:var(--brand-dark);background:#ecfdf5}.grn-modal-footer .btn-primary{background:var(--brand-dark);border-color:var(--brand-dark);color:#fff}.grn-modal-footer .btn-primary:hover{background:var(--brand);border-color:var(--brand)}.autocomplete-menu-portal{z-index:4000}@media (width<=1280px){.grn-modal-header{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"title close""fields fields"}.grn-modal-title-wrap{grid-area:title}.grn-header-fields{grid-area:fields;width:100%;margin-left:0;transform:none}.grn-modal-header>.icon-btn{grid-area:close}.grn-summary-grid{gap:12px}.grn-summary-row-6,.grn-summary-row-7,.grn-summary-row-8{grid-template-columns:repeat(3,minmax(0,1fr))}.grn-payment-grid,.grn-payment-grid.is-internal{grid-template-columns:repeat(4,minmax(0,1fr))}.grn-summary-row-6 .grn-field:first-child .grn-segmented,.grn-summary-row-7 .grn-field:nth-child(2) .grn-segmented,.grn-summary-row-4 .grn-field:nth-child(2) .grn-segmented{width:100%;max-width:none}.grn-summary-row-4{grid-template-columns:repeat(2,minmax(0,1fr))}.grn-summary-row-5{grid-template-columns:repeat(3,minmax(0,1fr))}.grn-field-span-2{grid-column:span 3}.grn-field-notes{grid-column:1/-1}.grn-vendor-credit-breakdown{grid-template-columns:1fr}}@media (width<=900px){.grn-modal.modal-dialog{width:98vw;max-width:98vw;height:auto;max-height:94vh}.grn-header-fields,.grn-summary-row-6,.grn-summary-row-7,.grn-summary-row-8,.grn-summary-row-4,.grn-summary-row-5{grid-template-columns:repeat(2,minmax(0,1fr))}.grn-payment-grid,.grn-payment-grid.is-internal{grid-template-columns:repeat(3,minmax(0,1fr))}.grn-field-span-2{grid-column:span 2}.grn-table-summary{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.grn-summary-chip-total{grid-column:1/-1;margin-left:0}}@media (width<=640px){.grn-header-fields{grid-template-columns:1fr}.grn-items-card .grn-table-wrap,.grn-table-wrap{border:none;border-radius:0;height:auto;min-height:0;max-height:none;overflow:visible}.grn-table{width:100%!important;min-width:0!important}.grn-table colgroup,.grn-table thead{display:none}.grn-table,.grn-table tbody,.grn-table tr,.grn-table td{display:block;width:100%!important;min-width:0!important;max-width:none!important;height:auto!important;box-shadow:none!important;position:static!important}.grn-table tr{border:1px solid var(--border);background:#fff;border-radius:12px;margin-bottom:12px;padding:8px;overflow:hidden}.grn-table tbody tr:nth-child(2n),.grn-table tbody tr:nth-child(odd){background:#fff}.grn-table td{border:none;border-bottom:1px solid #f1f5f9;grid-template-columns:120px minmax(0,1fr);align-items:center;gap:8px;padding:8px 4px;display:grid;background:0 0!important}.grn-table td:last-child{border-bottom:none}.grn-table td:before{content:attr(data-label);color:var(--text-muted);letter-spacing:.02em;font-size:11px;font-weight:700}.grn-table td.grn-col-sticky-right{text-align:left}.grn-table .grn-field-error{grid-column:2;margin-top:2px;position:static}.grn-summary-row-6,.grn-summary-row-7,.grn-summary-row-8,.grn-summary-row-4,.grn-summary-row-5{grid-template-columns:1fr}.grn-summary-row-6 .grn-field:first-child .grn-segmented,.grn-summary-row-7 .grn-field:nth-child(2) .grn-segmented,.grn-summary-row-4 .grn-field:nth-child(2) .grn-segmented{width:100%;max-width:none}.grn-field-span-2{grid-column:span 1}.grn-table-summary{grid-template-columns:1fr 1fr;display:grid}.grn-summary-chip-total{grid-column:1/-1;margin-left:0}.grn-modal-footer{flex-wrap:wrap}.grn-modal-footer .btn{flex:auto}.grn-payment-grid,.grn-payment-grid.is-internal{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-flow:row}}.po-page,.sm-page,.medicine-page,.vendor-page,.category-page,.pack-page,.facility-page{gap:var(--content-gap);width:100%;min-width:0;max-width:100%}.facility-filter-trigger{flex-shrink:0;align-items:center;display:inline-flex;position:relative}.facility-date-range-panel{box-sizing:border-box;border:1px solid var(--border);background:#fff;border-radius:12px;padding:10px;box-shadow:0 12px 28px #0f172a24}.facility-date-range-panel .vendor-date-range,.facility-date-range-panel .vendor-date-range-trigger{width:100%}.facility-date-range-panel .vendor-date-range-panel--fixed{z-index:5100!important}.table-card,.filter-toolbar,.medicine-filter-toolbar,.po-table-card{width:100%;min-width:0;max-width:100%}.po-table-wrap,.medicine-table-wrap,.medicines-table-wrap,.create-po-table-wrap{-webkit-overflow-scrolling:touch;width:100%;max-width:100%;overflow-x:auto}.po-table,.medicine-table,.create-po-table,.view-po-items-table{width:100%}.btn{white-space:nowrap;flex-shrink:0}.topbar{width:100%;min-width:0}.global-search{min-width:0}.modal-overlay{justify-content:safe center;align-items:safe center;padding:clamp(8px,2vw,20px);overflow-y:auto}.modal-dialog{width:min(1180px,100vw - 24px);max-width:calc(100vw - 24px);max-height:calc(100vh - 24px)}.create-po-simple.modal-dialog{width:min(1680px,100vw - 24px);max-width:calc(100vw - 24px);height:min(920px,100vh - 16px);max-height:calc(100vh - 16px)}.grn-modal.modal-dialog{width:min(1800px,100vw - 24px);max-width:calc(100vw - 24px);max-height:min(92vh,100dvh - 16px)}.view-facility-modal.modal-dialog,.view-po-modal.modal-dialog,.view-po-items-modal.modal-dialog,.view-medicine-modal.modal-dialog{width:min(100%,100vw - 24px);max-width:calc(100vw - 24px)}.add-medicine-modal.modal-dialog{width:min(95vw,1280px);max-width:min(95vw,1280px);max-height:90vh}.medicine-details-modal.modal-dialog{width:min(95vw,1500px);max-width:min(95vw,1500px);max-height:90vh}.add-medicine-modal .modal-body.add-medicine-body{padding:16px 20px 20px}.add-medicine-modal .filter-field{gap:8px}.add-medicine-modal .filter-field label,.add-medicine-modal .medicine-field-label{margin:0;font-size:12.5px}.add-medicine-modal .filter-field input:not([type=checkbox]):not([type=radio]):not([type=color]),.add-medicine-modal .filter-field select,.add-medicine-modal .medicine-color-input,.add-medicine-modal .medicine-inline-check,.add-medicine-modal .medicine-yesno-check{background:#fff;border-radius:8px;height:auto;min-height:40px}.add-medicine-modal .filter-field>input:not([type=checkbox]):not([type=radio]):not([type=color]),.add-medicine-modal .filter-field>select{border:1px solid var(--border);height:40px}.add-medicine-modal .filter-field .filter-autocomplete,.add-medicine-modal .filter-field .autocomplete{width:100%}.add-medicine-modal .filter-field .autocomplete-control{border:1px solid var(--border);background:#fff;border-radius:8px;width:100%;height:40px;min-height:40px;padding:0 10px}.add-medicine-modal .filter-field .autocomplete-control:focus-within{border-color:var(--brand);box-shadow:0 0 0 3px #0d94881f}.add-medicine-modal .filter-field .autocomplete-control input,.add-medicine-modal .filter-field .autocomplete-control input:focus,.add-medicine-modal .filter-field .autocomplete-control input:not([type=checkbox]):not([type=radio]),.add-medicine-modal .filter-field .autocomplete-control input:not([type=checkbox]):not([type=radio]):focus{box-shadow:none!important;background:0 0!important;border:none!important;border-radius:0!important;outline:none!important;height:38px!important;min-height:38px!important;padding:0!important}.add-medicine-modal .filter-field .filter-autocomplete.has-error .autocomplete-control,.add-medicine-modal .filter-field .autocomplete.has-error .autocomplete-control,.add-medicine-modal .filter-field .filter-autocomplete.has-error .autocomplete-control:focus-within,.add-medicine-modal .filter-field .autocomplete.has-error .autocomplete-control:focus-within{border-color:var(--danger,#ef4444)}.add-medicine-modal .medicine-color-input input[type=text],.add-medicine-modal .medicine-color-input input[type=text]:focus{box-shadow:none!important;background:0 0!important;border:none!important;outline:none!important;height:auto!important;min-height:0!important;padding:8px 0!important}.add-medicine-modal .filter-field input[type=checkbox],.add-medicine-modal .filter-field input[type=radio]{width:auto;height:auto;min-height:0;box-shadow:none;background:0 0;border:none;border-radius:0}.add-medicine-modal .filter-field input[type=checkbox]:focus,.add-medicine-modal .filter-field input[type=radio]:focus,.add-medicine-modal .filter-field input[type=checkbox]:focus-visible,.add-medicine-modal .filter-field input[type=radio]:focus-visible{box-shadow:none;background:0 0;border:none;outline:none}.add-medicine-modal .medicine-notes-wrap textarea{background:#fff;border-radius:8px}.filter-toolbar-panel-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-width:100%}.medicine-search{flex:220px;min-width:0}.create-po-table{min-width:1100px}.view-po-items-table{min-width:720px}@media (width<=1440px){.create-po-simple.modal-dialog,.grn-modal.modal-dialog{width:min(100%,100vw - 28px)}}@media (width<=1280px){.medicine-stats-row{grid-template-columns:repeat(3,minmax(0,1fr))}.filter-toolbar-main,.medicine-filter-main{gap:8px}.filter-select{flex:140px;min-width:0}}@media (width<=1024px){.medicine-stats-row{grid-template-columns:repeat(2,minmax(0,1fr))}.pagination-redesign,.pagination{flex-wrap:wrap;gap:10px}.create-po-table{min-width:1100px}.view-po-items-table{min-width:720px}.modal-overlay{padding:10px}}@media (width<=900px){.filter-toolbar-panel-grid{grid-template-columns:1fr}.filter-toolbar-main,.medicine-filter-main{flex-direction:column;align-items:stretch}.filter-search,.medicine-search,.filter-select,.filter-date-btn,.filter-toggle-btn{width:100%}.medicine-stats-row,.stats-row{grid-template-columns:1fr 1fr}.page-actions .btn,.app-page-header .page-actions .btn{flex:0 auto}.create-po-table{min-width:1100px}.view-po-items-table{min-width:640px}}@media (width<=768px){.medicine-stats-row,.stats-row,.filter-grid{grid-template-columns:1fr}.topbar-actions .icon-btn:nth-child(n+3),.kbd{display:none}.modal-dialog,.create-po-simple.modal-dialog,.grn-modal.modal-dialog{border-radius:12px;width:100%;max-width:100%;max-height:calc(100vh - 12px)}.create-po-simple.modal-dialog{height:calc(100vh - 12px)}.modal-footer,.create-po-simple .modal-footer,.grn-modal-footer,.add-vendor-footer,.add-medicine-footer,.add-category-footer,.add-pack-footer,.add-facility-footer,.view-medicine-footer,.view-facility-footer{flex-wrap:wrap;gap:8px}.modal-footer .btn,.grn-modal-footer .btn,.add-vendor-footer .btn,.add-medicine-footer .btn,.add-category-footer .btn,.add-pack-footer .btn,.add-facility-footer .btn{flex:auto;justify-content:center;min-width:120px}.pagination-redesign,.pagination,.pagination-center{justify-content:center;width:100%}.page-numbers{flex-wrap:wrap;justify-content:center}.create-po-table{min-width:1100px}.view-po-items-table{min-width:560px}img,svg{max-width:100%;height:auto}.btn svg,.icon-btn svg,.nav-item svg,.topbar-pharmacy-chevron,.topbar-pharmacy-icon,.breadcrumbs svg{flex-shrink:0;width:1em;max-width:none;height:1em}.btn svg{width:16px;height:16px}}@media (width<=480px){.breadcrumbs{flex-wrap:wrap;row-gap:2px}.create-po-table{min-width:1100px}.view-po-items-table{min-width:480px}}@media (width>=1920px){.page-content{--page-pad-x:28px}}@media (width>=2560px){.page-content{--page-pad-x:36px}.app-page-header h1,.po-page-header h1{font-size:1.5rem}}.create-ro-modal.modal-dialog{background:#fff;border-radius:16px;width:min(1600px,94vw);max-width:calc(100vw - 28px);height:min(940px,100vh - 20px);max-height:calc(100vh - 20px);box-shadow:0 24px 64px #0f172a29,0 4px 16px #0f172a0f}.create-ro-init-loading{background:#fafbfc;flex-direction:column;flex:1;gap:14px;padding:28px 24px 36px;display:flex}.create-ro-init-loading p{color:#64748b;margin:4px 0 0;font-size:13px}.create-ro-skel-line{background:linear-gradient(90deg,#eef2f6 0%,#f8fafc 50%,#eef2f6 100%) 0 0/200% 100%;border-radius:10px;height:44px;animation:1.2s ease-in-out infinite create-ro-shimmer}.create-ro-skel-table{background:linear-gradient(90deg,#eef2f6 0%,#f8fafc 50%,#eef2f6 100%) 0 0/200% 100%;border-radius:12px;height:220px;animation:1.2s ease-in-out infinite create-ro-shimmer}@keyframes create-ro-shimmer{0%{background-position:100% 0}to{background-position:-100% 0}}.create-ro-header{background:#fff;border-bottom:1px solid #e8eef3;padding:16px 22px 12px!important}.create-ro-header-icon{color:var(--brand-dark);border:1px solid color-mix(in srgb, var(--brand) 18%, white);background:#ecfdf5}.create-ro-body{background:#fafbfc;gap:16px!important;padding:14px 20px 12px!important;overflow-y:auto!important}.create-ro-layout{display:block}.create-ro-main{flex-direction:column;gap:14px;min-width:0;display:flex}.create-ro-bottom-row{grid-template-columns:minmax(0,1.35fr) minmax(280px,1fr);align-items:stretch;gap:14px;display:grid}.create-ro-modal .create-ro-bottom-row{grid-template-columns:1fr}.create-ro-additional-section{min-width:0}.create-ro-card{background:var(--brand-muted);border:1px solid var(--brand-soft);box-shadow:none;border-radius:13px;padding:0;overflow:hidden}.create-ro-card:has(.app-date-input.is-open){z-index:30;position:relative;overflow:visible}.create-ro-card .app-date-input.is-open .app-date-picker{z-index:120}.create-ro-section{padding-bottom:14px}.create-ro-info-section{padding-bottom:12px}.create-ro-info-section .create-ro-section-banner{margin-bottom:10px;padding:9px 16px}.create-ro-info-section .create-ro-grid,.create-ro-info-section .create-ro-info-grid{align-items:start;gap:12px;width:auto;min-width:0;margin-bottom:0;margin-left:18px;margin-right:18px;padding:2px 4px 4px}.create-ro-info-section .form-field{gap:6px;min-width:0;padding:0}.create-ro-info-section .form-field>span{white-space:nowrap;font-size:12px;line-height:1.25}.create-ro-info-section .form-field>input,.create-ro-info-section .form-field>select,.create-ro-info-section .form-field .create-ro-search-input input,.create-ro-info-section .form-field .app-date-input-field,.create-ro-info-section .form-field .app-date-input-control,.create-ro-info-section .form-field .autocomplete-control{height:36px;min-height:36px}.create-ro-info-section .form-field>input,.create-ro-info-section .form-field>select,.create-ro-info-section .form-field .create-ro-search-input input{padding:0 10px}.create-ro-info-section .form-field .app-date-input-field{height:36px;min-height:36px;padding:0 40px 0 10px!important}.create-ro-info-section .form-field .autocomplete-control{gap:8px;padding:0 10px}.create-ro-info-section .form-field .autocomplete-control input{height:34px;min-height:34px;padding:0}.create-ro-info-section .create-ro-email-field{min-height:unset;justify-content:flex-start;gap:6px}.create-ro-info-section .create-ro-email-field-spacer{visibility:hidden;pointer-events:none;-webkit-user-select:none;user-select:none;height:1.25em;font-size:12px;line-height:1.25;display:block}.create-ro-info-section .create-ro-email-field .checkbox-label{white-space:nowrap;gap:10px;height:36px;min-height:36px;margin-top:0;padding:0 2px;font-size:13.5px;font-weight:600}.create-ro-info-section .create-ro-email-field .checkbox-label input[type=checkbox]{width:20px;min-width:20px;height:20px;min-height:20px;accent-color:var(--brand);cursor:pointer;flex-shrink:0}.create-ro-section-banner{border-bottom:1px solid color-mix(in srgb, var(--brand) 10%, transparent);color:var(--brand-dark);background:0 0;align-items:center;gap:8px;margin:0 0 12px;padding:11px 16px;display:flex}.create-ro-section-banner h3{color:var(--brand-dark);letter-spacing:.01em;margin:0;font-size:14px;font-weight:650}.create-ro-section-banner svg{color:var(--brand);flex-shrink:0}.create-ro-section>.create-ro-grid,.create-ro-section>.create-ro-notes-field,.create-ro-section>.create-ro-batch-toolbar,.create-ro-section>.create-ro-table-wrap,.create-ro-section>.create-ro-batch-footer,.create-ro-section>.create-ro-totals-bar,.create-ro-section>.form-error-text{margin-left:16px;margin-right:16px}.create-ro-grid{gap:12px 14px;margin-bottom:12px;display:grid}.create-ro-grid-7{grid-template-columns:repeat(7,minmax(0,1fr))}.create-ro-grid-6{grid-template-columns:repeat(6,minmax(0,1fr))}.create-ro-grid-5{grid-template-columns:repeat(5,minmax(0,1fr))}.create-ro-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.create-ro-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.create-ro-info-section .create-ro-grid-7{grid-template-columns:repeat(7,minmax(0,1fr))}.create-ro-info-section .create-ro-grid-6{grid-template-columns:repeat(6,minmax(0,1fr))}.create-ro-info-section .create-ro-grid-5{grid-template-columns:repeat(5,minmax(0,1fr))}.create-ro-info-section .form-field{width:100%;min-width:0;max-width:100%}.create-ro-info-section .create-ro-email-field{width:100%;max-width:100%}.create-ro-section .form-field{flex-direction:column;gap:6px;min-width:0;display:flex}.create-ro-section .form-field>span{color:#475569;font-size:12.5px;font-weight:600}.create-ro-section .form-field>span em{color:#dc2626;font-style:normal}.create-ro-section .form-field>input,.create-ro-section .form-field>select,.create-ro-section .form-field>textarea,.create-ro-section .form-field .create-ro-search-input input,.create-ro-section .form-field .app-date-input-field,.create-ro-section .form-field .app-date-input-control,.create-ro-section .form-field .autocomplete-control{min-height:40px}.create-ro-section .form-field>input,.create-ro-section .form-field>select,.create-ro-section .form-field>textarea,.create-ro-section .form-field .create-ro-search-input input,.create-ro-section .form-field .app-date-input-field{box-sizing:border-box;background:#fff;border:1px solid #e2e8f0;border-radius:8px;height:40px;padding:0 10px}.create-ro-section .form-field>textarea{height:auto;min-height:64px;padding:10px}.create-ro-section .form-field .autocomplete{width:100%}.create-ro-section .form-field .autocomplete-control{box-sizing:border-box;background:#fff;border:1px solid #e2e8f0;border-radius:8px;gap:8px;height:40px;min-height:40px;padding:0 10px}.create-ro-section .form-field .autocomplete-control input{height:38px;min-height:38px;box-shadow:none;background:0 0;border:none;border-radius:0;padding:0}.create-ro-section .form-field .app-date-input{width:100%}.create-ro-section .form-field .app-date-input-control{background:#fff;border-radius:8px;height:40px;min-height:40px}.create-ro-section .form-field .app-date-input-field{height:40px;min-height:40px;padding:0 40px 0 10px!important}.create-ro-pharmacy-ac-wrap{position:relative}.create-ro-pharmacy-ac-icon{z-index:2;color:var(--brand);pointer-events:none;position:absolute;top:50%;left:11px;transform:translateY(-50%)}.create-ro-pharmacy-ac .autocomplete-icon{visibility:hidden;width:15px}.create-ro-readonly-input,.create-ro-section .form-field input.create-ro-readonly-input{color:#64748b;cursor:default;border-color:#e2e8f0;font-weight:500;background:#f1f5f9!important}.create-ro-section .form-field>.app-tooltip-anchor{width:100%;min-width:0;display:block}.create-ro-section .form-field .app-tooltip-anchor>.create-ro-readonly-input,.create-ro-info-section .form-field .app-tooltip-anchor>.create-ro-readonly-input{color:#64748b;box-sizing:border-box;cursor:default;border:1px solid #e2e8f0;border-radius:8px;width:100%;height:40px;min-height:40px;padding:0 10px;font-weight:500;background:#f1f5f9!important}.create-ro-info-section .form-field .app-tooltip-anchor>.create-ro-readonly-input{height:36px;min-height:36px}.create-ro-field-hint{color:var(--brand);margin-top:4px;font-size:11.5px;font-weight:500;display:block}.create-ro-field-hint-inline{color:var(--brand);margin:0;font-size:11px;font-weight:500}.create-ro-radio-row{flex-wrap:wrap;align-items:center;gap:16px;min-height:40px;display:flex}.create-ro-radio{cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;gap:8px;display:inline-flex}.create-ro-radio input{opacity:0;pointer-events:none;width:0;height:0;position:absolute}.create-ro-radio-mark{border:1.5px solid var(--text-muted);background:#fff;border-radius:50%;flex-shrink:0;place-items:center;width:16px;height:16px;transition:border-color .15s,background .15s,box-shadow .15s;display:inline-grid}.create-ro-radio-mark:after{content:"";background:0 0;border-radius:50%;width:8px;height:8px;transition:background .15s}.create-ro-radio input:checked+.create-ro-radio-mark{border-color:var(--brand);box-shadow:0 0 0 1px color-mix(in srgb, var(--brand) 20%, transparent)}.create-ro-radio input:checked+.create-ro-radio-mark:after{background:var(--brand)}.create-ro-radio-label{color:var(--text-secondary);font-size:13.5px;font-weight:500}.create-ro-radio input:checked~.create-ro-radio-label{color:var(--brand-dark);font-weight:600}.create-ro-radio input:disabled+.create-ro-radio-mark,.create-ro-radio input:disabled~.create-ro-radio-label{opacity:.55;cursor:not-allowed}.create-ro-notes-field{margin-top:4px;position:relative}.create-ro-notes-field textarea{resize:vertical;width:100%;min-height:64px;padding:10px 12px 26px;line-height:1.4}.create-ro-char-count{color:var(--text-muted);pointer-events:none;font-size:11px;position:absolute;bottom:8px;right:10px}.create-ro-status-pill{text-transform:capitalize;border-radius:999px;align-items:center;width:fit-content;height:26px;padding:0 10px;font-size:12px;font-weight:650;display:inline-flex}.create-ro-status-pill.pending{color:#c2410c;background:#fff7ed;border:1px solid #ffedd5}.create-ro-status-pill.success{color:#047857;background:#ecfdf5;border:1px solid #d1fae5}.create-ro-status-pill.danger{background:var(--danger-bg);color:#b91c1c;border:1px solid #fecaca}.create-ro-status-pill.muted{color:#475569;background:#f1f5f9;border:1px solid #e2e8f0}.create-ro-batch-toolbar{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1.1fr) auto;align-items:end;gap:10px 14px;margin-bottom:12px;display:grid}.create-ro-batch-toolbar.create-ro-batch-toolbar-internal{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) minmax(0,1.1fr) auto}.create-ro-batches-section{padding-bottom:10px}.create-ro-batches-section .create-ro-section-banner{margin-bottom:8px;padding:8px 14px}.create-ro-batches-section .create-ro-batch-toolbar{gap:8px 12px;margin-bottom:8px}.create-ro-batches-section .form-field{gap:4px}.create-ro-batches-section .form-field>span{font-size:12px;line-height:1.2}.create-ro-batches-section .form-field>input,.create-ro-batches-section .form-field>select,.create-ro-batches-section .form-field .create-ro-search-input input,.create-ro-batches-section .form-field .app-date-input-field,.create-ro-batches-section .form-field .app-date-input-control,.create-ro-batches-section .form-field .autocomplete-control{height:34px;min-height:34px}.create-ro-batches-section .form-field .autocomplete-control input{height:32px;min-height:32px}.create-ro-batches-section .create-ro-check-row{gap:10px 14px;min-height:34px;padding-bottom:4px}.create-ro-batches-section .create-ro-table-wrap{max-height:228px;overflow:auto}.create-ro-batches-section .create-ro-batches-wrap.is-empty{flex-direction:column;min-height:228px;display:flex}.create-ro-batches-section .create-ro-batches-wrap.is-empty .create-ro-table{flex:1;min-width:100%;height:100%}.create-ro-batches-section .create-ro-batches-wrap.is-empty .create-ro-table tbody,.create-ro-batches-empty-row{height:100%}.create-ro-batches-empty-cell{text-align:center;background:#fff;height:180px;vertical-align:middle!important;border:none!important}.create-ro-batches-empty{text-align:center;color:#64748b;flex-direction:column;justify-content:center;align-items:center;gap:6px;min-height:160px;padding:20px 16px;display:flex}.create-ro-batches-empty strong{color:var(--text-secondary);font-size:13.5px;font-weight:700;display:block}.create-ro-batches-empty p{max-width:360px;color:var(--text-muted);margin:0;font-size:12.5px;line-height:1.4}.create-ro-batches-section .create-ro-table thead th{z-index:2;background:#f8fafc;position:sticky;top:0}.create-ro-batches-section .create-ro-batch-footer{margin-top:6px}.create-ro-batches-section .create-ro-table th,.create-ro-batches-section .create-ro-table td{padding-top:6px;padding-bottom:6px}.create-ro-filter-field{margin:0}.create-ro-search-input{display:block;position:relative}.create-ro-search-input input{width:100%;padding-right:36px!important}.create-ro-search-input input[type=search]::-webkit-search-cancel-button{appearance:none}.create-ro-search-input input[type=search]::-webkit-search-decoration{appearance:none}.create-ro-search-input-icon{color:var(--text-muted);pointer-events:none;position:absolute;top:50%;right:12px;transform:translateY(-50%)}.create-ro-check-row{flex-flow:wrap;align-items:center;gap:14px 18px;min-height:40px;padding-bottom:8px;display:flex}.create-ro-check{color:#475569;white-space:nowrap;cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;gap:8px;font-size:13px;display:inline-flex}.create-ro-check input{opacity:0;pointer-events:none;width:0;height:0;position:absolute}.create-ro-check-box{color:#0000;background:#fff;border:1.5px solid #cbd5e1;border-radius:4px;flex-shrink:0;place-items:center;width:16px;height:16px;transition:background .12s,border-color .12s,color .12s;display:inline-grid}.create-ro-check-box svg{width:11px;height:11px}.create-ro-check input:checked+.create-ro-check-box{background:var(--brand);border-color:var(--brand);color:#fff}.create-ro-check input:disabled+.create-ro-check-box{opacity:.45;cursor:not-allowed}.create-ro-check:has(input:disabled){opacity:.65;cursor:not-allowed}.create-ro-table-wrap{background:#fff;border:1px solid #e2e8f0;border-radius:10px;max-height:300px;overflow:auto}.create-ro-items-wrap{min-height:240px;max-height:340px;position:relative}.create-ro-items-wrap.is-empty{flex-direction:column;display:flex}.create-ro-items-wrap.is-empty .create-ro-items-table{flex:1;min-width:100%;height:100%}.create-ro-items-wrap.is-empty .create-ro-items-table tbody,.create-ro-items-empty-row{height:100%}.create-ro-items-empty-cell{text-align:center;background:#fff;height:200px;vertical-align:middle!important;border:none!important}.create-ro-items-empty{text-align:center;color:#64748b;flex-direction:column;justify-content:center;align-items:center;gap:6px;min-height:180px;padding:24px 16px;display:flex}.create-ro-items-empty strong{color:var(--text-secondary);font-size:14px;font-weight:650;display:block}.create-ro-items-empty p{color:var(--text-muted);max-width:320px;margin:0;font-size:13px;line-height:1.45}.create-ro-table{min-width:980px}.create-ro-table thead th{z-index:1;color:#64748b;white-space:nowrap;background:#f8fafc;font-size:12px;font-weight:700;position:sticky;top:0}.create-ro-table tbody tr.is-selected-row{background:#f2fef8}.create-ro-table input[type=number],.create-ro-table .number-input,.create-ro-items-table input{background:#fff;border:1px solid #e2e8f0;border-radius:7px;width:92px;height:36px;padding:0 8px;font-size:13px}.create-ro-table input.has-error,.create-ro-items-table .has-error{border-color:#dc2626!important}.create-ro-section-count{color:inherit;font-weight:600}.create-ro-select-check{cursor:pointer;flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}.create-ro-index-th,.create-ro-index-cell{white-space:nowrap;align-items:center;gap:8px;display:inline-flex}.create-ro-index-num{font-variant-numeric:tabular-nums;min-width:1.25ch}.create-ro-select-all{vertical-align:middle}.create-ro-table th.create-ro-index-col,.create-ro-table td.create-ro-index-col{white-space:nowrap;text-align:left;width:1%}.create-ro-table th.create-ro-select-col,.create-ro-table td.create-ro-select-col{text-align:right;white-space:nowrap}.create-ro-select-check input{opacity:0;pointer-events:none;width:0;height:0;position:absolute}.create-ro-select-box{color:#0000;background:#fff;border:1.5px solid #cbd5e1;border-radius:4px;place-items:center;width:18px;height:18px;transition:background .12s,border-color .12s,color .12s;display:inline-grid}.create-ro-select-box svg{width:12px;height:12px}.create-ro-select-check input:checked+.create-ro-select-box,.create-ro-select-check input:indeterminate+.create-ro-select-box{background:var(--brand);border-color:var(--brand);color:#fff}.create-ro-select-check input:disabled+.create-ro-select-box{opacity:.5;cursor:not-allowed}.create-ro-batch-footer{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-top:10px;display:flex}.create-ro-totals-bar{flex-wrap:wrap;align-items:stretch;gap:8px;margin-top:12px;display:flex}.create-ro-modal .create-ro-status-grid.create-ro-summary-totals,.create-ro-modal .create-ro-status-grid.create-ro-summary-meta{grid-template-columns:repeat(8,minmax(0,1fr));padding-bottom:0}.create-ro-modal .create-ro-status-grid.create-ro-summary-totals{border-bottom:1px solid color-mix(in srgb, var(--brand) 10%, transparent);margin-bottom:6px;padding-bottom:14px}.create-ro-modal .create-ro-status-grid.create-ro-summary-meta{padding-top:14px;padding-bottom:12px}.create-ro-modal .create-ro-summary-total-amount span{color:var(--brand-dark);font-weight:650}.create-ro-modal .create-ro-summary-total-amount strong{color:var(--brand-dark);font-weight:800}.create-ro-modal .create-ro-summary-input-field{width:100%;min-width:0;margin:0}.create-ro-modal .create-ro-summary-input-field>span:first-child{color:#64748b;font-size:12.5px;font-weight:500}.create-ro-modal .create-ro-summary-input-field .app-date-input{width:100%;min-width:0}.create-ro-modal .create-ro-summary-input-field .app-date-input-control{border:1px solid var(--border);box-sizing:border-box;background:#fff;border-radius:8px;width:100%;min-width:0;height:32px;min-height:32px;padding:0 8px}.create-ro-modal .create-ro-summary-input-field .app-date-input-field{width:100%;min-width:0;color:var(--text);font-size:12.5px;height:30px!important;min-height:30px!important;box-shadow:none!important;background:0 0!important;border:none!important;padding:0!important}.create-ro-modal .create-ro-summary-input-field .app-date-input-field::placeholder{color:var(--text-muted);font-size:12.5px}.create-ro-modal .create-ro-summary-input-field .app-date-input-icon-btn{width:24px;height:24px;color:var(--text-muted)}.create-ro-modal .create-ro-summary-input-field textarea{resize:vertical;box-sizing:border-box;width:100%;min-width:0;height:32px;min-height:32px;max-height:64px;color:var(--text);border:1px solid var(--border);background:#fff;border-radius:8px;padding:6px 48px 6px 8px;font-size:12.5px}.create-ro-modal .create-ro-summary-input-field textarea::placeholder{color:var(--text-muted);font-size:12.5px}.create-ro-modal .create-ro-summary-input-field.create-ro-notes-field{position:relative}.create-ro-modal .create-ro-summary-input-field .create-ro-char-count{color:var(--text-muted);pointer-events:none;margin-top:0;font-size:10.5px;position:absolute;bottom:8px;right:10px}.create-ro-total-chip{background:#fff;border:1px solid #e2e8f0;border-radius:10px;flex-direction:column;gap:4px;min-width:96px;padding:8px 10px;display:flex}.create-ro-total-chip span{color:#64748b;white-space:nowrap;font-size:11px;font-weight:500}.create-ro-total-chip strong{color:var(--text);font-size:13.5px;font-weight:700}.create-ro-total-highlight{border-color:color-mix(in srgb, var(--brand) 28%, white);background:#ecfdf5;min-width:190px;margin-left:auto;padding:10px 14px}.create-ro-total-highlight span{color:var(--brand-dark);font-size:12px;font-weight:650}.create-ro-total-highlight strong{color:var(--brand);letter-spacing:-.01em;font-size:20px}.create-ro-status-panel{background:var(--brand-muted);min-width:0;height:100%;padding:0 0 10px}.create-ro-status-panel-head{border-bottom:1px solid color-mix(in srgb, var(--brand) 10%, transparent);color:var(--brand-dark);background:0 0;align-items:center;gap:8px;padding:12px 16px;display:flex}.create-ro-status-panel-head h3{color:var(--brand-dark);margin:0;font-size:14px;font-weight:650}.create-ro-status-panel-head svg{color:var(--brand);flex-shrink:0}.create-ro-status-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 8px;padding:4px 0 6px;display:grid}.create-ro-modal .create-ro-status-grid{box-sizing:border-box;grid-template-columns:repeat(7,minmax(0,1fr));gap:12px;width:100%;min-width:0;padding:12px 16px 14px}.create-ro-status-grid .create-ro-meta-row{padding:8px 14px}.create-ro-modal .create-ro-status-grid .create-ro-meta-row{width:100%;min-width:0;padding:0}.create-ro-modal .create-ro-status-grid .create-ro-meta-row strong,.create-ro-modal .create-ro-status-grid .create-ro-status-pill{text-overflow:ellipsis;white-space:nowrap;max-width:100%;overflow:hidden}.create-ro-meta-row{color:#64748b;justify-content:space-between;align-items:flex-start;gap:12px;padding:10px 16px;font-size:12.5px;display:flex}.create-ro-meta-stack{flex-direction:column;align-items:flex-start;gap:6px}.create-ro-meta-label{align-items:center;gap:6px;display:inline-flex}.create-ro-meta-label svg{color:var(--brand);flex-shrink:0}.create-ro-meta-row strong{color:var(--text);text-align:left;font-weight:650}.create-ro-meta-divider{background:color-mix(in srgb, var(--brand) 12%, transparent);height:1px;margin:4px 16px}.create-ro-footer{background:#fff;border-top:1px solid #e8eef3;gap:10px;justify-content:flex-end!important;padding:12px 20px!important}.create-ro-footer .btn{border-radius:10px;align-items:center;gap:8px;height:40px;font-weight:600;display:inline-flex}.create-ro-btn-ghost,.create-ro-footer .create-ro-btn-ghost{color:#64748b!important;box-shadow:none!important;background:0 0!important;border-color:#0000!important}.create-ro-btn-ghost:hover:not(:disabled),.create-ro-footer .create-ro-btn-ghost:hover:not(:disabled){color:var(--text-secondary)!important;background:#f1f5f9!important}.create-ro-footer .btn-outline-brand{border:1.5px solid var(--brand);color:var(--brand-dark);background:#fff;min-width:128px}.create-ro-footer .btn-outline-brand:hover:not(:disabled){background:var(--brand-muted)}.create-ro-footer .btn-primary{background:var(--brand);border-color:var(--brand);min-width:148px}.create-ro-footer .btn-primary:hover:not(:disabled){background:var(--brand-dark);border-color:var(--brand-dark)}.form-error-text{color:#b91c1c;margin:0 0 8px;font-size:13px}.spin{animation:.9s linear infinite stock-skeleton}@media (width<=1280px){.create-ro-bottom-row{grid-template-columns:1fr}.create-ro-batch-toolbar,.create-ro-batch-toolbar.create-ro-batch-toolbar-internal{grid-template-columns:repeat(2,minmax(0,1fr))}.create-ro-check-row{grid-column:1/-1}.create-ro-total-highlight{margin-left:0}}@media (width<=1100px){.create-ro-grid-7,.create-ro-grid-6,.create-ro-grid-5,.create-ro-grid-4,.create-ro-grid-2,.create-ro-info-section .create-ro-grid-7,.create-ro-info-section .create-ro-grid-6,.create-ro-info-section .create-ro-grid-5,.create-ro-status-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.create-ro-modal .create-ro-status-grid,.create-ro-modal .create-ro-status-grid.create-ro-summary-totals,.create-ro-modal .create-ro-status-grid.create-ro-summary-meta{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (width<=900px){.create-ro-modal .create-ro-status-grid,.create-ro-modal .create-ro-status-grid.create-ro-summary-totals,.create-ro-modal .create-ro-status-grid.create-ro-summary-meta{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=720px){.create-ro-modal.modal-dialog{border-radius:12px;width:96vw}.create-ro-grid-7,.create-ro-grid-6,.create-ro-grid-5,.create-ro-grid-4,.create-ro-grid-2,.create-ro-info-section .create-ro-grid-7,.create-ro-info-section .create-ro-grid-6,.create-ro-info-section .create-ro-grid-5,.create-ro-batch-toolbar,.create-ro-status-grid,.create-ro-modal .create-ro-status-grid,.create-ro-modal .create-ro-status-grid.create-ro-summary-totals,.create-ro-modal .create-ro-status-grid.create-ro-summary-meta{grid-template-columns:1fr}.create-ro-footer{flex-wrap:wrap}.create-ro-footer .btn{flex:auto}}.stock-page{--stock-gap:14px;--stock-control-h:42px;--stock-radius:14px;gap:var(--stock-gap);flex-direction:column;display:flex}.stock-page>.app-page-header,.stock-page>.filter-toolbar,.stock-page>.table-section{margin-bottom:0}.stock-page .page-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:12px;display:flex}.stock-page .stock-header-btn,.stock-page .page-actions .btn,.stock-page .more-actions-menu>.btn{height:var(--stock-control-h);min-height:var(--stock-control-h);border-radius:12px;gap:8px;padding:0 16px;font-size:13.5px;font-weight:600}.stock-return-btn{color:#fff;background:#6d28d9;border-color:#6d28d9}.stock-return-btn:hover:not(:disabled){color:#fff;background:#5b21b6;border-color:#5b21b6}.stock-filter-toolbar{border-radius:var(--stock-radius);padding:14px 16px;box-shadow:0 1px 2px #0f172a0a,0 8px 24px #0f172a0a}.stock-table-section>.stock-filter-toolbar{border:0;border-bottom:1px solid var(--border);box-shadow:none;background:0 0;border-radius:0;flex:none;padding:12px 14px}.stock-filter-main{flex-wrap:nowrap;align-items:center;gap:12px;display:flex}.stock-filter-search{min-width:180px;max-width:none;height:var(--stock-control-h);border-color:var(--border);background:#fff;border-radius:12px;flex:auto;padding:0 14px}.stock-filter-search input{font-size:13.5px}.stock-filter-controls{flex-wrap:wrap;flex:0 auto;align-items:center;gap:10px;min-width:0;display:flex}.stock-filter-trailing{flex:none;align-items:center;margin-left:0;display:flex}.stock-filter-trailing .column-visibility-menu>.btn{height:var(--stock-control-h);min-height:var(--stock-control-h);white-space:nowrap}.stock-filter-controls .filter-select,.stock-filter-controls .filter-autocomplete{min-width:118px;max-width:160px;height:var(--stock-control-h);min-height:var(--stock-control-h);background:#fff;border-radius:12px;flex:none;padding:0 12px;font-size:13px}.stock-filter-controls .filter-autocomplete{padding:0}.stock-filter-controls .filter-autocomplete .autocomplete-control{height:var(--stock-control-h);min-height:var(--stock-control-h);border-radius:12px}.stock-filter-controls .filter-icon-btn.stock-filter-btn{width:var(--stock-control-h);height:var(--stock-control-h);min-width:var(--stock-control-h);min-height:var(--stock-control-h);background:#fff;border-radius:12px;flex:none;padding:0}.stock-table-section{flex-direction:column;flex:auto;gap:0;min-height:0;display:flex;overflow:hidden}.stock-table-section .stock-summary-cards{border-bottom:1px solid var(--border);flex:none;padding:14px 14px 12px}.stock-summary-cards{grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;display:grid}.stock-page .app-page-header-row.has-center{align-items:stretch;gap:12px}.stock-page .app-page-header-center{justify-content:stretch;overflow-x:auto}.stock-summary-cards-header{gap:8px;width:100%;min-width:720px}.stock-summary-cards-header .stock-summary-card{gap:8px;min-height:68px;padding:8px 10px}.stock-summary-cards-header .stock-summary-icon{border-radius:10px;width:32px;height:32px}.stock-summary-cards-header .stock-summary-label{font-size:11px}.stock-summary-cards-header .stock-summary-count{font-size:1.15rem}.stock-summary-cards-header .stock-summary-count.is-money{font-size:.95rem}@media (width<=1100px){.stock-page .app-page-header-row.has-center{flex-wrap:wrap}.stock-page .app-page-header-row.has-center .app-page-header-left,.stock-page .app-page-header-row.has-center .app-page-header-right{flex:none}.stock-page .app-page-header-row.has-center .app-page-header-center{flex:100%;order:3}.stock-summary-cards-header{min-width:0}}.stock-summary-card{border-radius:var(--stock-radius);text-align:center;cursor:pointer;border:1px solid #0000;align-items:center;gap:12px;min-height:88px;padding:14px 16px;transition:transform .15s,box-shadow .15s,border-color .15s;display:flex;box-shadow:0 1px 2px #0f172a0a}.stock-summary-card:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 8px 20px #0f172a14}.stock-summary-card.is-active{border-color:currentColor;box-shadow:inset 0 0 0 1px,0 8px 20px #0f172a0f}.stock-summary-icon{border-radius:12px;flex-shrink:0;place-items:center;width:40px;height:40px;display:grid}.stock-summary-copy{flex-direction:column;gap:4px;min-width:0;display:flex}.stock-summary-label{color:#64748b;font-size:12.5px;font-weight:600;line-height:1.2}.stock-summary-count{letter-spacing:-.03em;color:var(--text);font-size:1.55rem;font-weight:750;line-height:1}.stock-summary-card.tone-all{color:var(--brand-dark);background:#ecfdf5}.stock-summary-card.tone-all .stock-summary-icon{background:var(--brand-soft);color:var(--brand-dark)}.stock-summary-card.tone-in{color:#1d4ed8;background:#eff6ff}.stock-summary-card.tone-in .stock-summary-icon{color:#1d4ed8;background:#dbeafe}.stock-summary-card.tone-low{color:#c2410c;background:#fff7ed}.stock-summary-card.tone-low .stock-summary-icon{color:#c2410c;background:#ffedd5}.stock-summary-card.tone-out{background:var(--danger-bg);color:#dc2626}.stock-summary-card.tone-out .stock-summary-icon{color:#dc2626;background:#fee2e2}.stock-summary-card.tone-near{color:#d97706;background:#fffbeb}.stock-summary-card.tone-near .stock-summary-icon{color:#d97706;background:#fef3c7}.stock-summary-card.tone-expired{color:#be123c;background:#fff1f2}.stock-summary-card.tone-expired .stock-summary-icon{color:#be123c;background:#ffe4e6}.stock-summary-card.tone-amount{color:#1d4ed8;background:#eff6ff}.stock-summary-card.tone-amount .stock-summary-icon{color:#1d4ed8;background:#dbeafe}.stock-summary-card.tone-sale{color:#15803d;background:#f0fdf4}.stock-summary-card.tone-sale .stock-summary-icon{color:#15803d;background:#dcfce7}.stock-summary-card.tone-gst{color:#6d28d9;background:#f5f3ff}.stock-summary-card.tone-gst .stock-summary-icon{color:#6d28d9;background:#ede9fe}.stock-summary-card.is-static{cursor:default}.stock-summary-card.is-static:hover{transform:none;box-shadow:0 1px 2px #0f172a0a}.stock-summary-count.is-money{letter-spacing:-.02em;font-size:1.15rem}.stock-table-toolbar{border-bottom:1px solid var(--border);flex:none;justify-content:flex-end;align-items:center;gap:10px;padding:12px 14px 14px;display:flex}.table-section>.stock-filter-toolbar,.stock-table-section>.stock-filter-toolbar{flex:none}.stock-dates-filter{position:relative}.stock-dates-filter .vendor-date-range-trigger{min-height:38px}.stock-cell-money{color:var(--text);white-space:nowrap;font-weight:650}.stock-bulk-bar{border-bottom:1px solid var(--border);flex-wrap:wrap;flex:none;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;display:flex}.stock-table-section .stock-bulk-bar{border:0;border-bottom:1px solid var(--border);box-shadow:none;background:0 0;border-radius:0}.stock-bulk-left,.stock-bulk-right{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.stock-bulk-label{color:#475569;margin-right:2px;font-size:13px;font-weight:650}.stock-bulk-btn,.stock-bulk-right .btn{border-radius:11px;height:38px;min-height:38px;padding:0 12px;font-size:13px;font-weight:600}.stock-table-wrap{flex:auto;min-height:0;overflow:auto}.stock-table-section .po-table-wrap{min-height:0;box-shadow:none;background:0 0;border:0;border-radius:0;flex:auto;overflow:auto}.stock-table{--stock-sticky-actions-width:88px;border-collapse:separate;border-spacing:0;min-width:1180px}.stock-table thead th{z-index:2;color:#64748b;letter-spacing:.04em;white-space:nowrap;background:#f8fafc;border-bottom:1px solid #e2e8f0;padding:14px 12px;font-size:11.5px;font-weight:700;position:sticky;top:0}.stock-table tbody td{vertical-align:middle;color:var(--text);border-bottom:1px solid #f1f5f9;padding:14px 12px;font-size:13.5px}.stock-table tbody tr{transition:background-color .15s}.stock-table tbody tr:hover{background:#f8fafc}.stock-table tbody tr.is-selected{background:#f0fdf9}.stock-table .col-check{text-align:center;width:44px}.stock-table .col-check input{width:16px;height:16px;accent-color:var(--brand)}.stock-table th.stock-col-sticky-left,.stock-table td.stock-col-sticky-left{z-index:3;position:sticky;left:0}.stock-table td.stock-col-sticky-left{background:#fff;box-shadow:4px 0 10px -4px #0f172a24}.stock-table .stock-col-medicine{min-width:220px}.stock-table thead th.stock-col-sticky-left{z-index:6;top:0;box-shadow:4px 0 10px -4px #0f172a2e;background:var(--brand-dark)!important;color:#fff!important}.stock-table th.stock-col-sticky-right,.stock-table td.stock-col-sticky-right{z-index:3;position:sticky;right:0}.stock-table td.stock-col-sticky-right{min-width:var(--stock-sticky-actions-width);width:var(--stock-sticky-actions-width);background:#fff;border-left:1px solid #e2e8f0;box-shadow:-4px 0 10px -4px #0f172a24}.stock-table thead th.stock-col-sticky-right{z-index:6;min-width:var(--stock-sticky-actions-width);width:var(--stock-sticky-actions-width);border-left:1px solid #ffffff1f;top:0;box-shadow:-4px 0 10px -4px #0f172a2e;background:var(--brand-dark)!important;color:#fff!important}.stock-table thead th.stock-col-sticky-left .th-sort,.stock-table thead th.stock-col-sticky-right .th-sort{color:inherit}.stock-table tbody tr:hover td.stock-col-sticky-left,.stock-table tbody tr:hover td.stock-col-sticky-right{background:#f8fafc}.stock-table tbody tr.is-selected td.stock-col-sticky-left,.stock-table tbody tr.is-selected td.stock-col-sticky-right{background:#f0fdf9}.stock-table .skeleton-row td.stock-col-sticky-left,.stock-table .skeleton-row td.stock-col-sticky-right{background:#fff}.stock-medicine-cell{align-items:center;gap:12px;min-width:180px;display:flex}.stock-medicine-icon{width:34px;height:34px;color:var(--brand-dark);background:#ecfdf5;border-radius:10px;flex-shrink:0;place-items:center;display:grid}.stock-medicine-text{flex-direction:column;gap:3px;min-width:0;display:flex}.stock-medicine-text strong{color:var(--text);font-size:13.5px;font-weight:600;line-height:1.25}.stock-medicine-text span{color:var(--text-muted);font-size:12px;line-height:1.2}.stock-medicine-link{color:var(--brand);text-align:left;cursor:pointer;background:0 0;border:0;padding:0;font-size:13.5px;font-weight:600;line-height:1.25}.stock-medicine-link:hover{color:var(--brand-dark);text-decoration:underline}.stock-cell-text{color:var(--text-secondary)}.stock-cell-mono{font-variant-numeric:tabular-nums;color:var(--text-secondary)}.stock-available-cell{flex-direction:column;gap:8px;min-width:110px;display:flex}.stock-available-qty{font-variant-numeric:tabular-nums;color:var(--text);font-size:13.5px;font-weight:600}.stock-available-qty-value{color:var(--text);font-weight:650}.stock-available-qty-value.is-positive{color:var(--brand);font-weight:700}.stock-progress{background:#e2e8f0;border-radius:999px;width:100%;max-width:112px;height:6px;overflow:hidden}.stock-progress>span{border-radius:inherit;height:100%;transition:width .2s;display:block}.stock-progress-ok>span{background:#10b981}.stock-progress-low>span{background:#f97316}.stock-progress-empty>span{background:var(--text-muted)}.stock-rate-cell{flex-direction:column;gap:3px;min-width:84px;display:flex}.stock-rate-cell strong{color:var(--text);font-size:13.5px;font-weight:650}.stock-rate-cell span{color:var(--text-muted);font-size:11.5px}.stock-days-stack{flex-direction:column;gap:2px;line-height:1.15;display:flex}.stock-days-stack strong{letter-spacing:-.02em;font-size:1.05rem;font-weight:750}.stock-days-stack span{color:var(--text-muted);font-size:11.5px;font-weight:600}.stock-days-stack.tone-success strong{color:#059669}.stock-days-stack.tone-warning strong{color:#ea580c}.stock-days-stack.tone-danger strong{color:#dc2626}.stock-days-stack.tone-muted,.stock-days-left.tone-muted{color:var(--text-muted)}.stock-status-pill{white-space:nowrap;border:1px solid #0000;border-radius:999px;align-items:center;height:28px;padding:0 10px;font-size:12px;font-weight:650;display:inline-flex}.stock-status-pill.stock-in{color:#047857;background:#ecfdf5;border-color:#a7f3d0}.stock-status-pill.stock-low{color:#c2410c;background:#fff7ed;border-color:#fed7aa}.stock-status-pill.stock-out{color:#64748b;background:#f8fafc;border-color:#e2e8f0}.stock-status-pill.stock-near{color:#b45309;background:#fffbeb;border-color:#fde68a}.stock-status-pill.stock-expired{color:#be123c;background:#fff1f2;border-color:#fecdd3}.stock-status-pill.stock-unknown{color:#64748b;background:#f8fafc;border-color:#e2e8f0}.stock-row-actions{align-items:center;gap:8px;display:inline-flex;position:relative}.stock-action-btn{color:#475569;background:#fff;border:1px solid #e2e8f0;border-radius:10px;place-items:center;width:34px;height:34px;transition:background-color .15s,border-color .15s,color .15s,transform .15s;display:inline-grid}.stock-action-btn:hover:not(:disabled){color:var(--brand-dark);background:#f8fafc;border-color:#cbd5e1;transform:translateY(-1px)}.stock-action-btn:disabled{opacity:.45;cursor:not-allowed}.stock-row-actions .row-more-menu{z-index:5;min-width:210px;left:auto;right:0}.stock-empty-state{text-align:center;color:#64748b;flex-direction:column;justify-content:center;align-items:center;gap:10px;padding:72px 24px;display:flex}.stock-empty-icon{width:72px;height:72px;color:var(--text-muted);background:#f1f5f9;border-radius:20px;place-items:center;margin-bottom:6px;display:grid}.stock-empty-state strong{color:var(--text);font-size:16px;font-weight:700}.stock-empty-state p{color:#64748b;max-width:360px;margin:0;font-size:13.5px;line-height:1.5}.stock-edit-batch-modal,.stock-history-modal{flex-direction:column;width:min(720px,100%);max-height:min(90vh,860px);display:flex}.stock-edit-batch-header,.stock-history-header{border-bottom:1px solid #eef2f6;justify-content:space-between;align-items:flex-start;gap:12px;padding:16px 18px;display:flex}.stock-edit-batch-header h2,.stock-history-header h2{margin:0;font-size:16px}.stock-edit-batch-header p,.stock-history-header p{color:#64748b;margin:4px 0 0;font-size:13px}.stock-edit-batch-body,.stock-history-body{padding:18px;overflow:auto}.stock-edit-batch-error,.stock-history-error{color:#b91c1c;background:#fef2f2;border:1px solid #fecaca;border-radius:10px;margin-bottom:12px;padding:10px 12px;font-size:13px}.stock-edit-batch-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.stock-edit-batch-grid .span-2{grid-column:1/-1}.stock-edit-batch-field{gap:6px;display:grid}.stock-edit-batch-field>span,.stock-edit-batch-qty>span{color:var(--text-secondary);font-size:12.5px;font-weight:650}.stock-edit-batch-field em{color:#dc2626;font-style:normal}.stock-edit-batch-field input,.stock-edit-batch-field textarea{border:1px solid var(--border);width:100%;min-height:40px;color:var(--text);background:#fff;border-radius:10px;padding:8px 12px;font-size:13.5px}.stock-edit-batch-field textarea{resize:vertical;min-height:84px}.stock-edit-batch-field .field-error,.stock-edit-batch-qty .field-error{color:#dc2626;font-size:12px}.stock-edit-batch-qty{gap:6px;display:grid}.stock-edit-batch-qty-row{grid-template-columns:1fr 1fr;gap:10px;display:grid}.stock-edit-batch-qty-row label{gap:6px;display:grid}.stock-edit-batch-qty-row label>span{color:#64748b;font-size:12px}.stock-edit-batch-footer{border-top:1px solid #eef2f6;justify-content:flex-end;gap:10px;padding:14px 18px 18px;display:flex}.stock-history-status,.stock-history-empty{text-align:center;color:#64748b;place-items:center;gap:8px;padding:48px 16px;display:grid}.stock-history-empty strong{color:var(--text);font-size:15px}.stock-history-empty p{max-width:320px;margin:0;font-size:13px;line-height:1.5}.stock-history-list{gap:12px;margin:0;padding:0;list-style:none;display:grid}.stock-history-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:14px}.stock-history-card-top{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.stock-history-card-top strong{color:var(--text);font-size:14px}.stock-history-card-top p{color:#64748b;margin:4px 0 0;font-size:12.5px}.stock-history-user{color:#334155;background:#f1f5f9;border-radius:999px;flex-shrink:0;padding:4px 10px;font-size:12px;font-weight:650}.stock-history-changes{gap:8px;margin:12px 0 0;padding:0;list-style:none;display:grid}.stock-history-changes li{background:#f8fafc;border-radius:8px;gap:2px;padding:8px 10px;display:grid}.stock-history-changes span{color:#64748b;font-size:12px}.stock-history-changes strong{color:var(--text);font-size:13px;font-weight:600}.stock-history-no-diff,.stock-history-remarks{color:#64748b;margin:10px 0 0;font-size:13px}.stock-history-remarks{border-top:1px dashed #e2e8f0;padding-top:10px}@media (width<=720px){.stock-edit-batch-grid,.stock-edit-batch-qty-row{grid-template-columns:1fr}}.stock-table-footer{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;padding:12px 4px 2px;display:flex}.stock-table-footer .table-footer-summary{color:#64748b;font-size:13px}.stock-table-footer .rows-per-page{color:#64748b;align-items:center;gap:8px;margin-left:auto;font-size:13px;display:inline-flex}.stock-table-footer .pagination{align-items:center;gap:6px;display:inline-flex}.stock-table-footer .page-btn{border-radius:999px;width:34px;height:34px}.stock-table-footer .page-btn.active{background:var(--brand);border-color:var(--brand);color:#fff}.skeleton-row .skeleton-block{background:linear-gradient(90deg,#f1f5f9 25%,#e2e8f0 50%,#f1f5f9 75%) 0 0/200% 100%;border-radius:6px;height:14px;animation:1.2s ease-in-out infinite stock-skeleton}@keyframes stock-skeleton{0%{background-position:200% 0}to{background-position:-200% 0}}.stock-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}@media (width<=1100px){.stock-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=720px){.stock-filter-grid{grid-template-columns:1fr}}@media (width<=1280px){.stock-summary-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.stock-filter-main{flex-wrap:wrap}.stock-filter-search{flex:100%;max-width:none}}@media (width<=900px){.stock-summary-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.stock-filter-controls .filter-select{max-width:none}.stock-table-footer .rows-per-page{margin-left:0}}@media (width<=640px){.stock-summary-cards{grid-template-columns:1fr}.stock-bulk-bar{align-items:stretch}.stock-bulk-left,.stock-bulk-right{width:100%}.stock-bulk-btn,.stock-bulk-right .btn{flex:auto}.stock-page .page-actions{width:100%}.stock-page .stock-header-btn,.stock-page .page-actions .btn,.stock-page .more-actions-menu{flex:auto}.stock-page .more-actions-menu>.btn{width:100%}}.view-ro-modal.modal-dialog{background:#f3f5f7;border-radius:14px;flex-direction:column;width:min(96vw,1680px);max-width:1680px;max-height:min(94vh,100dvh - 16px);display:flex;overflow:hidden}.view-ro-header{border-bottom:1px solid var(--border);flex-shrink:0;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;display:flex}.view-ro-header-main{align-items:flex-start;gap:10px;min-width:0;display:flex}.view-ro-back-btn{margin-top:2px}.view-ro-header-icon{width:32px;height:32px;color:var(--brand-dark);background:#ecfdf5;border-radius:9px;place-items:center;display:inline-grid}.view-ro-header-title-row{align-items:center;gap:8px;display:flex}.view-ro-header-title-row h2{color:var(--text);margin:0;font-size:1.05rem;font-weight:700}.view-ro-header-meta{display:none}.view-ro-card.view-po-card{border:1px solid var(--border);background:#fff;border-radius:12px;padding:12px 14px}.view-ro-items-wrap.view-po-items-wrap{max-height:min(52vh,480px)}.view-ro-items-table{min-width:1480px}.view-ro-amount-card .view-ro-card-head{margin-bottom:10px}.view-ro-empty-summary{color:var(--text-muted);margin:0;font-size:13px}.view-ro-body{background:#f8fafc;flex-direction:column;flex:auto;gap:12px;padding:14px 16px 8px;display:flex;overflow:auto}.view-ro-loading{color:#64748b;place-items:center;gap:8px;min-height:280px;display:grid}.view-ro-card{border:1px solid var(--border);background:#fff;border-radius:12px;padding:12px 14px}.view-ro-card-head{color:var(--brand-dark);align-items:center;gap:8px;margin-bottom:10px;display:flex}.view-ro-card-head h3{color:var(--text);margin:0;font-size:.95rem;font-weight:700}.view-ro-overview-grid,.view-ro-overview-secondary{grid-template-columns:repeat(6,minmax(0,1fr));gap:10px 14px;display:grid}.view-ro-overview-secondary{border-top:1px solid #eef2f7;grid-template-columns:repeat(5,minmax(0,1fr));margin-top:12px;padding-top:12px}.view-ro-meta-field{min-width:0}.view-ro-meta-label{color:var(--text-muted);text-transform:uppercase;letter-spacing:.02em;align-items:center;gap:4px;font-size:11px;font-weight:600;display:inline-flex}.view-ro-meta-value{color:var(--text);margin-top:4px;font-size:13.5px}.view-ro-meta-value strong{font-weight:700}.view-ro-meta-value .is-empty{color:var(--text-muted)}.view-ro-type-badge{color:#047857;background:#d1fae5;border-radius:999px;margin-top:4px;padding:2px 8px;font-size:11px;font-weight:700;display:inline-flex}.view-ro-items-wrap{border:1px solid var(--border);-webkit-overflow-scrolling:touch;border-radius:10px;max-height:min(48vh,420px);overflow:auto}.view-ro-items-table{border-collapse:collapse;width:100%;min-width:1080px}.view-ro-items-table th,.view-ro-items-table td{vertical-align:top;text-align:center;border-bottom:1px solid #eef2f7;padding:10px 12px;font-size:12.5px}.view-ro-items-table th{z-index:1;background:var(--brand-dark);color:#fff;letter-spacing:.02em;font-size:11px;font-weight:700;position:sticky;top:0}.view-ro-items-table tbody tr:nth-child(2n){background:#f8fafc}.view-ro-empty-row{color:var(--text-muted);text-align:center!important;padding:24px!important}.view-ro-medicine{flex-direction:column;gap:4px;display:flex}.view-ro-pill{color:#0369a1;background:#e0f2fe;border-radius:999px;width:fit-content;padding:1px 7px;font-size:11px;font-weight:600;display:inline-flex}.view-ro-code{color:#64748b;font-size:11.5px}.view-ro-batch{flex-direction:column;gap:3px;display:flex}.view-ro-batch span{color:#64748b;font-size:11.5px}.view-ro-qty{flex-direction:column;gap:2px;font-size:12px;display:flex}.view-ro-qty.is-highlight{background:#ecfdf5;border:1px solid #a7f3d0;border-radius:8px;padding:6px 8px}.view-ro-qty-label{color:#64748b}.view-ro-pricing{color:#475569;flex-direction:column;gap:2px;font-size:12px;display:flex}.view-ro-amount{color:var(--brand-dark);white-space:nowrap;font-weight:700}.view-ro-items-footer{color:#475569;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;margin-top:10px;font-size:12.5px;display:flex}.view-ro-items-total{color:#047857;background:#ecfdf5;border-radius:8px;padding:6px 10px;font-weight:700}.view-ro-bottom-grid{grid-template-columns:1.1fr 1fr;gap:12px;display:grid}.view-ro-summary-list{gap:6px;display:grid}.view-ro-summary-list>div{color:#475569;justify-content:space-between;gap:12px;font-size:13px;display:flex}.view-ro-summary-total{color:#047857;background:#ecfdf5;border-radius:10px;justify-content:space-between;align-items:center;gap:12px;margin-top:12px;padding:12px 14px;font-weight:700;display:flex}.view-ro-timeline{gap:14px;margin:0;padding:0 0 0 4px;list-style:none;display:grid}.view-ro-timeline-item{grid-template-columns:22px 1fr;gap:10px;display:grid;position:relative}.view-ro-timeline-item:not(:last-child):before{content:"";background:#e2e8f0;width:2px;position:absolute;top:22px;bottom:-14px;left:10px}.view-ro-timeline-dot{width:22px;height:22px;color:var(--brand-dark);z-index:1;background:#ecfdf5;border-radius:999px;place-items:center;display:grid}.view-ro-timeline-item.tone-items .view-ro-timeline-dot{color:#1d4ed8;background:#dbeafe}.view-ro-timeline-item.tone-saved .view-ro-timeline-dot{color:#6d28d9;background:#ede9fe}.view-ro-timeline-item.tone-cancelled .view-ro-timeline-dot{color:#b91c1c;background:#fee2e2}.view-ro-timeline-item strong{color:var(--text);font-size:13.5px;display:block}.view-ro-timeline-item p{color:#64748b;margin:2px 0;font-size:12.5px}.view-ro-timeline-item time{color:var(--text-muted);font-size:11.5px}.view-ro-timeline-empty{color:var(--text-muted);font-size:13px}.view-ro-footer{border-top:1px solid var(--border);background:#fff;flex-shrink:0;justify-content:flex-end;gap:8px;padding:12px 16px;display:flex}@media (width<=960px){.view-ro-overview-grid,.view-ro-overview-secondary,.view-ro-bottom-grid{grid-template-columns:1fr 1fr}}@media (width<=640px){.view-ro-overview-grid,.view-ro-overview-secondary,.view-ro-bottom-grid{grid-template-columns:1fr}.view-ro-footer{flex-wrap:wrap}.view-ro-footer .btn{flex:auto}}@media print{body *{visibility:hidden}.view-ro-modal,.view-ro-modal *,.order-receipt-modal,.order-receipt-modal *,.grn-receipt-modal,.grn-receipt-modal *{visibility:visible}.view-ro-modal,.order-receipt-modal,.grn-receipt-modal{width:100%;max-width:none;max-height:none;box-shadow:none;border-radius:0;position:absolute;inset:0}.view-ro-header .icon-btn,.view-ro-footer,.order-receipt-chrome-header,.order-receipt-footer,.order-receipt-modal .no-print,.grn-receipt-modal .no-print,.modal-overlay{display:none!important}.view-ro-body{background:#fff;overflow:visible}.order-receipt-body{background:#fff!important;max-height:none!important;padding:0!important;overflow:visible!important}.order-receipt-sheet{box-shadow:none!important;border:none!important}body.si-is-printing *{visibility:hidden!important}body.si-is-printing #si-print-root,body.si-is-printing #si-print-root *{visibility:visible!important}body.si-is-printing,body.si-is-printing #si-print-root,body.si-is-printing #si-print-root *{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important;color-adjust:exact!important}body.si-is-printing #si-print-root{z-index:99999!important;background:#fff!important;width:100%!important;margin:0!important;padding:0!important;display:block!important;position:absolute!important;top:0!important;left:0!important}body.si-is-printing #si-print-root .si-invoice-sheet{box-shadow:none!important;width:100%!important;max-width:none!important;color:var(--text)!important;background:#fff!important;border:none!important;border-radius:0!important;margin:0!important;padding:12px 16px!important}body.si-is-printing #si-print-root .si-logo{color:#14b8a6!important;background:#1f2a37!important}body.si-is-printing #si-print-root .si-brand strong,body.si-is-printing #si-print-root .si-brand-block strong,body.si-is-printing #si-print-root .si-accent{color:#0f8f7f!important}body.si-is-printing #si-print-root .si-billto-label{color:#0c7a6c!important;background:#e7f6f3!important}body.si-is-printing #si-print-root .si-table-wrap{overflow:visible!important}body.si-is-printing #si-print-root .si-table{width:100%!important;min-width:0!important}body.si-is-printing #si-print-root .si-table th{color:#334155!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important;background:#f1f5f9!important}body.si-is-printing #si-print-root .si-info-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important;display:grid!important}body.si-is-printing #si-print-root .si-bottom-grid{grid-template-columns:minmax(0,1.15fr) minmax(220px,.85fr)!important;gap:14px!important;display:grid!important}body.si-is-printing #si-print-root .si-doc-header,body.si-is-printing #si-print-root .si-footer-bar{justify-content:space-between!important;display:flex!important}body.si-is-printing #si-print-root .si-payment-box{background:#fafbfc!important;border:1px solid #e2e8f0!important}body.si-is-printing #si-print-root .si-top{justify-content:space-between!important;gap:20px!important;display:flex!important}body.si-is-printing #si-print-root .si-meta{text-align:right!important}body.si-is-printing #si-print-root .si-billto-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;display:grid!important}body.si-is-printing #si-print-root .si-calcs{flex-wrap:nowrap!important;gap:6px!important;display:flex!important;overflow:visible!important}body.si-is-printing #si-print-root .si-calc-box{border:1px solid var(--border-light)!important;background:#f8fafb!important;flex:1 1 0!important;min-width:0!important;padding:6px 8px!important}body.si-is-printing #si-print-root .si-calc-box span{white-space:normal!important;text-overflow:unset!important;color:#64748b!important;font-size:9px!important;line-height:1.25!important;overflow:visible!important}body.si-is-printing #si-print-root .si-calc-box strong{color:var(--text)!important;font-size:12px!important}body.si-is-printing #si-print-root .si-payment{border:1px solid var(--border-light)!important;background:#f8fafb!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;display:grid!important}body.si-is-printing #si-print-root .si-footer{justify-content:space-between!important;align-items:flex-end!important;display:flex!important}body.si-is-printing #si-print-root .si-thanks{text-align:left!important}body.si-is-printing #si-print-root .si-sign-space{background:0 0!important;border:none!important;height:64px!important}}#si-print-root{display:none}.edit-ro-modal.create-ro-modal.modal-dialog{border-radius:14px;width:min(98vw,1360px);max-width:1360px;max-height:min(96vh,980px);box-shadow:0 24px 48px #0f172a24,0 4px 12px #0f172a0f}.edit-ro-modal .create-ro-body{background:#fff;gap:10px;padding:12px 16px 18px;overflow-x:hidden;overflow-y:auto!important}.edit-ro-modal .create-ro-main{gap:10px}.edit-ro-modal .create-ro-card{box-shadow:none;background:#f4fbfa;border:1px solid #cfece8;border-radius:12px}.edit-ro-header.create-ro-header{border-bottom:1px solid #e8eef3;align-items:flex-start;min-height:58px;padding:12px 16px!important}.edit-ro-title-row{align-items:flex-start;gap:8px;display:flex}.edit-ro-back-btn{width:30px;height:30px;color:var(--text-secondary);flex-shrink:0;margin-top:1px}.edit-ro-subtitle{color:var(--text-muted);margin:1px 0 0;font-size:12.5px;font-weight:400;line-height:1.3}.edit-ro-header h2{color:var(--text);margin:0;font-size:16px;font-weight:700;line-height:1.25}.edit-ro-modal .create-ro-info-section{padding-bottom:8px}.edit-ro-modal .create-ro-info-section .create-ro-section-banner{margin-bottom:6px;padding:7px 12px}.edit-ro-modal .create-ro-section-banner{border-bottom:1px solid color-mix(in srgb, var(--brand) 12%, transparent);margin:0 0 8px;padding:8px 12px}.edit-ro-modal .create-ro-section-banner h3{color:var(--brand-dark);font-size:13.5px;font-weight:700}.edit-ro-modal .create-ro-section-banner svg{width:15px;height:15px}.edit-ro-modal .create-ro-info-section .create-ro-grid{gap:8px 10px;margin:0 12px 8px}.edit-ro-modal .create-ro-info-section .form-field{gap:3px;min-width:0}.edit-ro-modal .create-ro-info-section .form-field>span{color:#475569;font-size:11.5px;font-weight:600;line-height:1.2}.edit-ro-modal .create-ro-info-section .form-field>span em{color:#dc2626;margin-left:1px;font-style:normal}.edit-ro-modal .create-ro-info-section .form-field>input,.edit-ro-modal .create-ro-info-section .form-field>select,.edit-ro-modal .create-ro-info-section .form-field .create-ro-search-input input,.edit-ro-modal .create-ro-info-section .form-field .app-date-input-field,.edit-ro-modal .create-ro-info-section .form-field .app-date-input-control,.edit-ro-modal .create-ro-info-section .form-field .autocomplete-control{height:32px;min-height:32px;color:var(--text);background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:0 10px;font-size:12.5px;font-weight:700}.edit-ro-modal .create-ro-info-section .form-field .autocomplete-control{padding:0 6px 0 10px}.edit-ro-modal .create-ro-info-section .form-field .autocomplete-control input{border:none;height:30px;min-height:30px;padding:0;font-size:12.5px;font-weight:700}.edit-ro-modal .create-ro-info-section .form-field .app-date-input-field{height:32px;min-height:32px;padding-right:34px;font-weight:700}.edit-ro-modal .create-ro-info-section .form-field .app-date-input-control{padding:0}.edit-ro-modal .create-ro-readonly-input,.edit-ro-modal .create-ro-info-section .form-field input.create-ro-readonly-input,.edit-ro-modal .create-ro-info-section .form-field input:disabled,.edit-ro-modal .create-ro-info-section .form-field input[readonly]{cursor:default;color:#475569!important;background:#f1f5f9!important;border-color:#e2e8f0!important}.edit-ro-modal .create-ro-info-section .form-field input.edit-ro-notes-like,.edit-ro-modal .create-ro-info-section .form-field input.edit-ro-notes-like[readonly]{cursor:default;color:var(--text)!important;background:#fff!important;border:1px solid #e2e8f0!important}.edit-ro-modal .create-ro-pharmacy-ac-icon{width:14px;height:14px;top:50%;left:10px;transform:translateY(-50%)}.edit-ro-modal .create-ro-items-section{padding-bottom:10px}.edit-ro-items-banner{justify-content:space-between;align-items:center;gap:10px;display:flex;padding-right:12px!important}.edit-ro-items-title{align-items:center;gap:7px;display:inline-flex}.edit-ro-items-title h3{margin:0;font-size:13.5px;font-weight:700}.edit-ro-add-item-btn{white-space:nowrap;border-width:1.5px!important;border-radius:8px!important;gap:5px!important;height:30px!important;min-height:30px!important;padding:0 12px!important;font-size:12.5px!important;font-weight:600!important}.edit-ro-modal .create-ro-items-wrap{background:#fff;border:1px solid #e2e8f0;border-radius:10px;min-height:0;max-height:280px;margin:0 12px;overflow:auto}.edit-ro-modal .create-ro-items-wrap.is-empty{min-height:120px}.edit-ro-modal .create-ro-items-empty-cell{height:110px}.edit-ro-modal .create-ro-items-empty{min-height:90px;padding:16px}.edit-ro-modal .create-ro-items-table{border-collapse:separate;border-spacing:0;width:100%;min-width:1080px}.edit-ro-modal .create-ro-items-table thead th{z-index:1;color:#64748b;letter-spacing:.04em;white-space:nowrap;vertical-align:middle;border-bottom:1px solid #e2e8f0;height:34px;padding:6px 8px;font-size:10.5px;font-weight:700;position:sticky;top:0;background:#f1f5f9!important}.edit-ro-modal .create-ro-items-table thead th em{color:#dc2626;text-transform:none;font-style:normal}.edit-ro-modal .create-ro-items-table tbody td{color:var(--text-secondary);vertical-align:middle;background:#fff;border-bottom:1px solid #f1f5f9;padding:7px 8px;font-size:12.5px}.edit-ro-modal .create-ro-items-table .stock-medicine-cell strong{color:var(--text);font-size:12.5px;font-weight:700;line-height:1.25;display:block}.edit-ro-modal .create-ro-items-table .stock-medicine-cell span{color:var(--text-muted);margin-top:1px;font-size:11px;font-weight:500;line-height:1.2;display:block}.edit-ro-modal .create-ro-items-table input,.edit-ro-modal .create-ro-items-table .number-input{text-align:left;background:#fff;border:1px solid #e2e8f0;border-radius:7px;width:68px;padding:0 6px;font-size:12.5px;height:30px!important;min-height:30px!important}.edit-ro-modal .create-ro-items-table input:disabled{cursor:default;color:#64748b!important;background:#f1f5f9!important}.edit-ro-amount-cell{white-space:nowrap}.edit-ro-amount{color:var(--brand-dark)!important;font-size:12.5px!important;font-weight:700!important}.edit-ro-modal .create-ro-items-table .icon-btn.danger{width:28px;height:28px;color:var(--danger)}.edit-ro-batch-picker{background:#f8fafc;border:1px dashed #cbd5e1;border-radius:8px;margin:0 12px 8px;padding:8px}.edit-ro-batch-toolbar{align-items:center;gap:8px;margin-bottom:8px;display:flex}.edit-ro-batch-toolbar .create-ro-search-input{flex:1}.edit-ro-batch-list{gap:6px;max-height:140px;margin:0;padding:0;list-style:none;display:grid;overflow:auto}.edit-ro-batch-list li{border:1px solid var(--border);background:#fff;border-radius:8px;justify-content:space-between;align-items:center;gap:10px;padding:7px 9px;display:flex}.edit-ro-batch-list span{color:#64748b;margin-top:1px;font-size:11.5px;display:block}.edit-ro-inline-loading,.edit-ro-empty{color:#64748b;text-align:center;justify-content:center;align-items:center;gap:8px;min-height:40px;margin:0;font-size:12.5px;display:flex}.edit-ro-totals-bar{flex-wrap:wrap;align-items:center;gap:8px;display:flex;margin:8px 12px 4px!important}.edit-ro-total-chip.create-ro-total-chip{background:#fff;border:1px solid #e2e8f0;border-radius:8px;flex-direction:row;align-items:center;gap:8px;min-width:0;padding:6px 10px}.edit-ro-total-chip>svg{color:var(--brand-dark);flex-shrink:0}.edit-ro-total-chip>div{flex-direction:column;gap:0;line-height:1.2;display:flex}.edit-ro-total-chip span{color:var(--text-muted);font-size:10.5px;font-weight:500}.edit-ro-total-chip strong{color:var(--text);font-size:13px;font-weight:700}.edit-ro-total-amount-inline{color:#047857;background:#ecfdf5;border:1px solid #a7f3d0;border-radius:8px;align-items:baseline;gap:8px;margin-left:auto;padding:6px 12px;display:inline-flex}.edit-ro-total-amount-inline span{font-size:11.5px;font-weight:600}.edit-ro-total-amount-inline strong{font-size:15px;font-weight:800}.edit-ro-settlement-section{margin-top:4px;padding-bottom:14px;overflow:visible}.edit-ro-settlement-section.create-ro-card{overflow:visible}.edit-ro-settlement-header{border-bottom:none;flex-direction:row;justify-content:space-between;align-items:center;gap:16px;padding:12px 14px 14px;display:flex}.edit-ro-settlement-title{flex:auto;align-items:flex-start;gap:10px;min-width:0;display:flex}.edit-ro-settlement-title>svg{color:var(--brand-dark);flex-shrink:0;margin-top:2px}.edit-ro-settlement-title h3{color:var(--brand-dark);margin:0;font-size:14px;font-weight:700;line-height:1.3}.edit-ro-settlement-title p{color:#64748b;margin:2px 0 0;font-size:12px;line-height:1.35}.edit-ro-modal .create-ro-section .edit-ro-settlement-method-field.form-field{white-space:nowrap;flex-direction:row;flex:none;align-items:center;gap:10px;width:auto;min-width:0;max-width:none;margin:0 0 0 auto;display:flex}.edit-ro-modal .create-ro-section .edit-ro-settlement-method-field.form-field>span{color:#475569;flex-shrink:0;margin:0;font-size:12px;font-weight:600}.edit-ro-modal .create-ro-section .edit-ro-settlement-method-field.form-field>span em{color:#dc2626;font-style:normal}.edit-ro-modal .create-ro-section .edit-ro-settlement-method-field.form-field>select{width:220px;min-width:200px;height:38px;min-height:38px;color:var(--text);background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:0 10px;font-size:12.5px;font-weight:700}.edit-ro-settlement-picker{z-index:20;flex-shrink:0;width:220px;min-width:200px;position:relative}.edit-ro-settlement-section:has(.edit-ro-settlement-trigger.is-open){z-index:40;position:relative}.edit-ro-settlement-trigger{width:100%;min-height:38px;color:var(--text);cursor:pointer;background:#fff;border:1px solid #e2e8f0;border-radius:8px;justify-content:space-between;align-items:center;gap:8px;padding:0 12px;font-size:12.5px;font-weight:700;display:inline-flex}.edit-ro-settlement-trigger-icon{border-radius:999px;flex-shrink:0;justify-content:center;align-items:center;width:22px;height:22px;display:inline-flex}.edit-ro-settlement-trigger-icon.is-refund{color:#059669;background:#ecfdf5}.edit-ro-settlement-trigger-icon.is-credit{color:#7c3aed;background:#f5f3ff}.edit-ro-settlement-trigger-icon.is-exchange{color:#2563eb;background:#eff6ff}.edit-ro-settlement-trigger-icon.is-mixed{color:#ea580c;background:#fff7ed}.edit-ro-settlement-trigger>span:nth-last-child(2){text-overflow:ellipsis;white-space:nowrap;text-align:center;flex:auto;min-width:0;overflow:hidden}.edit-ro-settlement-trigger>span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.edit-ro-settlement-trigger.is-open,.edit-ro-settlement-trigger:hover:not(:disabled){border-color:var(--text-muted)}.edit-ro-settlement-trigger:disabled{opacity:.65;cursor:not-allowed}.edit-ro-settlement-menu{z-index:50;background:#fff;border:1px solid #e2e8f0;border-radius:12px;gap:4px;width:min(360px,78vw);max-height:min(320px,45vh);padding:8px;display:grid;position:absolute;inset:calc(100% + 6px) 0 auto auto;overflow-y:auto;box-shadow:0 12px 28px #0f172a1f}.edit-ro-settlement-menu.is-above{top:auto;bottom:calc(100% + 6px)}.edit-ro-settlement-option{text-align:center;cursor:pointer;background:0 0;border:0;border-radius:10px;align-items:flex-start;gap:10px;width:100%;padding:10px;display:flex}.edit-ro-settlement-option:hover,.edit-ro-settlement-option.is-selected{background:#f8fafc}.edit-ro-settlement-option-icon{border-radius:999px;flex-shrink:0;justify-content:center;align-items:center;width:32px;height:32px;display:inline-flex}.edit-ro-settlement-option-icon.is-placeholder{color:#64748b;background:#f1f5f9}.edit-ro-settlement-option-icon.is-refund{color:#059669;background:#ecfdf5}.edit-ro-settlement-option-icon.is-credit{color:#7c3aed;background:#f5f3ff}.edit-ro-settlement-option-icon.is-exchange{color:#2563eb;background:#eff6ff}.edit-ro-settlement-option-icon.is-mixed{color:#ea580c;background:#fff7ed}.edit-ro-settlement-option-copy{flex-direction:column;gap:2px;min-width:0;display:flex}.edit-ro-settlement-option-copy strong{color:var(--text);font-size:13px;font-weight:700}.edit-ro-settlement-option-copy small{color:#64748b;font-size:12px;line-height:1.35}.edit-ro-exchange-table-wrap{overflow-x:auto;margin:10px 12px 0!important}.edit-ro-refund-panel{flex-direction:column;gap:12px;padding:0 14px 14px;display:flex}.edit-ro-refund-banner{color:#047857;background:#ecfdf5;border:1px solid #a7f3d0;border-radius:8px;align-items:center;gap:8px;padding:10px 12px;font-size:12.5px;font-weight:600;line-height:1.4;display:flex}.edit-ro-refund-banner>svg{color:#059669;flex-shrink:0}.edit-ro-credit-banner{color:#6d28d9;background:#f5f3ff;border:1px solid #ddd6fe;border-radius:8px;align-items:center;gap:8px;padding:10px 12px;font-size:12.5px;font-weight:600;line-height:1.4;display:flex}.edit-ro-credit-banner>svg{color:#7c3aed;flex-shrink:0}.edit-ro-credit-notes-field textarea{min-height:84px}.edit-ro-mixed-panel{flex-direction:column;gap:14px;padding:0 14px 14px;display:flex}.edit-ro-mixed-banner{color:#6d28d9;background:#f5f3ff;border:1px solid #ddd6fe;border-radius:8px;align-items:flex-start;gap:8px;padding:10px 12px;font-size:12.5px;font-weight:600;line-height:1.4;display:flex}.edit-ro-mixed-banner>svg{color:#7c3aed;flex-shrink:0;margin-top:1px}.edit-ro-mixed-allocation{flex-wrap:wrap;align-items:flex-start;gap:10px;display:flex}.edit-ro-mixed-allocation>.form-field{flex:160px;gap:4px;min-width:150px;max-width:220px;margin:0}.edit-ro-mixed-allocation>.form-field>span{color:#475569;font-size:12px;font-weight:600}.edit-ro-mixed-allocation>.form-field input{height:36px;min-height:36px;font-weight:700}.edit-ro-mixed-op{color:#64748b;justify-content:center;align-items:center;min-width:18px;margin-top:28px;font-size:18px;font-weight:700;display:inline-flex}.edit-ro-mixed-total{background:#ecfdf5;border:1px solid #bbf7d0;border-radius:8px;flex-direction:column;flex:200px;align-self:flex-start;gap:4px;min-width:180px;max-width:240px;margin-top:0;padding:10px 12px;display:flex}.edit-ro-mixed-total.is-mismatch{background:var(--danger-bg);border-color:#fecaca}.edit-ro-mixed-total-label{color:#475569;font-size:11.5px;font-weight:600}.edit-ro-mixed-total-value{color:#047857;letter-spacing:.01em;font-size:15px;font-weight:700}.edit-ro-mixed-total.is-mismatch .edit-ro-mixed-total-value{color:#b91c1c}.edit-ro-mixed-total-status{align-items:center;gap:5px;font-size:11.5px;font-weight:600;line-height:1.3;display:inline-flex}.edit-ro-mixed-total-status.is-ok{color:#059669}.edit-ro-mixed-total-status.is-bad{color:#dc2626}.edit-ro-mixed-cards{grid-template-columns:1fr 1fr;align-items:start;gap:12px;display:grid}.edit-ro-mixed-card.is-exchange{grid-column:1/-1}.edit-ro-mixed-card{border:1px solid var(--border);background:#fff;border-radius:10px;flex-direction:column;min-height:100%;display:flex;overflow:hidden}.edit-ro-mixed-card.is-refund{border-color:#a7f3d0;box-shadow:inset 0 3px #10b981}.edit-ro-mixed-card.is-credit{border-color:#ddd6fe;box-shadow:inset 0 3px #8b5cf6}.edit-ro-mixed-card.is-exchange{border-color:#bfdbfe;box-shadow:inset 0 3px #3b82f6}.edit-ro-mixed-card-header{border-bottom:1px solid #eef2f7;justify-content:space-between;align-items:center;gap:10px;padding:10px 12px;display:flex}.edit-ro-mixed-card.is-refund .edit-ro-mixed-card-header{color:#047857;background:#ecfdf5}.edit-ro-mixed-card.is-credit .edit-ro-mixed-card-header{color:#6d28d9;background:#f5f3ff}.edit-ro-mixed-card.is-exchange .edit-ro-mixed-card-header{color:#1d4ed8;background:#eff6ff}.edit-ro-mixed-card-header h4,.edit-ro-mixed-card-title h4{margin:0;font-size:13px;font-weight:700;line-height:1.3}.edit-ro-mixed-card-header>svg,.edit-ro-mixed-card-title>svg{flex-shrink:0}.edit-ro-mixed-card-title{align-items:center;gap:8px;min-width:0;display:inline-flex}.edit-ro-mixed-card.is-refund .edit-ro-mixed-card-header,.edit-ro-mixed-card.is-credit .edit-ro-mixed-card-header{justify-content:flex-start}.edit-ro-mixed-add-btn{white-space:nowrap;height:30px;padding:0 10px;font-size:12px}.edit-ro-mixed-card-body{flex-direction:column;gap:12px;padding:12px;display:flex}.edit-ro-mixed-card-body .form-field{gap:4px;margin:0}.edit-ro-mixed-card-body .form-field>span{color:#475569;font-size:12px;font-weight:600}.edit-ro-mixed-card-body .form-field>input,.edit-ro-mixed-card-body .form-field>select,.edit-ro-mixed-card-body .form-field .app-date-input-field,.edit-ro-mixed-card-body .form-field .app-date-input-control{height:36px;min-height:36px}.edit-ro-mixed-card-footer{color:#64748b;margin:0;padding:0 12px 12px;font-size:12px;font-weight:500}.edit-ro-mixed-exchange-table-wrap{border-left:0;border-right:0;border-radius:0;overflow-x:auto;margin:0!important}.edit-ro-mixed-exchange-footer{background:#f8fafc;border-top:1px solid #eef2f7;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:24px;padding:10px 12px 12px;display:flex}.edit-ro-mixed-exchange-footer>div{color:#475569;align-items:center;gap:8px;font-size:12.5px;font-weight:600;display:inline-flex}.edit-ro-mixed-exchange-footer strong{color:var(--text);font-size:13.5px}.edit-ro-mixed-footer-banner{color:#1d4ed8;background:#eff6ff;border:1px solid #bfdbfe;border-radius:8px;align-items:flex-start;gap:8px;padding:10px 12px;font-size:12.5px;font-weight:600;line-height:1.4;display:flex}.edit-ro-mixed-footer-banner>svg{color:#2563eb;flex-shrink:0;margin-top:1px}@media (width<=760px){.edit-ro-mixed-cards{grid-template-columns:1fr}.edit-ro-mixed-op{display:none}.edit-ro-mixed-allocation>.form-field,.edit-ro-mixed-total{flex:100%;max-width:none}}.edit-ro-refund-grid{grid-template-columns:minmax(180px,220px) minmax(180px,1fr) minmax(200px,1fr);align-items:start;gap:14px 16px;display:grid}.edit-ro-refund-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.edit-ro-modal .edit-ro-refund-grid .form-field{gap:4px;margin:0}.edit-ro-modal .edit-ro-refund-grid .form-field>span{color:#475569;font-size:12px;font-weight:600}.edit-ro-modal .edit-ro-refund-grid .form-field>input,.edit-ro-modal .edit-ro-refund-grid .form-field>select,.edit-ro-modal .edit-ro-refund-grid .form-field .app-date-input-field,.edit-ro-modal .edit-ro-refund-grid .form-field .app-date-input-control{height:36px;min-height:36px;font-weight:700}.edit-ro-refund-notes-field{gap:4px;margin:0}.edit-ro-refund-notes-field>span{color:#475569;font-size:12px;font-weight:600}.edit-ro-refund-notes-field textarea{resize:vertical;width:100%;min-height:84px;color:var(--text);background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:10px 12px;font-size:13px;font-weight:500;line-height:1.45}.edit-ro-refund-notes-field textarea::placeholder{color:var(--text-muted);font-weight:500}.edit-ro-refund-notes-counter{color:var(--text-muted);justify-content:flex-end;margin-top:2px;font-size:11.5px;font-weight:500;display:flex}@media (width<=1100px){.edit-ro-refund-grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=720px){.edit-ro-refund-grid,.edit-ro-refund-grid-4{grid-template-columns:1fr}}.edit-ro-settlement-type-toggle.grn-segmented{width:100%;max-width:220px}.edit-ro-field-hint{color:var(--text-muted);margin-top:2px;font-size:11px;font-weight:500;line-height:1.35;display:block}@media (width<=900px){.edit-ro-refund-grid{grid-template-columns:1fr}.edit-ro-settlement-type-toggle.grn-segmented{max-width:none}}.edit-ro-modal .edit-ro-exchange-table th em{color:#dc2626;font-style:normal;font-weight:700}.edit-ro-modal .edit-ro-exchange-table td input[type=text],.edit-ro-modal .edit-ro-exchange-table td select{width:100%;min-width:96px;height:30px;color:var(--text);background:#fff;border:1px solid #e2e8f0;border-radius:7px;padding:0 6px;font-size:12.5px;font-weight:600}.edit-ro-modal .edit-ro-exchange-table td .app-date-input,.edit-ro-modal .edit-ro-exchange-table td .app-date-input-control{min-width:118px}.edit-ro-modal .edit-ro-exchange-table td .number-input,.edit-ro-modal .edit-ro-exchange-table td input.number-input{width:72px}.edit-ro-exchange-footer{justify-content:flex-end;padding:10px 12px 12px;display:flex}@media (width<=900px){.edit-ro-settlement-header{flex-direction:column;align-items:stretch}.edit-ro-modal .create-ro-section .edit-ro-settlement-method-field.form-field{justify-content:space-between;width:100%;max-width:none;margin-left:0}.edit-ro-settlement-picker{flex:1;width:auto;min-width:0}.edit-ro-settlement-menu{width:auto;left:0;right:0}}.edit-ro-audit-row{grid-template-columns:repeat(2,minmax(160px,220px));gap:10px 14px;margin:8px 12px 10px;display:grid}.edit-ro-audit-row .form-field{gap:3px;margin:0}.edit-ro-audit-row .form-field>span{color:#475569;font-size:11.5px;font-weight:600}.edit-ro-audit-row .form-field>input{border:1px solid #e2e8f0;border-radius:8px;height:32px;min-height:32px;padding:0 10px;font-size:12.5px;color:#475569!important;background:#f1f5f9!important}.edit-ro-status-field{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;align-items:center;height:32px;min-height:32px;padding:0 10px;display:flex}.edit-ro-bottom-row.create-ro-bottom-row{grid-template-columns:1fr 1fr;align-items:stretch;gap:10px;margin-top:0;display:grid}.edit-ro-amount-section{flex-direction:column;min-height:0;display:flex}.edit-ro-summary-list{flex:1;gap:5px;padding:0 12px 2px;display:grid}.edit-ro-summary-list>div{color:#64748b;justify-content:space-between;align-items:center;gap:12px;font-size:12.5px;line-height:1.35;display:flex}.edit-ro-summary-list>div strong{color:var(--text);font-variant-numeric:tabular-nums;font-weight:700}.edit-ro-summary-total{color:#047857;background:#ecfdf5;border:1px solid #bbf7d0;border-radius:10px;justify-content:space-between;align-items:center;gap:12px;margin:8px 12px 12px;padding:10px 14px;font-weight:700;display:flex}.edit-ro-summary-total span{font-size:12.5px}.edit-ro-summary-total strong{letter-spacing:-.01em;font-size:18px;font-weight:800}.edit-ro-modal .create-ro-additional-section .create-ro-notes-field{flex-direction:column;gap:4px;margin:0;display:flex}.edit-ro-additional-fields{flex-direction:column;gap:10px;margin:0 12px 12px;display:flex}.edit-ro-additional-fields>.form-field>span{color:#475569;font-size:12px;font-weight:600}.edit-ro-additional-fields>.form-field>input{height:32px;min-height:32px;color:var(--text);background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:0 10px;font-size:12.5px}.edit-ro-modal .create-ro-additional-section .create-ro-notes-field>span{color:#475569;font-size:12px;font-weight:600}.edit-ro-modal .create-ro-additional-section textarea{resize:vertical;height:88px;min-height:88px;color:var(--text);background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:10px 12px;font-size:13px;line-height:1.45}.edit-ro-modal .create-ro-additional-section textarea::placeholder{color:var(--text-muted)}.edit-ro-char-row{color:var(--text-muted);justify-content:space-between;gap:8px;margin-top:4px;font-size:11.5px;display:flex}.edit-ro-modal .create-ro-footer{background:#fff;border-top:1px solid #e8eef3;gap:8px;padding:10px 16px!important}.edit-ro-modal .create-ro-footer .btn{border-radius:9px;gap:7px;height:36px;padding:0 14px;font-size:13px;font-weight:600}.edit-ro-btn-cancel{min-width:88px;color:var(--text-secondary)!important;box-shadow:none!important;background:#fff!important;border:1px solid #cbd5e1!important}.edit-ro-btn-cancel:hover:not(:disabled){border-color:var(--text-muted)!important;background:#f8fafc!important}.edit-ro-modal .create-ro-footer .btn-outline-brand{background:#fff;border-width:1.5px;min-width:118px}.edit-ro-modal .create-ro-footer .btn-primary{min-width:168px;font-weight:700}@media (width<=1100px){.edit-ro-modal .create-ro-grid-6,.edit-ro-modal .create-ro-grid-5{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width<=900px){.edit-ro-bottom-row.create-ro-bottom-row{grid-template-columns:1fr}.edit-ro-total-amount-inline{justify-content:space-between;width:100%;margin-left:0}.edit-ro-modal .create-ro-grid-6,.edit-ro-modal .create-ro-grid-5{grid-template-columns:repeat(2,minmax(0,1fr))}}.order-receipt-modal.modal-dialog{flex-direction:column;width:min(1100px,96vw);max-height:94vh;padding:0;display:flex;overflow:hidden}.order-receipt-chrome-header{border-bottom:1px solid var(--border);background:#fff;justify-content:space-between;align-items:flex-start;gap:12px;padding:14px 16px;display:flex}.order-receipt-chrome-title{align-items:flex-start;gap:10px;min-width:0;display:flex}.order-receipt-chrome-icon{background:var(--brand-muted);border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;width:36px;height:36px;display:inline-flex}.order-receipt-chrome-icon img{object-fit:contain;width:22px;height:22px}.order-receipt-chrome-title h2{color:var(--brand-dark);margin:0;font-size:17px;font-weight:700}.order-receipt-chrome-title p{color:var(--text-muted);margin:2px 0 0;font-size:12.5px}.order-receipt-chrome-actions{flex-shrink:0;align-items:center;gap:8px;display:inline-flex}.order-receipt-body{background:#f3f4f6;flex:1;min-height:0;padding:14px 16px;overflow:auto}.order-receipt-loading{min-height:280px;color:var(--text-muted);justify-content:center;align-items:center;gap:10px;font-size:13.5px;display:flex}.order-receipt-sheet{border:1px solid var(--border);background:#fff;border-radius:12px;padding:18px 20px 16px;box-shadow:0 1px 2px #0f172a0a}.order-receipt-top{grid-template-columns:minmax(0,1.1fr) minmax(180px,.9fr) minmax(220px,1fr);align-items:start;gap:14px;margin-bottom:14px;display:grid}.order-receipt-brand{align-items:flex-start;gap:10px;display:flex}.order-receipt-logo{background:var(--brand-soft);width:40px;height:40px;color:var(--brand-dark);border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}.order-receipt-brand strong{color:var(--brand-dark);font-size:15px;display:block}.order-receipt-brand p{color:var(--text-secondary);margin:2px 0 0;font-size:12px;line-height:1.4}.order-receipt-center-title{text-align:center;padding-top:4px}.order-receipt-center-title h3{letter-spacing:.04em;color:var(--brand-dark);margin:0;font-size:22px;font-weight:800}.order-receipt-not-grn{background:var(--brand-dark);color:#fff;letter-spacing:.02em;border-radius:999px;margin-top:8px;padding:4px 10px;font-size:11px;font-weight:700;display:inline-block}.order-receipt-meta{background:var(--brand-muted);border:1px solid #d1fae5;border-radius:10px;gap:6px;padding:10px 12px;display:grid}.order-receipt-meta>div{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:8px;font-size:12px;display:grid}.order-receipt-meta span{color:var(--text-muted)}.order-receipt-meta strong{color:var(--text);text-align:right;font-weight:650}.order-receipt-parties{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:14px;display:grid}.order-receipt-party{border:1px solid var(--border);background:#fff;border-radius:10px;padding:12px}.order-receipt-party h4{color:var(--brand-dark);text-transform:uppercase;letter-spacing:.03em;align-items:center;gap:6px;margin:0 0 8px;font-size:12px;font-weight:700;display:inline-flex}.order-receipt-party strong{color:var(--text);margin-bottom:4px;font-size:13.5px;display:block}.order-receipt-party p{color:var(--text-secondary);margin:2px 0 0;font-size:12px;line-height:1.4}.order-receipt-table-wrap{border:1px solid var(--border);border-radius:10px;overflow:auto}.order-receipt-table{border-collapse:collapse;width:100%;font-size:12.5px}.order-receipt-table th,.order-receipt-table td{text-align:center;vertical-align:middle;border-bottom:1px solid #f1f5f9;padding:9px 10px}.order-receipt-table th{background:var(--brand-dark);color:#fff;letter-spacing:.02em;white-space:nowrap;font-size:11px;font-weight:700}.order-receipt-table th.col-num,.order-receipt-table td.col-num{text-align:center;font-variant-numeric:tabular-nums}.order-receipt-empty{color:var(--text-muted);text-align:center!important;padding:24px 12px!important}.order-receipt-totals{grid-template-columns:repeat(8,minmax(0,1fr));gap:8px;margin-top:12px;display:grid}.order-receipt-total-chip{border:1px solid var(--border);background:#fff;border-radius:10px;flex-direction:column;gap:4px;min-width:0;padding:8px 10px;display:flex}.order-receipt-total-chip span{color:var(--text-muted);text-transform:uppercase;letter-spacing:.02em;font-size:10.5px;font-weight:600}.order-receipt-total-chip strong{color:var(--text);font-variant-numeric:tabular-nums;font-size:13.5px}.order-receipt-total-chip.is-grand{background:var(--brand-dark);border-color:var(--brand-dark)}.order-receipt-total-chip.is-grand span,.order-receipt-total-chip.is-grand strong{color:#fff}.order-receipt-total-chip.is-grand strong{font-size:16px}.order-receipt-bottom{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px;display:grid}.order-receipt-info-card{border:1px solid var(--border);background:#fff;border-radius:10px;padding:12px}.order-receipt-info-card h4{color:var(--brand-dark);text-transform:uppercase;letter-spacing:.03em;align-items:center;gap:6px;margin:0 0 8px;font-size:12px;font-weight:700;display:inline-flex}.order-receipt-info-card p{color:#374151;margin:4px 0 0;font-size:12.5px;line-height:1.4}.order-receipt-info-card p span{color:var(--text-muted);font-weight:600}.order-receipt-signature-line{border-bottom:1px solid #cbd5e1;margin-top:28px}.order-receipt-sign-label{color:var(--text-muted)!important;margin-top:4px!important;font-size:11px!important}.order-receipt-disclaimer{color:#065f46;background:#ecfdf5;border:1px solid #a7f3d0;border-radius:10px;margin-top:12px;padding:10px 12px;font-size:12px;line-height:1.45}.order-receipt-footer{border-top:1px solid var(--border);background:#fff;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;padding:10px 16px;display:grid}.order-receipt-pager{color:var(--text-secondary);grid-column:2;align-items:center;gap:8px;font-size:12.5px;display:inline-flex}.order-receipt-footer>.btn{grid-column:3;justify-self:end}@media (width<=900px){.order-receipt-top,.order-receipt-parties,.order-receipt-bottom,.order-receipt-totals{grid-template-columns:1fr}.order-receipt-chrome-header{flex-direction:column}.order-receipt-chrome-actions{flex-wrap:wrap;width:100%}.grn-receipt-summary-row,.grn-receipt-extra-row,.grn-receipt-bottom{grid-template-columns:1fr}.grn-receipt-totals{grid-template-columns:repeat(2,minmax(0,1fr))}}.grn-receipt-modal.modal-dialog{width:min(1280px,98vw)}.grn-receipt-condition-note{color:var(--text-muted);margin:6px 0 0;font-size:11px}.grn-receipt-table-wrap{overflow-x:auto}.grn-receipt-table{min-width:1100px;font-size:11.5px}.grn-receipt-table th,.grn-receipt-table td{white-space:nowrap;padding:7px 8px}.grn-receipt-summary-row{grid-template-columns:minmax(180px,.7fr) minmax(0,1.8fr);align-items:stretch;gap:12px;margin-top:12px;display:grid}.grn-receipt-count-card{border:1px solid var(--border);background:#fff;border-radius:10px;align-content:start;gap:8px;padding:12px;display:grid}.grn-receipt-count-card h4{color:var(--brand-dark);text-transform:uppercase;letter-spacing:.03em;margin:0;font-size:12px;font-weight:700}.grn-receipt-count-card p{color:#374151;justify-content:space-between;gap:8px;margin:0;font-size:12.5px;display:flex}.grn-receipt-count-card p span{color:var(--text-muted);font-weight:600}.grn-receipt-totals{grid-template-columns:repeat(4,minmax(0,1fr));margin-top:0}.grn-receipt-extra-row{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-top:10px;display:grid}.grn-receipt-bottom{grid-template-columns:repeat(3,minmax(0,1fr))}.sm-page{--sm-green:#0f8f7f;--sm-green-dark:#0c7a6c;--sm-green-soft:#e7f6f3;--sm-green-tint:#f3fbf9;--sm-green-border:#b7e4dc;--sm-radius:14px;--sm-shadow:0 1px 2px #0f172a0a, 0 8px 24px #0f172a0d;flex-direction:column;flex:auto;gap:14px;min-height:0;display:flex;overflow:hidden}.sm-split{flex:1;grid-template-columns:1fr;align-items:stretch;gap:14px;min-height:0;display:grid}.sm-split.is-detail-open{grid-template-columns:minmax(280px,34%) minmax(0,1fr)}.sm-panel{border:1px solid var(--border);border-radius:var(--sm-radius);box-shadow:var(--sm-shadow);background:#fff;flex-direction:column;min-width:0;min-height:0;display:flex;overflow:hidden}.sm-overview-header{justify-content:space-between;align-items:center;gap:12px;padding:16px 18px 0;display:flex}.sm-overview-header h2{color:var(--text);margin:0;font-size:16px;font-weight:700}.sm-overview-header p{color:#64748b;margin:0;font-size:13px}.sm-overview-header p strong{color:var(--sm-green);font-weight:700}.sm-overview-toolbar{align-items:center;gap:10px;padding:14px 18px 12px;display:flex}.sm-search{border:1px solid var(--border);min-width:0;height:40px;color:var(--text-muted);background:#fff;border-radius:10px;flex:auto;align-items:center;gap:8px;padding:0 12px;display:flex}.sm-search input{width:100%;color:var(--text);background:0 0;border:0;outline:none;font-size:13.5px}.sm-search:focus-within{border-color:var(--sm-green);color:var(--sm-green);box-shadow:0 0 0 3px #0f8f7f1f}.sm-toolbar-actions{flex-shrink:0;align-items:center;gap:8px;display:flex;position:relative}.sm-toolbar-btn{height:40px;color:var(--text-secondary);border-radius:10px}.sm-toolbar-btn.is-active{border-color:var(--sm-green-border);background:var(--sm-green-tint);color:var(--sm-green-dark)}.sm-filter-count{background:var(--sm-green);color:#fff;border-radius:999px;place-items:center;min-width:18px;height:18px;padding:0 5px;font-size:11px;font-weight:700;display:inline-grid}.sm-filter-panel{z-index:8;border:1px solid var(--border);background:#fff;border-radius:12px;gap:10px;width:240px;padding:12px;display:grid;position:absolute;top:calc(100% + 8px);right:0;box-shadow:0 12px 32px #0f172a1f}.sm-filter-panel label{gap:6px;display:grid}.sm-filter-panel span{color:#64748b;font-size:12px;font-weight:650}.sm-filter-panel select{border:1px solid var(--border);height:38px;color:var(--text);background:#fff;border-radius:10px;padding:0 10px}.sm-filter-clear{justify-content:center}.sm-table-wrap{flex:1;min-height:0;overflow:auto}.sm-table{border-collapse:collapse;width:100%;font-size:13px}.sm-table th,.sm-table td{text-align:center;vertical-align:middle;white-space:nowrap;border-bottom:1px solid #eef2f6;padding:11px 14px}.sm-table th{z-index:1;color:#64748b;letter-spacing:.01em;background:#f8fafc;font-size:12px;font-weight:700;position:sticky;top:0}.sm-table th.sm-col-medicine{color:var(--sm-green)}.sm-table td{color:var(--text-secondary)}.sm-table .num{text-align:center;font-variant-numeric:tabular-nums}.sm-table tbody tr{cursor:pointer;transition:background-color .15s}.sm-table tbody tr:nth-child(2n){background:#fcfdfd}.sm-table tbody tr:hover{background:#f3fbf9}.sm-table tbody tr.is-selected{background:var(--sm-green-soft)}.sm-table tbody tr.is-selected td{color:var(--text)}.sm-medicine-cell{align-items:center;gap:10px;min-width:180px;display:flex}.sm-medicine-icon{background:var(--sm-green-soft);width:34px;height:34px;color:var(--sm-green);border-radius:999px;flex-shrink:0;place-items:center;display:grid}.sm-medicine-text{flex-direction:column;gap:2px;min-width:0;display:flex}.sm-medicine-text strong{color:var(--sm-green);font-size:13.5px;font-weight:650}.sm-revision-count-btn{appearance:none;cursor:pointer;color:inherit;font:inherit;background:0 0;border:0;margin:0;padding:0}.sm-revision-count-btn:hover strong,.sm-revision-count-btn:focus-visible strong{color:var(--brand-dark,#0f766e);text-decoration:underline}.sm-revision-count-btn:focus-visible{outline-offset:2px;border-radius:4px;outline:2px solid #0d948859}.sm-medicine-text span{color:var(--text-muted);font-size:12px}.sm-status-pill{border-radius:999px;align-items:center;height:26px;padding:0 10px;font-size:12px;font-weight:650;display:inline-flex}.sm-status-pill.in_stock{color:#047857;background:#ecfdf5}.sm-status-pill.low_stock{color:#c2410c;background:#fff7ed}.sm-row-arrow-col{width:28px;color:var(--sm-green);padding-left:0!important;padding-right:12px!important}.sm-empty-inline,.sm-empty-state{text-align:center;color:#64748b;flex-direction:column;justify-content:center;align-items:center;gap:8px;padding:48px 20px;display:flex}.sm-empty-state{flex:1}.sm-empty-icon{width:64px;height:64px;color:var(--text-muted);background:#f1f5f9;border-radius:18px;place-items:center;margin-bottom:4px;display:grid}.sm-empty-inline strong,.sm-empty-state strong{color:var(--text);font-size:15px}.sm-empty-inline p,.sm-empty-state p{margin:0;font-size:13px}.sm-pagination{border-top:1px solid #eef2f6;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px 14px;display:flex}.sm-pagination-info,.sm-pagination-center{color:#64748b;font-size:12.5px}.sm-pagination-center{align-items:center;gap:8px;display:inline-flex}.sm-pagination-center select{border:1px solid var(--border);background:#fff;border-radius:8px;height:32px;padding:0 8px}.sm-page-numbers{align-items:center;gap:4px;display:inline-flex}.sm-page-numbers button{color:#475569;background:0 0;border:1px solid #0000;border-radius:8px;min-width:32px;height:32px;padding:0 8px;font-size:13px;font-weight:650}.sm-page-numbers button:hover:not(:disabled){border-color:var(--border);background:#f8fafc}.sm-page-numbers button.active{background:var(--sm-green);border-color:var(--sm-green);color:#fff}.sm-page-numbers button:disabled{opacity:.4;cursor:not-allowed}.sm-detail{gap:16px;padding:18px;animation:.22s sm-detail-in;overflow:auto}@keyframes sm-detail-in{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}.sm-detail-header{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.sm-detail-title h2{color:var(--text);margin:0;font-size:20px;font-weight:700}.sm-detail-title span{color:var(--text-muted);margin-top:4px;font-size:13px;display:inline-block}.sm-detail-actions{flex-shrink:0;align-items:center;gap:8px;display:flex}.sm-adjust-btn{height:40px;color:var(--text-secondary);border-radius:10px}.sm-close-btn{border:1px solid var(--border);color:#64748b;background:#fff;border-radius:10px;flex-shrink:0;place-items:center;width:40px;height:40px;display:inline-grid}.sm-close-btn:hover{color:var(--text);border-color:var(--border-strong);background:#f8fafc}.sm-info-grid{background:#fbfdfe;border:1px solid #eef2f6;border-radius:12px;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px 14px;padding:14px 16px;display:grid}.sm-info-grid span,.sm-summary-grid span{color:var(--text-muted);text-transform:uppercase;letter-spacing:.04em;margin-bottom:4px;font-size:11.5px;font-weight:650;display:block}.sm-info-grid strong,.sm-summary-grid strong{color:var(--text);font-size:13.5px;font-weight:700;display:block}.sm-stat-cards{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;display:grid}.sm-stat-card{background:#fff;border:1px solid #eef2f6;border-radius:12px;padding:12px 14px;box-shadow:0 1px 2px #0f172a08}.sm-stat-card span{color:#64748b;margin-bottom:8px;font-size:11.5px;display:block}.sm-stat-card strong{color:var(--text);font-variant-numeric:tabular-nums;font-size:18px;font-weight:800;display:block}.sm-stat-card strong.is-green{color:var(--sm-green)}.sm-stat-card strong.is-danger{color:#dc2626}.sm-section h3{color:var(--text);margin:0 0 10px;font-size:14px;font-weight:700}.sm-batch-table-wrap{border:1px solid #eef2f6;border-radius:12px;max-height:280px;overflow:auto}.sm-batch-table thead th{background:#f8fafc}.sm-batch-table tbody tr{cursor:default}.sm-batch-table tbody tr:hover{background:#f8fafc}.sm-batch-table tbody tr.is-revising,.sm-batch-table tbody tr.is-revising:hover{background:var(--sm-green-soft);box-shadow:inset 3px 0 0 var(--sm-green)}.sm-batch-table tbody tr.is-revising td{color:var(--sm-green-dark);border-bottom-color:var(--sm-green-border);font-weight:650}.sm-view-batch.is-active{background:var(--sm-green-dark);border-color:var(--sm-green-dark)}.sm-view-batch{border:1px solid var(--sm-green-border);background:var(--sm-green);color:#fff;border-radius:999px;place-items:center;width:32px;height:32px;display:inline-grid}.sm-view-batch:hover{background:var(--sm-green-dark);border-color:var(--sm-green-dark);color:#fff}.sm-summary-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;display:grid}.sm-summary-grid article{background:#fbfdfe;border:1px solid #eef2f6;border-radius:12px;padding:12px 14px}.sm-summary-grid small{color:#64748b;margin-top:4px;font-size:12px;display:block}.sm-quick-actions{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:auto;display:grid}.sm-quick-btn{border:1px solid var(--border);min-height:44px;color:var(--text-secondary);background:#fff;border-radius:12px;justify-content:center;align-items:center;gap:8px;padding:10px 12px;font-size:13px;font-weight:650;display:inline-flex}.sm-quick-btn:hover{background:#f8fafc}.sm-quick-btn.tone-green{color:var(--sm-green-dark);border-color:#cdeae4}.sm-quick-btn.tone-purple{color:#7c3aed;border-color:#e9d5ff}.sm-quick-btn.tone-orange{color:#c2410c;border-color:#fed7aa}.sm-quick-btn.tone-teal{color:var(--brand-dark);border-color:#99f6e4}.sm-batch-modal{width:min(560px,100%)}.sm-batch-modal-header{border-bottom:1px solid #eef2f6;justify-content:space-between;align-items:flex-start;gap:12px;padding:16px 18px;display:flex}.sm-batch-modal-header h2{margin:0;font-size:16px}.sm-batch-modal-header p{color:#64748b;margin:4px 0 0;font-size:13px}.sm-batch-modal-body{padding:18px}.sm-batch-info-grid{background:#fff;grid-template-columns:repeat(2,minmax(0,1fr))}@media (width<=1280px){.sm-info-grid,.sm-summary-grid,.sm-stat-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.sm-quick-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=1100px){.sm-page{min-height:0}.sm-split,.sm-split.is-detail-open{grid-template-columns:1fr}.sm-overview{min-height:520px}}@media (width<=720px){.sm-overview-toolbar,.sm-pagination,.sm-detail-header{flex-direction:column;align-items:stretch}.sm-toolbar-actions,.sm-page-numbers,.sm-detail-actions{width:100%}.sm-toolbar-btn,.sm-adjust-btn{flex:auto;justify-content:center}.sm-close-btn{margin-left:auto}.sm-info-grid,.sm-summary-grid,.sm-stat-cards,.sm-quick-actions{grid-template-columns:1fr}.sm-filter-panel{width:auto;left:0;right:0}}.sm-page{--sm-header:#0f766e}.sm-page>.app-page-header{z-index:20;flex:none;position:relative}.sm-page .page-actions{z-index:21;flex-wrap:wrap;align-items:center;gap:10px;display:flex;position:relative}.sm-page .sm-header-btn,.sm-page .sm-more-actions-menu>.btn{white-space:nowrap;border-radius:10px;height:38px}.sm-page .sm-more-actions-menu{z-index:22;position:relative}.sm-page .sm-more-actions-menu .dropdown-menu{z-index:30}.sm-page>.sm-overview-card{z-index:1;flex:auto;min-height:0;position:relative}.sm-overview-toolbar{-webkit-overflow-scrolling:touch;flex-wrap:nowrap;overflow-x:auto}.sm-search{flex:260px;min-width:220px}.sm-toolbar-select{border:1px solid var(--border);min-width:140px;height:40px;color:var(--text);appearance:none;background-color:#fff;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='%2364748b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-position:right 10px center;background-repeat:no-repeat;border-radius:10px;flex:none;padding:0 32px 0 12px;font-size:13px}.sm-toolbar-btn{flex-shrink:0}.sm-overview-table{min-width:1280px}.sm-overview-table thead th{z-index:2;background:var(--sm-header);color:#fff;letter-spacing:.01em;border-bottom:0;padding:12px;font-size:12px;font-weight:650;position:sticky;top:0}.sm-overview-table thead th.sm-col-medicine,.sm-overview-table thead th.num{color:#fff}.sm-overview-table thead th.num{text-align:center}.sm-overview-table tbody td{color:var(--text);padding:12px;font-size:13px}.sm-overview-table tbody tr{cursor:default;background:#fff}.sm-overview-table tbody tr:nth-child(2n){background:#fff}.sm-overview-table tbody tr:hover:not(.sm-expanded-row){background:#f8fafc}.sm-overview-table tbody tr.is-expanded{background:#f3fbf9}.sm-col-expand{width:36px;min-width:36px;padding-left:10px!important;padding-right:4px!important}.sm-col-actions{width:110px;min-width:110px}.sm-expand-btn{color:#64748b;cursor:pointer;background:0 0;border:0;border-radius:8px;place-items:center;width:26px;height:26px;display:inline-grid}.sm-expand-btn:hover,.sm-expand-btn.is-open{background:var(--sm-green-soft);color:var(--sm-green-dark)}.sm-overview-table .sm-medicine-text strong{color:var(--text)}.sm-status-pill.out_of_stock{color:#dc2626;background:#fef2f2}.sm-row-actions{align-items:center;gap:4px;display:inline-flex;position:relative}.sm-expanded-row td{background:#f8fafc;border-bottom:1px solid #e2e8f0;padding:0!important}.sm-expanded-panel{padding:12px 16px 16px 48px;overflow-x:auto}.sm-expanded-loading{color:#64748b;margin:0;font-size:13px}.sm-batch-mini-table{table-layout:fixed;border-collapse:separate;border-spacing:0;background:#fff;border:1px solid #e2e8f0;border-radius:10px;width:100%;min-width:1080px;font-size:12.5px;overflow:hidden}.sm-batch-mini-table col.sm-mini-col-batch{width:12%}.sm-batch-mini-table col.sm-mini-col-pack{width:9%}.sm-batch-mini-table col.sm-mini-col-packs{width:6%}.sm-batch-mini-table col.sm-mini-col-units{width:7%}.sm-batch-mini-table col.sm-mini-col-location{width:11%}.sm-batch-mini-table col.sm-mini-col-reserved{width:7%}.sm-batch-mini-table col.sm-mini-col-mfg,.sm-batch-mini-table col.sm-mini-col-exp,.sm-batch-mini-table col.sm-mini-col-price{width:10%}.sm-batch-mini-table col.sm-mini-col-mrp{width:8%}.sm-batch-mini-table col.sm-mini-col-actions{width:10%}.sm-overview-table .sm-batch-mini-table thead th,.sm-overview-table .sm-batch-mini-table tbody td,.sm-table .sm-batch-mini-table thead th,.sm-table .sm-batch-mini-table tbody td{z-index:auto;color:var(--text);white-space:nowrap;text-overflow:ellipsis;vertical-align:middle;letter-spacing:normal;text-align:center;background:#fff;border-top:0;border-bottom:1px solid #eef2f6;padding:9px 10px;font-size:12.5px;font-weight:500;position:static;overflow:hidden}.sm-overview-table .sm-batch-mini-table thead th,.sm-table .sm-batch-mini-table thead th{color:#475569;background:#f1f5f9;border-bottom:1px solid #e2e8f0;font-size:11.5px;font-weight:700}.sm-overview-table .sm-batch-mini-table tbody tr:last-child td,.sm-table .sm-batch-mini-table tbody tr:last-child td{border-bottom:0}.sm-batch-mini-table .num{text-align:center}.sm-batch-adjust-link{color:var(--sm-green-dark);cursor:pointer;text-underline-offset:2px;white-space:nowrap;background:0 0;border:0;padding:0;font-size:12.5px;font-weight:650;text-decoration:underline}.sm-detail-drawer{z-index:1100;background:#0f172a7a;justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;inset:0}.sm-detail-drawer-backdrop{display:none}.sm-detail-drawer-panel{z-index:1;background:#fff;border-radius:16px;flex-direction:column;width:min(920px,100vw - 32px);max-height:min(900px,100vh - 48px);display:flex;position:relative;overflow:hidden;box-shadow:0 24px 64px #0f172a47}.sm-detail-drawer-panel .sm-detail{height:auto;max-height:min(900px,100vh - 48px);box-shadow:none;border:0;border-radius:16px;overflow:auto}@media (width<=720px){.sm-detail-drawer{align-items:flex-end;padding:12px}.sm-detail-drawer-panel,.sm-detail-drawer-panel .sm-detail{border-radius:16px 16px 0 0;width:100%;max-height:calc(100vh - 24px)}}.sm-page-ellipsis{color:#94a3b8;place-items:center;min-width:28px;font-size:13px;display:inline-grid}.ra-overlay{z-index:1200;opacity:0;pointer-events:none;background:#0f172a85;justify-content:center;align-items:center;padding:clamp(12px,2vw,28px);transition:opacity .2s;display:flex;position:fixed;inset:0}.ra-overlay.is-open{opacity:1;pointer-events:auto}.ra-modal{opacity:0;background:#fff;border-radius:18px;flex-direction:column;width:min(1280px,92vw);max-height:min(920px,100vh - 40px);transition:transform .22s,opacity .22s;display:flex;overflow:hidden;transform:translateY(12px)scale(.985);box-shadow:0 28px 80px #0f172a52}.ra-overlay.is-open .ra-modal,.ra-modal.is-open{opacity:1;transform:none}.ra-modal:focus{outline:none}.ra-header{border-bottom:1px solid #eef2f6;flex-shrink:0;justify-content:space-between;align-items:flex-start;gap:16px;padding:18px 22px 14px;display:flex}.ra-header-title-row{align-items:flex-start;gap:12px;display:flex}.ra-header-icon{color:#0f766e;background:#ecfdf5;border-radius:999px;flex-shrink:0;place-items:center;width:42px;height:42px;display:inline-grid}.ra-header h2{color:#0f766e;margin:0;font-size:15px;font-weight:700}.ra-medicine-name{color:#0f172a;margin:4px 0 0;font-size:18px;font-weight:750}.ra-medicine-sep{color:#94a3b8;margin:0 8px;font-weight:500}.ra-medicine-meta{color:#64748b;margin:2px 0 0;font-size:13px}.ra-header-aside{flex-shrink:0;align-items:flex-start;gap:10px;display:flex}.ra-pack-card{color:#1d4ed8;background:#f1f5f9;border-radius:12px;align-items:flex-start;gap:10px;min-width:220px;padding:10px 12px;display:flex}.ra-pack-card span{color:#64748b;text-transform:uppercase;letter-spacing:.03em;font-size:11px;font-weight:650;display:block}.ra-pack-card strong{color:#0f172a;margin-top:2px;font-size:13px;font-weight:700;display:block}.ra-summary{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;flex-shrink:0;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin:0 22px;display:grid;overflow:hidden}.ra-summary-item{color:#64748b;border-right:1px solid #e2e8f0;align-items:flex-start;gap:10px;padding:12px 14px;display:flex}.ra-summary-item:last-child{border-right:0}.ra-summary-item span{text-transform:uppercase;letter-spacing:.03em;color:#64748b;font-size:11px;font-weight:650;display:block}.ra-summary-item strong{color:#0f172a;margin-top:4px;font-size:15px;font-weight:750;display:block}.ra-body{flex:1;min-height:0;padding:16px 22px;overflow:auto}.ra-timeline{gap:14px;margin:0;padding:0;list-style:none;display:grid}.ra-timeline-item{grid-template-columns:36px minmax(0,1fr);gap:12px;display:grid;position:relative}.ra-timeline-item:not(:last-child):before{content:"";border-left:2px dashed #cbd5e1;position:absolute;top:38px;bottom:-14px;left:17px}.ra-timeline-rail{justify-content:center;padding-top:8px;display:flex}.ra-timeline-dot{color:#fff;z-index:1;background:#0f766e;border-radius:999px;place-items:center;width:28px;height:28px;font-size:12px;font-weight:750;display:inline-grid}.ra-timeline-item.tone-decrease .ra-timeline-dot{background:#dc2626}.ra-timeline-item.tone-set .ra-timeline-dot{background:#2563eb}.ra-card{background:#f0fdf4;border:1px solid #d1fae5;border-radius:14px;padding:14px 16px}.ra-card.tone-decrease{background:#fef2f2;border-color:#fecaca}.ra-card.tone-set{background:#eff6ff;border-color:#bfdbfe}.ra-card-header{justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px;display:flex}.ra-card-heading{align-items:flex-start;gap:10px;min-width:0;display:flex}.ra-card-action-icon{color:#fff;background:#059669;border-radius:999px;flex-shrink:0;place-items:center;width:34px;height:34px;display:inline-grid}.ra-card-action-icon.tone-decrease{background:#dc2626}.ra-card-action-icon.tone-set{background:#2563eb}.ra-card-heading strong{color:#0f172a;font-size:14px;font-weight:750;display:block}.ra-card-heading p{color:#64748b;margin:3px 0 0;font-size:12.5px}.ra-badge{white-space:nowrap;color:#047857;background:#d1fae5;border-radius:999px;align-items:center;padding:5px 10px;font-size:12px;font-weight:700;display:inline-flex}.ra-badge.tone-decrease{color:#b91c1c;background:#fee2e2}.ra-badge.tone-set{color:#1d4ed8;background:#dbeafe}.ra-card-body{grid-template-columns:minmax(0,1.7fr) minmax(180px,.7fr);align-items:stretch;gap:12px;display:grid}.ra-qty-table-wrap{background:#fff;border:1px solid #e2e8f0;border-radius:10px;overflow:auto}.ra-qty-table{border-collapse:collapse;width:100%;font-size:13px}.ra-qty-table th,.ra-qty-table td{vertical-align:middle;border-bottom:1px solid #eef2f6;padding:10px 12px;text-align:center!important}.ra-qty-table th{color:#64748b;text-transform:uppercase;letter-spacing:.03em;background:#f8fafc;font-size:11.5px;font-weight:700}.ra-qty-table tbody tr:last-child td{border-bottom:0}.ra-item-cell{color:#0f172a;align-items:flex-start;gap:8px;display:flex;text-align:left!important}.ra-item-cell strong{font-size:13px;font-weight:700;display:block}.ra-item-cell small{color:#64748b;margin-top:2px;font-size:11px;display:block}.ra-delta{font-weight:750}.ra-delta.tone-increase{color:#047857}.ra-delta.tone-decrease{color:#b91c1c}.ra-delta.tone-set{color:#1d4ed8}.ra-meta{background:#ffffffc7;border:1px solid #e2e8f0;border-radius:10px;gap:10px;padding:12px;display:grid}.ra-meta span{color:#64748b;text-transform:uppercase;letter-spacing:.03em;align-items:center;gap:6px;font-size:11px;font-weight:650;display:inline-flex}.ra-meta strong{color:#0f172a;word-break:break-word;margin-top:4px;font-size:13px;font-weight:700;display:block}.ra-footer{border-top:1px solid #eef2f6;flex-shrink:0;justify-content:space-between;align-items:center;gap:12px;padding:12px 22px 16px;display:flex}.ra-footer-note{color:#1d4ed8;background:#eff6ff;border-radius:10px;align-items:center;gap:8px;padding:8px 12px;font-size:12.5px;font-weight:600;display:inline-flex}.ra-empty,.ra-error{text-align:center;color:#64748b;justify-items:center;gap:8px;padding:48px 20px;display:grid}.ra-empty strong,.ra-error strong{color:#0f172a;font-size:15px}.ra-error{text-align:left;color:#b91c1c;background:#fef2f2;border:1px solid #fecaca;border-radius:12px;grid-template-columns:auto 1fr auto;place-items:center start;padding:16px}.ra-skeleton{gap:12px;display:grid}.ra-skeleton-card{background:linear-gradient(90deg,#f1f5f9 25%,#e2e8f0 37%,#f1f5f9 63%) 0 0/400% 100%;border-radius:14px;height:148px;animation:1.2s infinite ra-shimmer}@keyframes ra-shimmer{0%{background-position:100% 0}to{background-position:0 0}}@media (width<=960px){.ra-summary{grid-template-columns:1fr 1fr}.ra-summary-item:nth-child(2){border-right:0}.ra-card-body{grid-template-columns:1fr}}@media (width<=720px){.ra-overlay{align-items:flex-end;padding:0}.ra-modal{border-radius:16px 16px 0 0;width:100%;max-height:calc(100vh - 12px)}.ra-header{flex-direction:column}.ra-header-aside{justify-content:space-between;width:100%}.ra-summary{grid-template-columns:1fr;margin:0 12px}.ra-summary-item{border-bottom:1px solid #e2e8f0;border-right:0}.ra-summary-item:last-child{border-bottom:0}.ra-body{padding:12px}.ra-footer{flex-direction:column;align-items:stretch;padding:12px}.ra-error{grid-template-columns:1fr}}@media (prefers-reduced-motion:reduce){.ra-overlay,.ra-modal{transition:none!important}.ra-skeleton-card{animation:none!important}}.sm-adj-overlay{z-index:1200;opacity:0;background:#0f172a00;justify-content:center;align-items:center;padding:24px;transition:background .22s,opacity .22s;display:flex;position:fixed;inset:0}.sm-adj-overlay.is-open{opacity:1;background:#0f172a7a}.sm-adj-modal{opacity:0;background:#fff;border-radius:16px;flex-direction:column;width:min(980px,100%);max-height:min(920px,100vh - 32px);transition:transform .22s,opacity .22s;display:flex;overflow:hidden;transform:translateY(10px)scale(.98);box-shadow:0 24px 64px #0f172a47}.sm-adj-overlay.is-open .sm-adj-modal,.sm-adj-modal.is-open{opacity:1;transform:none}.sm-adj-header{border-bottom:1px solid #eef2f6;flex-shrink:0;justify-content:space-between;align-items:center;gap:16px;padding:18px 22px 14px;display:flex}.sm-adj-header-left{align-items:center;gap:12px;min-width:0;display:flex}.sm-adj-header-icon{color:#0f766e;background:#e7f6f3;border-radius:12px;flex-shrink:0;place-items:center;width:40px;height:40px;display:inline-grid}.sm-adj-header h2{color:#0f172a;margin:0;font-size:18px;font-weight:700;line-height:1.2}.sm-adj-header p{color:#64748b;margin:3px 0 0;font-size:13px}.sm-adj-close{margin-top:0}.sm-adj-body{flex-direction:column;flex:auto;gap:18px;min-height:0;padding:18px 22px 8px;display:flex;overflow:auto}.sm-adj-section{border-bottom:1px solid #eef2f6;flex-direction:column;gap:12px;padding-bottom:16px;display:flex}.sm-adj-section:last-of-type{border-bottom:0;padding-bottom:0}.sm-adj-section h3{color:#0f172a;margin:0;font-size:14px;font-weight:700}.sm-adj-selection-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.sm-adj-field{flex-direction:column;gap:6px;min-width:0;display:flex}.sm-adj-field>span{color:#64748b;min-height:18px;font-size:12px;font-weight:650;line-height:18px;display:block}.sm-adj-field em{color:#dc2626;font-style:normal}.sm-adj-field input,.sm-adj-field select,.sm-adj-field textarea,.sm-adj-ref-inputs select,.sm-adj-ref-inputs input,.sm-adj-qty-grid input,.sm-adj-select-with-icon select{box-sizing:border-box;color:#0f172a;background:#fff;border:1px solid #e2e8f0;border-radius:10px;width:100%;height:40px;min-height:40px;padding:0 12px;font-size:13px}.sm-adj-field textarea{resize:vertical;height:auto;min-height:88px;padding:10px 12px}.sm-adj-field input.is-readonly{color:#475569;background:#f8fafc}.sm-adj-field .app-date-input,.sm-adj-field .app-date-input-control{width:100%;min-height:40px}.sm-adj-field .app-date-input-field{box-sizing:border-box;color:#0f172a;background:#fff;border:1px solid #e2e8f0;border-radius:10px;height:40px;min-height:40px;font-size:13px;padding:0 40px 0 12px!important}.sm-adj-field .app-date-input-field:focus{border-color:var(--brand);outline:none;box-shadow:0 0 0 3px #0d94881f}.sm-adj-autocomplete{width:100%}.sm-adj-autocomplete .autocomplete-control,.sm-adj-field .filter-autocomplete .autocomplete-control,.sm-adj-field>.autocomplete .autocomplete-control,.sm-adj-ref-inputs .filter-autocomplete .autocomplete-control{border:1px solid var(--border,#e2e8f0);background:var(--surface,#fff);border-radius:10px;gap:8px;width:100%;height:40px;min-height:40px;padding:0 10px}.sm-adj-autocomplete .autocomplete-control:focus-within,.sm-adj-field .filter-autocomplete .autocomplete-control:focus-within,.sm-adj-field>.autocomplete .autocomplete-control:focus-within,.sm-adj-ref-inputs .filter-autocomplete .autocomplete-control:focus-within{border-color:var(--brand);background:#fff;box-shadow:0 0 0 3px #0d94881f}.sm-adj-autocomplete .autocomplete-control.is-disabled,.sm-adj-field .filter-autocomplete .autocomplete-control.is-disabled,.sm-adj-field>.autocomplete .autocomplete-control.is-disabled,.sm-adj-ref-inputs .filter-autocomplete .autocomplete-control.is-disabled{opacity:.6;cursor:not-allowed;background:#f3f4f6}.sm-adj-autocomplete .autocomplete-control input,.sm-adj-autocomplete .autocomplete-control input:focus,.sm-adj-autocomplete .autocomplete-control input:not([type=checkbox]):not([type=radio]),.sm-adj-autocomplete .autocomplete-control input:not([type=checkbox]):not([type=radio]):focus,.sm-adj-field .filter-autocomplete .autocomplete-control input,.sm-adj-field .filter-autocomplete .autocomplete-control input:focus,.sm-adj-field .filter-autocomplete .autocomplete-control input:not([type=checkbox]):not([type=radio]),.sm-adj-field .filter-autocomplete .autocomplete-control input:not([type=checkbox]):not([type=radio]):focus,.sm-adj-field>.autocomplete .autocomplete-control input,.sm-adj-field>.autocomplete .autocomplete-control input:focus,.sm-adj-field>.autocomplete .autocomplete-control input:not([type=checkbox]):not([type=radio]),.sm-adj-field>.autocomplete .autocomplete-control input:not([type=checkbox]):not([type=radio]):focus,.sm-adj-ref-inputs .filter-autocomplete .autocomplete-control input,.sm-adj-ref-inputs .filter-autocomplete .autocomplete-control input:focus,.sm-adj-ref-inputs .filter-autocomplete .autocomplete-control input:not([type=checkbox]):not([type=radio]),.sm-adj-ref-inputs .filter-autocomplete .autocomplete-control input:not([type=checkbox]):not([type=radio]):focus{color:var(--text,#0f172a);font-size:13px;box-shadow:none!important;background:0 0!important;border:none!important;border-radius:0!important;outline:none!important;height:38px!important;min-height:38px!important;padding:0!important}.sm-adj-select-with-icon{align-items:center;width:100%;display:flex;position:relative}.sm-adj-select-with-icon>.filter-autocomplete,.sm-adj-select-with-icon>.autocomplete{width:100%}.sm-adj-select-with-icon>svg{z-index:1;color:#64748b;pointer-events:none;position:absolute;left:12px}.sm-adj-select-with-icon .autocomplete-control{padding-left:34px}.sm-adj-stock-card{background:#ecfdf5;border:1px solid #bbf7d0;border-radius:12px;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:12px 14px;display:grid}.sm-adj-stock-card.is-empty{background:#f8fafc;border-color:#e2e8f0}.sm-adj-stock-card>div{flex-direction:column;gap:4px;min-width:0;display:flex}.sm-adj-stock-card span{color:#047857;align-items:center;gap:6px;font-size:11.5px;font-weight:650;display:inline-flex}.sm-adj-stock-card.is-empty span{color:#64748b}.sm-adj-stock-card strong{color:#0f172a;white-space:normal;font-size:13px;font-weight:650;line-height:1.35}.sm-adj-type{border:0;flex-direction:column;gap:6px;min-width:0;margin:0;padding:0;display:flex}.sm-adj-type legend{float:none;color:#64748b;width:100%;min-height:18px;margin:0;padding:0;font-size:12px;font-weight:650;line-height:18px;display:block}.sm-adj-type legend em{color:#dc2626;font-style:normal}.sm-adj-type-options{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:10px;display:grid}.sm-adj-reason-type-row{grid-template-columns:minmax(0,1fr) minmax(0,1.6fr);align-items:start;gap:12px;display:grid}.sm-adj-reason-type-row .sm-adj-type{min-width:0}.sm-adj-type-options label{box-sizing:border-box;cursor:pointer;color:#334155;white-space:nowrap;background:#fff;border:1px solid #e2e8f0;border-radius:10px;align-items:center;gap:8px;height:40px;min-height:40px;padding:0 12px;font-size:13px;font-weight:600;display:flex}.sm-adj-type-options label.is-active{color:#0f766e;background:#ecfdf5;border-color:#0f766e;box-shadow:inset 0 0 0 1px #0f766e26}.sm-adj-type-options input{accent-color:#0f766e;flex-shrink:0}.sm-adj-qty-grid{grid-template-columns:repeat(3,minmax(0,1fr));align-items:end;gap:10px;display:grid}.sm-adj-qty-grid label{flex-direction:column;gap:6px;min-width:0;display:flex}.sm-adj-qty-grid label>span,.sm-adj-field>span.sm-adj-sublabel-spacer{color:#64748b;min-height:15px;font-size:11.5px;font-weight:650;line-height:15px;display:block}.sm-adj-field>span.sm-adj-sublabel-spacer{visibility:hidden;-webkit-user-select:none;user-select:none;pointer-events:none}.sm-adj-qty-date-row{grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr);align-items:start;gap:12px;display:grid}.sm-adj-qty-block{min-width:0}.sm-adj-meta-row{grid-template-columns:repeat(4,minmax(0,1fr));align-items:start;gap:12px;display:grid}.sm-adj-selection-grid,.sm-adj-reason-type-row,.sm-adj-qty-date-row,.sm-adj-meta-row{align-items:start}.sm-adj-filter-select{width:100%}.sm-adj-notes-input,.sm-adj-field textarea.sm-adj-notes-input{resize:none;white-space:nowrap;max-height:40px;line-height:38px;overflow:auto hidden;height:40px!important;min-height:40px!important;padding:0 12px!important}.sm-adj-hint,.sm-adj-counter{color:#94a3b8;min-height:15px;font-size:11.5px;line-height:15px}.sm-adj-counter{align-self:flex-end}.sm-adj-hint-spacer{visibility:hidden;-webkit-user-select:none;user-select:none;pointer-events:none}.sm-adj-two-col,.sm-adj-ref-row{grid-template-columns:1.2fr 1fr;gap:12px;display:grid}.sm-adj-ref-inputs{grid-template-columns:1.1fr 1fr;gap:8px;display:grid}.sm-adj-field-error{color:#dc2626;font-size:12px}.sm-adj-preview-layout{grid-template-columns:minmax(0,1.4fr) minmax(220px,.8fr);align-items:stretch;gap:14px;display:grid}.sm-adj-preview-table-wrap{border:1px solid #e2e8f0;border-radius:12px;overflow:hidden}.sm-adj-preview-table{border-collapse:collapse;width:100%;font-size:13px}.sm-adj-preview-table th,.sm-adj-preview-table td{text-align:center;border-bottom:1px solid #eef2f6;padding:10px 12px}.sm-adj-preview-table th{color:#64748b;background:#f8fafc;font-size:12px;font-weight:700}.sm-adj-preview-table tr:last-child td{border-bottom:0}.sm-adj-preview-table .is-up{color:#047857;font-weight:700}.sm-adj-preview-table .is-down{color:#c2410c;font-weight:700}.sm-adj-status-card{color:#0f766e;background:#ecfdf5;border:1px solid #bbf7d0;border-radius:12px;align-items:flex-start;gap:10px;padding:14px;display:flex}.sm-adj-status-card.tone-decrease{color:#c2410c;background:#fff7ed;border-color:#fed7aa}.sm-adj-status-card.tone-set{color:#1d4ed8;background:#eff6ff;border-color:#bfdbfe}.sm-adj-status-card.tone-empty{color:#64748b;background:#f8fafc;border-color:#e2e8f0}.sm-adj-status-card strong{color:inherit;font-size:13.5px;display:block}.sm-adj-status-card p{color:#475569;margin:4px 0 0;font-size:12.5px;line-height:1.4}.sm-adj-error{color:#b91c1c;background:#fef2f2;border-radius:10px;margin:0;padding:10px 12px;font-size:13px}.sm-adj-footer{border-top:1px solid #eef2f6;flex-shrink:0;justify-content:flex-end;gap:10px;padding:14px 22px 18px;display:flex}.sm-adj-submit{align-items:center;gap:8px;display:inline-flex}@media (width<=900px){.sm-adj-selection-grid,.sm-adj-stock-card,.sm-adj-type-options,.sm-adj-reason-type-row,.sm-adj-qty-grid,.sm-adj-qty-date-row,.sm-adj-meta-row,.sm-adj-two-col,.sm-adj-ref-row,.sm-adj-preview-layout,.sm-adj-ref-inputs{grid-template-columns:1fr}.sm-adj-overlay{padding:12px}.sm-adj-modal{max-height:calc(100vh - 16px)}}.sm-revision-overlay{z-index:1100;opacity:0;background:#0f172a00;justify-content:flex-end;transition:background .28s,opacity .28s;display:flex;position:fixed;inset:0}.sm-revision-overlay.is-open{opacity:1;background:#0f172a6b}.sm-revision-panel{background:#fff;flex-direction:column;width:min(460px,100vw);height:100%;transition:transform .28s;display:flex;transform:translate(100%);box-shadow:-12px 0 40px #0f172a2e}.sm-revision-overlay.is-open .sm-revision-panel,.sm-revision-panel.is-open{transform:translate(0)}.sm-revision-header{border-bottom:1px solid #eef2f6;flex-shrink:0;justify-content:space-between;align-items:flex-start;gap:12px;padding:18px 18px 12px;display:flex}.sm-revision-header h2{color:var(--text);margin:0;font-size:17px;font-weight:700}.sm-revision-body{flex-direction:column;flex:1;gap:16px;min-height:0;padding:16px 18px 20px;display:flex;overflow:auto}.sm-revision-title-row{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.sm-revision-title-row strong{color:var(--text);font-size:16px;display:block}.sm-revision-title-row p{color:var(--text-muted);margin:4px 0 0;font-size:13px}.sm-batch-details-btn{border-color:var(--sm-green-border);height:36px;color:var(--sm-green-dark);background:#fff;border-radius:10px}.sm-batch-details-btn:hover{background:var(--sm-green-tint);color:var(--sm-green-dark)}.sm-revision-current,.sm-revision-preview{background:#f3fbf9;border:1px solid #d8eee9;border-radius:12px;padding:12px 14px}.sm-revision-current-head{justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px;display:flex}.sm-revision-current h3,.sm-revision-preview h3,.sm-revision-form h3{color:var(--sm-green-dark);margin:0 0 10px;font-size:13px;font-weight:700}.sm-revision-current-head h3{margin:0}.sm-revision-batch-no{align-items:baseline;gap:8px;margin:0;display:flex}.sm-revision-batch-no span{color:#64748b;text-transform:uppercase;letter-spacing:.04em;font-size:11px;font-weight:650}.sm-revision-batch-no strong{color:var(--sm-green-dark);font-size:13.5px;font-weight:800}.sm-revision-current-grid,.sm-revision-preview-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.sm-revision-preview-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.sm-revision-current-grid span,.sm-revision-preview-grid span{color:#64748b;margin-bottom:4px;font-size:12px;display:block}.sm-revision-current-grid strong,.sm-revision-preview-grid strong{color:var(--text);font-size:18px;font-weight:800;display:block}.sm-revision-preview-grid small{color:#64748b;margin-top:2px;display:block}.sm-revision-preview .is-delta,.sm-revision-preview small.is-delta{color:var(--sm-green)}.sm-revision-preview.is-deduct .is-delta,.sm-revision-preview.is-deduct small.is-delta{color:#dc2626}.sm-revision-form{flex-direction:column;gap:12px;display:flex}.sm-revision-type{border:0;gap:8px;margin:0;padding:0;display:flex}.sm-revision-type legend{color:var(--text-secondary);margin-bottom:8px;font-size:12.5px;font-weight:650}.sm-revision-type legend em,.sm-revision-field span em{color:#dc2626;font-style:normal}.sm-revision-type label{border:1px solid var(--border);height:40px;color:var(--text-secondary);cursor:pointer;background:#fff;border-radius:10px;flex:1;justify-content:center;align-items:center;gap:8px;font-size:13px;font-weight:650;display:inline-flex}.sm-revision-type label.is-active{border-color:var(--sm-green);background:var(--sm-green-tint);color:var(--sm-green-dark)}.sm-revision-type input{accent-color:var(--sm-green)}.sm-revision-field{gap:6px;display:grid}.sm-revision-field span{color:var(--text-secondary);font-size:12.5px;font-weight:650}.sm-revision-field input,.sm-revision-field select,.sm-revision-field textarea{border:1px solid var(--border);width:100%;min-height:40px;color:var(--text);background:#fff;border-radius:10px;padding:8px 12px;font-size:13.5px}.sm-revision-field textarea{resize:vertical;min-height:84px}.sm-revision-field small{color:var(--text-muted);font-size:12px}.sm-revision-counter{text-align:right}.sm-revision-qty-row{grid-template-columns:1fr 1fr;align-items:start;gap:10px;display:grid}.sm-revision-qty-row .sm-revision-field input,.sm-revision-qty-input{box-sizing:border-box;width:100%;min-width:0;height:40px;min-height:40px}.sm-revision-qty-hint{color:var(--text-muted);margin-top:-6px;font-size:12px}.sm-revision-error{color:#dc2626;margin:0;font-size:13px;font-weight:650}.sm-revision-footer{border-top:1px solid #eef2f6;flex-shrink:0;gap:10px;padding:14px 18px 18px;display:flex}.sm-revision-save{flex:1;justify-content:center}.sm-batch-overlay{z-index:1200}.sm-nested-overlay{z-index:1300}.isx-modal.modal-dialog{background:#fff;border-radius:12px;width:min(680px,100vw - 24px);max-width:680px;max-height:min(90vh,100dvh - 24px)}.isx-header{border-bottom:1px solid var(--border);flex-shrink:0;grid-template-columns:auto minmax(0,1fr) auto;align-items:flex-start;gap:12px;padding:14px 16px;display:grid}.isx-header-icon{width:34px;height:34px;color:var(--brand-dark);background:#ecfdf5;border-radius:10px;flex-shrink:0;place-items:center;display:grid}.isx-header-text h2{color:var(--text);margin:0;font-size:15px;font-weight:700;line-height:1.25}.isx-header-text p{color:var(--text-muted);margin:4px 0 0;font-size:11.5px;line-height:1.5}.isx-body{flex-direction:column;flex:auto;gap:12px;min-height:0;padding:14px 16px;display:flex;overflow-y:auto}.isx-template-row{background:#eff6ff;border:1px solid #bfdbfe;border-radius:10px;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;display:flex}.isx-template-row>div{flex-direction:column;gap:2px;min-width:0;display:flex}.isx-template-row strong{color:#1e3a8a;font-size:12.5px}.isx-template-row span{color:#1e40af;font-size:11.5px;line-height:1.45}.isx-template-btn{border:1px solid var(--brand-dark);min-height:36px;color:var(--brand-dark);white-space:nowrap;background:#fff;flex:none;align-items:center;gap:6px;padding:0 14px;display:inline-flex}.isx-template-btn:hover:not(:disabled){background:#ecfdf5}.isx-dropzone{border:1.5px dashed var(--border);color:var(--text-muted);text-align:center;background:#f8fafc;border-radius:12px;flex-direction:column;justify-content:center;align-items:center;gap:6px;padding:26px 16px;transition:border-color .18s,background .18s;display:flex;position:relative}.isx-dropzone.is-active{border-color:var(--brand-dark);background:#ecfdf5}.isx-dropzone.has-file{padding:18px 16px}.isx-file-input{opacity:0;pointer-events:none;width:1px;height:1px;position:absolute}.isx-dropzone-title{color:var(--text);margin:0;font-size:12.5px}.isx-browse{color:var(--brand-dark);cursor:pointer;font-weight:700;text-decoration:underline}.isx-dropzone-hint{color:var(--text-muted);margin:0;font-size:11px}.isx-file-card{border:1px solid var(--border);background:#fff;border-radius:10px;align-items:center;gap:10px;padding:10px 12px;display:flex}.isx-file-icon{width:32px;height:32px;color:var(--brand-dark);background:#ecfdf5;border-radius:8px;flex-shrink:0;place-items:center;display:grid}.isx-file-meta{flex-direction:column;flex:auto;gap:1px;min-width:0;display:flex}.isx-file-meta strong{color:var(--text);text-overflow:ellipsis;white-space:nowrap;font-size:12.5px;overflow:hidden}.isx-file-meta span{color:var(--text-muted);font-size:11px}.isx-errors{background:#fef2f2;border:1px solid #fecaca;border-radius:10px;padding:10px 12px}.isx-errors-head{color:#991b1b;align-items:flex-start;gap:8px;font-size:12.5px;font-weight:600;line-height:1.45;display:flex}.isx-errors-head svg{flex-shrink:0;margin-top:1px}.isx-errors-list{color:#b91c1c;flex-direction:column;gap:4px;max-height:220px;margin:8px 0 0;padding:0 0 0 18px;font-size:11.5px;line-height:1.45;display:flex;overflow-y:auto}.isx-footer{border-top:1px solid var(--border);flex-shrink:0;justify-content:flex-end;align-items:center;gap:8px;padding:10px 16px;display:flex}.isx-footer .btn{border:1px solid var(--brand-dark);min-height:38px;box-shadow:none;justify-content:center;align-items:center;gap:6px;padding:0 16px;display:inline-flex}.isx-footer .btn-secondary{border-color:var(--brand-dark);color:var(--brand-dark);background:#fff}.isx-footer .btn-secondary:hover:not(:disabled){color:var(--brand-dark);background:#ecfdf5}.isx-footer .btn-primary{background:var(--brand-dark);border-color:var(--brand-dark);color:#fff}.isx-footer .btn-primary:hover:not(:disabled){background:var(--brand);border-color:var(--brand)}.isx-footer .btn:disabled{opacity:.6;cursor:not-allowed}.isx-template-btn .spin,.isx-footer .spin{animation:.8s linear infinite spin}@media (width<=560px){.isx-template-row{flex-direction:column;align-items:stretch}.isx-template-btn{justify-content:center}}@media (width<=720px){.sm-revision-panel{width:100vw}.sm-revision-current-grid,.sm-revision-preview-grid,.sm-revision-qty-row{grid-template-columns:1fr}.sm-revision-current-head,.sm-revision-title-row,.sm-revision-type{flex-direction:column}.sm-batch-details-btn,.sm-revision-type label{justify-content:center;width:100%}}.sm-purchase-history-modal{flex-direction:column;width:min(1180px,100vw - 32px);max-height:calc(100vh - 40px);padding:0;display:flex;overflow:hidden}.sm-ph-header{border-bottom:1px solid #eef2f6;flex-shrink:0;justify-content:space-between;align-items:center;gap:12px;padding:16px 18px;display:flex}.sm-ph-header h2{color:var(--text);margin:0;font-size:17px;font-weight:700}.sm-ph-body{gap:14px;padding:16px 18px;display:grid;overflow:auto}.sm-ph-summary{background:#f3fbf9;border:1px solid #d8eee9;border-radius:12px;grid-template-columns:1.4fr repeat(4,minmax(0,1fr));gap:10px;padding:12px 14px;display:grid}.sm-ph-summary span{color:#64748b;text-transform:uppercase;letter-spacing:.04em;margin-bottom:4px;font-size:11px;font-weight:650;display:block}.sm-ph-summary strong{color:var(--text);font-size:14px;font-weight:750;display:block}.sm-ph-summary strong.is-green{color:var(--sm-green)}.sm-ph-summary small{color:var(--text-muted);margin-top:2px;font-size:12px;display:block}.sm-ph-table-wrap{border:1px solid #eef2f6;border-radius:12px;max-height:min(420px,48vh);overflow:auto}.sm-ph-table{min-width:1080px}.sm-ph-table thead th{white-space:nowrap;background:#f8fafc}.sm-ph-po-link{color:#2563eb;cursor:pointer;background:0 0;border:0;padding:0;font-weight:650;text-decoration:none}.sm-ph-po-link:hover{text-decoration:underline}.sm-ph-po-link.is-static{cursor:default}.sm-ph-pagination{color:#64748b;justify-content:space-between;align-items:center;gap:12px;font-size:13px;display:flex}.sm-ph-totals{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;display:grid}.sm-ph-totals article{background:#fff;border:1px solid #eef2f6;border-radius:12px;align-items:center;gap:10px;padding:12px 14px;display:flex}.sm-ph-total-icon{background:var(--sm-green-soft);width:34px;height:34px;color:var(--sm-green);border-radius:10px;flex-shrink:0;place-items:center;display:grid}.sm-ph-totals span{color:#64748b;margin-bottom:2px;font-size:12px;display:block}.sm-ph-totals strong{color:var(--text);font-size:15px;font-weight:800}.sm-ph-totals strong.is-green{color:var(--sm-green)}.sm-ph-footer{border-top:1px solid #eef2f6;flex-shrink:0;justify-content:flex-end;padding:12px 18px 16px;display:flex}@media (width<=980px){.sm-ph-summary,.sm-ph-totals{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=640px){.sm-ph-summary,.sm-ph-totals,.sm-ph-pagination{grid-template-columns:1fr}.sm-ph-pagination{flex-direction:column;align-items:stretch}}.sm-rh-summary{grid-template-columns:1.3fr repeat(5,minmax(0,1fr))}.sm-rh-table{min-width:1120px}.sm-rh-link{color:#7c3aed}.sm-rh-settlement{white-space:nowrap;border-radius:999px;align-items:center;padding:4px 10px;font-size:12px;font-weight:700;display:inline-flex}.sm-rh-settlement.tone-refund{color:#0c7a6c;background:#e7f6f3}.sm-rh-settlement.tone-credit{color:#c2410c;background:#ffedd5}.sm-rh-settlement.tone-mixed,.sm-rh-settlement.tone-exchange,.sm-rh-settlement.tone-neutral{color:#475569;background:#f1f5f9}.sm-rh-totals{grid-template-columns:repeat(6,minmax(0,1fr))}.sm-ph-total-icon.tone-blue{color:#2563eb;background:#eff6ff}.sm-ph-total-icon.tone-orange{color:#c2410c;background:#ffedd5}.sm-ph-total-icon.tone-purple{color:#7c3aed;background:#f3e8ff}.sm-ph-totals strong.is-blue{color:#2563eb}.sm-ph-totals strong.is-orange{color:#c2410c}.sm-ph-totals strong.is-purple{color:#7c3aed}@media (width<=1100px){.sm-rh-summary,.sm-rh-totals{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width<=720px){.sm-rh-summary,.sm-rh-totals{grid-template-columns:1fr 1fr}}.sm-sl-summary{grid-template-columns:1.4fr repeat(5,minmax(0,1fr))}.sm-sl-toolbar{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.sm-sl-date-range{align-items:center;gap:8px;min-width:0;display:flex}.sm-sl-date-sep{color:var(--text-muted);font-weight:700}.sm-sl-date-range .app-date-input,.sm-sl-date-range input{min-width:140px}.sm-sl-txn-select{border:1px solid var(--border);min-width:200px;height:40px;color:var(--text);background:#fff;border-radius:10px;padding:0 12px;font-size:13.5px}.sm-sl-actions{gap:8px;margin-left:auto;display:flex}.sm-sl-table{min-width:1280px}.sm-sl-badge{white-space:nowrap;border-radius:999px;align-items:center;padding:4px 10px;font-size:12px;font-weight:700;display:inline-flex}.sm-sl-badge.tone-stock-in,.sm-sl-badge.tone-txn-add{color:#0c7a6c;background:#e7f6f3}.sm-sl-badge.tone-grn,.sm-sl-badge.tone-txn-purchase{color:var(--brand-dark);background:#ecfeff}.sm-sl-badge.tone-return-out{color:#c2410c;background:#ffedd5}.sm-sl-badge.tone-stock-out,.sm-sl-badge.tone-txn-return,.sm-sl-badge.tone-txn-deduct{color:#b91c1c;background:#fee2e2}.sm-sl-table .is-positive{color:var(--sm-green);font-weight:700}.sm-sl-table .is-negative{color:#dc2626;font-weight:700}.sm-sl-totals{grid-template-columns:repeat(5,minmax(0,1fr))}.sm-ph-total-icon.tone-teal{background:var(--brand-soft);color:var(--brand-dark)}@media (width<=1100px){.sm-sl-summary,.sm-sl-totals{grid-template-columns:repeat(3,minmax(0,1fr))}.sm-sl-actions{margin-left:0}}@media (width<=720px){.sm-sl-summary,.sm-sl-totals{grid-template-columns:1fr 1fr}.sm-sl-date-range,.sm-sl-txn-select,.sm-sl-actions{width:100%}.sm-sl-actions .btn{flex:1;justify-content:center}}.page-content:has(.sd-page){min-height:0;height:calc(100dvh - var(--topbar-h));max-height:calc(100dvh - var(--topbar-h));box-sizing:border-box;flex-direction:column;flex:1;padding-top:10px;padding-bottom:10px;display:flex;overflow:hidden}.main-column:has(.sd-page){height:100dvh;max-height:100dvh;overflow:hidden}.sd-page{--sd-green:#0f8f7f;--sd-green-dark:#0c7a6c;--sd-green-soft:#e7f6f3;--sd-green-tint:#f3fbf9;--sd-border:var(--border-light);flex-direction:column;flex:1;gap:8px;height:100%;min-height:0;display:flex;overflow:hidden}.sd-page .app-page-header{flex:none;gap:2px;margin-bottom:0}.sd-page .app-page-header-row.has-subtitle{align-items:center;min-height:0}.sd-page .app-page-header .page-subtitle{max-width:none;font-size:12px}.sd-page .breadcrumbs{font-size:11.5px}.sd-page .app-page-header h1{font-size:1.15rem}.sd-date-btn{color:var(--text-secondary);gap:8px}.sd-date-control{z-index:6;align-items:center;display:inline-flex;position:relative}.sd-date-control .app-date-picker{z-index:90}.sd-date-control .app-date-input{width:148px}.sd-date-control .app-date-input-field{height:34px;min-height:34px;box-shadow:none;color:var(--text);background:0 0;border:none;padding:0 36px 0 12px;font-size:13px;font-weight:600}.sd-date-control .app-date-input-field:focus{box-shadow:none}.sd-date-range{color:var(--text-secondary);white-space:nowrap;padding-right:8px;font-size:13px;font-weight:600}.sd-date-sep{background:#d7dee8;width:1px;height:14px}.sd-kpi-grid{flex:none;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;display:grid}.sd-kpi-card{border:1px solid var(--sd-border);background:#fff;border-radius:12px;gap:2px;min-width:0;padding:8px 10px;display:grid;box-shadow:0 1px 2px #0f172a08}.sd-kpi-card.is-split{gap:4px}.sd-kpi-split{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0;min-width:0;display:grid}.sd-kpi-split-item{gap:1px;min-width:0;padding-right:10px;display:grid}.sd-kpi-split-item+.sd-kpi-split-item{border-left:1px solid #e6edf3;padding-left:10px;padding-right:0}.sd-kpi-split-label{color:#94a3b8;font-size:10.5px;font-weight:650;line-height:1.25}.sd-kpi-split-item .sd-kpi-value{font-size:16px}.sd-kpi-top{align-items:center;gap:6px;min-width:0;display:flex}.sd-kpi-icon{background:var(--sd-green-soft);width:24px;height:24px;color:var(--sd-green);border-radius:999px;flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}.sd-kpi-icon svg{width:14px;height:14px;display:block}.sd-kpi-icon.tone-total-sales{color:#0f8f7f;background:#e7f6f3}.sd-kpi-icon.tone-total-invoices{color:#3b82f6;background:#e8f1ff}.sd-kpi-icon.tone-amount-received,.sd-kpi-icon.tone-received-outstanding{color:#8b5cf6;background:#f1eaff}.sd-kpi-icon.tone-outstanding{color:#f59e0b;background:#fff4e5}.sd-kpi-icon.tone-sale-drafts{color:#4f46e5;background:#eef2ff}.sd-kpi-icon.tone-sales-returns{color:#ec4899;background:#ffe8ef}.sd-kpi-label{color:#64748b;text-overflow:ellipsis;white-space:nowrap;font-size:11.5px;font-weight:600;overflow:hidden}.sd-kpi-value{color:var(--text);letter-spacing:-.02em;font-size:18px;font-weight:800;line-height:1.15}.sd-kpi-delta{align-items:center;gap:3px;margin:0;font-size:11px;font-weight:650;display:inline-flex}.sd-kpi-delta.tone-up,.sd-kpi-delta.tone-down{color:#0f8f7f}.sd-kpi-delta.tone-alert{color:var(--danger)}.sd-charts-row{flex:1.1 1 0;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,.85fr) minmax(0,.7fr);align-items:stretch;gap:8px;min-width:0;min-height:0;display:grid}.sd-tables-row{flex:1 1 0;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,.85fr);align-items:stretch;gap:8px;min-width:0;min-height:0;display:grid}.sd-side-stack{grid-template-rows:minmax(0,1fr) auto;gap:8px;min-width:0;min-height:0;display:grid}.sd-card{border:1px solid var(--sd-border);background:#fff;border-radius:12px;flex-direction:column;min-width:0;height:100%;min-height:0;padding:10px 12px;display:flex;overflow:hidden;box-shadow:0 1px 2px #0f172a08}.sd-card-header{flex:none;justify-content:space-between;align-items:center;gap:8px;margin-bottom:6px;display:flex}.sd-donut-card .sd-card-header{align-items:center}.sd-donut-card .sd-card-header h2{white-space:nowrap}.sd-card-header h2{color:var(--text);white-space:nowrap;text-overflow:ellipsis;margin:0;font-size:13px;font-weight:750;overflow:hidden}.sd-card-header p{color:var(--text-muted);margin:1px 0 0;font-size:11px}.sd-select{border:1px solid var(--border);height:26px;color:var(--text);background:#fff;border-radius:8px;padding:0 8px;font-size:11px}.sd-chart-wrap{flex:1;width:100%;height:100%;min-height:0}.sd-tooltip{background:#fff;border:1px solid #e2e8f0;border-radius:10px;gap:2px;padding:8px 10px;display:grid;box-shadow:0 10px 24px #0f172a1a}.sd-tooltip strong{color:#64748b;font-size:12px;font-weight:650}.sd-tooltip span{color:var(--text);font-size:13px;font-weight:750}.sd-view-all-btn{border:1px solid var(--border);height:26px;color:var(--text-secondary);cursor:pointer;white-space:nowrap;background:#fff;border-radius:8px;padding:0 10px;font-size:11.5px;font-weight:650}.sd-view-all-btn:hover{border-color:var(--border-strong);background:#f8fafc}.sd-donut-body{flex:1;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);align-items:stretch;gap:8px;min-height:0;display:grid}.sd-gauge-body{flex:1;grid-template-rows:minmax(0,1fr) auto;gap:6px;min-height:0;display:grid}.sd-donut-chart,.sd-gauge-chart{height:100%;min-height:0;position:relative}.sd-donut-center,.sd-gauge-center{text-align:center;pointer-events:none;place-content:center;display:grid;position:absolute;inset:0}.sd-gauge-center{top:auto;bottom:10px;height:auto;inset:auto 0 10px}.sd-donut-center strong,.sd-gauge-center strong{color:var(--text);letter-spacing:-.02em;font-size:14px;font-weight:800}.sd-donut-center strong{font-size:13.5px}.sd-donut-center span,.sd-gauge-center span{color:var(--text-muted);font-size:11px}.sd-legend,.sd-status-legend{gap:4px;min-height:0;margin:0;padding:0;list-style:none;display:grid;overflow:auto}.sd-legend li{align-items:flex-start;gap:7px;display:flex}.sd-legend-dot{border-radius:999px;flex-shrink:0;width:8px;height:8px;margin-top:4px}.sd-legend-text{gap:0;min-width:0;display:grid}.sd-legend-text strong{color:var(--text);font-size:12px;font-weight:700;line-height:1.2}.sd-legend-text small{color:var(--text-muted);font-variant-numeric:tabular-nums;font-size:11px;line-height:1.25}.sd-status-legend{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;overflow:hidden}.sd-status-legend li{align-items:flex-start;gap:7px;display:flex}.sd-status-legend .sd-legend-dot{margin-top:5px}.sd-status-legend strong{color:var(--text);font-size:12px;font-weight:700;display:block}.sd-status-legend small{color:var(--text-muted);margin-top:1px;font-size:11px;display:block}.sd-link-btn{color:var(--sd-green);cursor:pointer;white-space:nowrap;background:0 0;border:0;padding:0;font-size:11.5px;font-weight:700}.sd-link-btn:hover{text-decoration:underline}.sd-table-wrap{flex:1;min-height:0;overflow:auto hidden}.sd-table{border-collapse:collapse;width:100%}.sd-table th,.sd-table td{text-align:center;color:var(--text-secondary);white-space:nowrap;border-bottom:1px solid #f1f5f9;padding:5px 6px;font-size:12px}.sd-table th{color:var(--text-muted);letter-spacing:.03em;font-size:10px;font-weight:700}.sd-table tbody tr:last-child td{border-bottom:0}.sd-table .num{text-align:center;font-variant-numeric:tabular-nums}.sd-invoice-link{color:#2563eb;cursor:pointer;background:0 0;border:0;padding:0;font-weight:650}.sd-invoice-link:hover{text-decoration:underline}.sd-status{border-radius:999px;align-items:center;padding:1px 7px;font-size:10.5px;font-weight:700;display:inline-flex}.sd-status.tone-paid{color:#0c7a6c;background:#e7f6f3}.sd-status.tone-partial{color:#b45309;background:#fff4e5}.sd-status.tone-pending,.sd-status.tone-unpaid{color:#b91c1c;background:#fee2e2}.sd-payment-cell,.sd-medicine-cell{align-items:center;gap:7px;display:inline-flex}.sd-payment-cell{color:#475569}.sd-medicine-icon{background:var(--sd-green-soft);width:22px;height:22px;color:var(--sd-green);border-radius:7px;flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}.sd-medicine-icon svg{display:block}.sd-medicine-icon.tone-teal{color:#0f8f7f;background:#e7f6f3}.sd-medicine-icon.tone-blue{color:#3b82f6;background:#e8f1ff}.sd-medicine-icon.tone-purple{color:#8b5cf6;background:#f1eaff}.sd-medicine-icon.tone-amber{color:#f59e0b;background:#fff4e5}.sd-medicine-icon.tone-rose{color:#ec4899;background:#ffe8ef}.sd-glance-list,.sd-activity-list{min-height:0;margin:0;padding:0;list-style:none;display:grid}.sd-glance-list{flex:1;align-content:start;gap:0}.sd-glance-list li{border-bottom:1px solid #f1f5f9;justify-content:space-between;gap:10px;padding:6px 0;font-size:12px;display:flex}.sd-glance-list li:last-child{border-bottom:0;padding-bottom:2px}.sd-glance-list span{color:#64748b}.sd-glance-list strong{color:var(--text);font-variant-numeric:tabular-nums;font-weight:750}.sd-activity-list{flex:1;gap:8px;min-height:0;overflow:hidden}.sd-activity-list li{grid-template-columns:26px 1fr;align-items:start;gap:8px;display:grid}.sd-activity-icon{color:#0f8f7f;background:#e7f6f3;border-radius:999px;flex-shrink:0;justify-content:center;align-items:center;width:26px;height:26px;display:inline-flex}.sd-activity-icon svg{display:block}.sd-activity-list li.tone-payment .sd-activity-icon{color:#3b82f6;background:#e8f1ff}.sd-activity-list li.tone-return .sd-activity-icon{color:#f59e0b;background:#fff4e5}.sd-activity-list strong{color:var(--text);font-size:12px;font-weight:700;display:block}.sd-activity-list p{color:#64748b;margin:1px 0;font-size:11px;line-height:1.3}.sd-activity-list small{color:var(--text-muted);font-size:11px}.sd-quick-grid{grid-template-columns:1fr 1fr;gap:6px;display:grid}.sd-quick-grid button{color:#0c7a6c;cursor:pointer;background:#f3fbf9;border:1px solid #d9efe9;border-radius:10px;place-items:center;gap:4px;min-height:52px;font-size:11.5px;font-weight:700;transition:background .15s,border-color .15s;display:grid}.sd-quick-grid button:hover{background:#e7f6f3;border-color:#b7e4dc}.sd-quick-grid button svg{display:block}.sd-empty,.sd-empty-cell{text-align:center;color:#64748b;margin:0;padding:16px 8px;font-size:12px}.sd-empty-cell{padding:16px 8px!important}.sd-placeholder{color:#64748b;text-align:center;background:#fff;border:1px dashed #dbe3ef;border-radius:14px;place-items:center;gap:6px;min-height:280px;padding:24px;display:grid}.sd-placeholder strong{color:var(--text);font-size:18px}.sd-placeholder p{max-width:360px;margin:0}@media (height<=860px){.sd-page .breadcrumbs,.sd-page .page-subtitle{display:none}}@media (width<=1180px){:is(.page-content:has(.sd-page),.main-column:has(.sd-page)){height:auto;max-height:none;overflow:visible}.sd-page{height:auto;overflow:visible}.sd-charts-row{flex:none;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) minmax(0,1fr);min-height:260px}.sd-glance-card{grid-column:1/-1}.sd-tables-row{flex:none;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);min-height:260px}.sd-side-stack{grid-column:1/-1;grid-template-rows:none;grid-template-columns:1.2fr 1fr}.sd-donut-chart,.sd-gauge-chart,.sd-chart-wrap{min-height:180px}}@media (width<=1100px){.sd-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.sd-charts-row,.sd-tables-row,.sd-side-stack{grid-template-columns:1fr}.sd-glance-card{grid-column:auto}.sd-donut-body{grid-template-columns:minmax(160px,.9fr) minmax(180px,1.1fr)}}@media (width<=720px){.sd-kpi-grid{grid-template-columns:1fr 1fr}.sd-status-legend,.sd-quick-grid{grid-template-columns:1fr}.sd-donut-body{grid-template-columns:1fr;justify-items:center}.sd-donut-chart{width:min(220px,100%)}.sd-legend{width:100%}}@media (width<=520px){.sd-kpi-grid{grid-template-columns:1fr}}.ns-page{--ns-green:var(--brand);--ns-green-dark:var(--brand-dark);--ns-green-soft:var(--brand-muted);--ns-border:#cbd5e1;--ns-text:var(--text);--ns-text-secondary:var(--text-secondary);--ns-text-muted:#64748b;--ns-placeholder:var(--text-muted);--ns-danger:var(--danger);height:100%;min-height:0;max-height:100%;color:var(--ns-text);flex-direction:column;flex:1;gap:8px;padding-bottom:8px;display:flex;overflow:hidden}.page-content:has(.ns-page){min-height:0;height:calc(100dvh - var(--topbar-h));max-height:calc(100dvh - var(--topbar-h));box-sizing:border-box;background:#f8fafc;flex-direction:column;flex:1;display:flex;overflow:hidden}.main-column:has(.ns-page){height:100dvh;max-height:100dvh;overflow:hidden}.ns-page .app-page-header{flex:none;margin-bottom:0}.ns-page .app-page-header .breadcrumbs{color:var(--ns-text-muted);margin-bottom:0;font-weight:500}.ns-page .app-page-header .breadcrumbs .current{color:var(--ns-green);font-weight:600}.ns-page .app-page-header h1{color:var(--ns-text);font-size:22px;font-weight:700;line-height:1.15}.ns-page .app-page-header .page-subtitle{color:var(--ns-text-muted);margin-top:2px;font-size:13px}.ns-page input::placeholder,.ns-page textarea::placeholder,.ns-page .autocomplete-control input::placeholder{color:var(--ns-placeholder);opacity:1}.ns-page .autocomplete-icon,.ns-page .autocomplete-chevron{color:var(--ns-green-dark)}.ns-page .ns-field input,.ns-page .ns-field select{color:var(--ns-text)}.ns-page .ns-field input[readonly]{color:var(--ns-text);font-weight:600}.ns-add-patient-btn:hover{background:var(--ns-green-soft);border-color:var(--ns-green);color:var(--ns-green-dark)}.ns-chip:hover:not(.active){border-color:var(--ns-green);color:var(--ns-green-dark);background:var(--ns-green-soft)}.ns-page .app-page-header-right{flex:none;justify-content:flex-end;margin-left:auto}.ns-header-meta{grid-template-columns:repeat(3,minmax(140px,180px));justify-content:end;align-items:end;gap:8px;margin-left:auto;display:grid}.ns-top-grid{flex:none;grid-template-columns:minmax(0,1.05fr) minmax(0,1.15fr);align-items:stretch;gap:8px;min-height:0;display:grid}.ns-card{border:1px solid var(--ns-border);background:#fff;border-radius:10px;min-width:0;padding:10px 12px;box-shadow:0 1px 2px #0f172a0a}.ns-card-header{justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px;display:flex}.ns-card-header h2{letter-spacing:.01em;color:var(--ns-green-dark);margin:0;font-size:15px;font-weight:700}.ns-card-header h2 span{color:var(--ns-text-muted);font-weight:600}.ns-add-patient-btn{height:30px;color:var(--ns-green-dark);border-color:var(--ns-green);gap:5px;padding:0 10px;font-size:12px;font-weight:600}.ns-patient-fields{grid-template-columns:minmax(0,1.2fr) minmax(140px,.8fr);align-items:end;gap:8px;min-width:0;display:grid}.ns-patient-fields.has-selected-patient{grid-template-columns:minmax(0,1fr) minmax(140px,.75fr)}.ns-patient-fields.has-not-found{grid-template-columns:1fr;align-items:stretch}.ns-patient-not-found{color:#9a6700;background:#fff8eb;border:1px solid #f0c36d;border-radius:8px;align-items:flex-start;gap:10px;padding:10px 12px;display:flex}.ns-patient-not-found svg{color:#d97706;flex-shrink:0;margin-top:1px}.ns-patient-not-found strong{color:#b45309;font-size:13px;font-weight:700;display:block}.ns-patient-not-found p{color:#78716c;margin:2px 0 0;font-size:12px}.ns-patient-create-grid{grid-template-columns:repeat(4,minmax(0,1fr));align-items:end;gap:8px;display:grid}.ns-patient-create-actions{justify-content:flex-end;display:flex}.ns-patient-create-grid .ns-input-wrap input.has-error{border-color:#dc2626;box-shadow:0 0 0 1px #dc262633}.ns-patient-fields.with-search{grid-template-columns:minmax(0,1fr) minmax(120px,.7fr);align-items:end;min-width:0}.ns-patient-search-field{z-index:40;min-width:0;max-width:100%;position:relative;overflow:visible}.ns-selected-patient-field{min-width:0;max-width:100%;position:relative;overflow:hidden}.ns-top-grid>.ns-card:first-child{z-index:6;overflow:visible}.ns-selected-patient{box-sizing:border-box;background:var(--ns-green-soft);border:1px solid #99f6e4;border-radius:10px;justify-content:space-between;align-items:center;gap:12px;width:100%;max-width:100%;min-height:32px;padding:6px 10px;display:flex;overflow:hidden}.ns-selected-patient-info{flex:auto;align-items:center;gap:10px;min-width:0;display:flex;overflow:hidden}.ns-selected-patient-info>div{min-width:0;overflow:hidden}.ns-selected-patient-avatar{width:28px;height:28px;color:var(--ns-green);background:#fff;border-radius:999px;flex-shrink:0;place-items:center;display:grid}.ns-selected-patient-info strong{color:var(--ns-text);white-space:nowrap;text-overflow:ellipsis;font-size:13px;font-weight:700;display:block;overflow:hidden}.ns-selected-patient-info small{color:var(--ns-text-muted);white-space:nowrap;text-overflow:ellipsis;margin-top:2px;font-size:11.5px;display:block;overflow:hidden}.ns-patient-clear-btn{border:1px solid var(--ns-green);height:28px;color:var(--ns-green-dark);cursor:pointer;background:#fff;border-radius:8px;flex-shrink:0;align-items:center;gap:4px;padding:0 10px;font-size:12px;font-weight:700;display:inline-flex}.ns-patient-clear-btn:hover{background:#f3fbf9}.ns-patient-search{align-items:center;display:flex;position:relative}.ns-patient-search>svg:first-child{color:var(--ns-green-dark);pointer-events:none;z-index:1;position:absolute;left:10px}.ns-patient-search input{border:1px solid var(--ns-border);width:100%;height:32px;color:var(--ns-text);background:#fff;border-radius:8px;outline:none;padding:0 32px 0 34px;font-size:12.5px;font-weight:500}.ns-patient-search input:focus{border-color:var(--ns-green);box-shadow:0 0 0 3px #0d948829}.ns-patient-clear{width:24px;height:24px;color:var(--ns-text-muted);cursor:pointer;background:0 0;border:0;border-radius:6px;place-items:center;display:grid;position:absolute;right:6px}.ns-patient-clear:hover{color:var(--ns-text-secondary);background:#f1f5f9}.ns-patient-results{z-index:80;border:1px solid var(--ns-border);background:#fff;border-radius:10px;max-height:220px;margin:0;padding:6px;list-style:none;position:absolute;top:calc(100% + 4px);left:0;right:0;overflow:auto;box-shadow:0 12px 28px #0f172a24}.ns-patient-results button{text-align:center;cursor:pointer;background:0 0;border:0;border-radius:8px;justify-content:space-between;align-items:center;gap:10px;width:100%;padding:8px 10px;display:flex}.ns-patient-results button:hover{background:var(--ns-green-soft)}.ns-patient-result-main{min-width:0;color:var(--ns-green-dark);align-items:flex-start;gap:8px;display:flex}.ns-patient-result-main strong{color:var(--ns-text);font-size:12.5px;font-weight:700;display:block}.ns-patient-result-main small,.ns-patient-results button>small{color:var(--ns-text-muted);margin-top:1px;font-size:11px;display:block}.ns-patient-empty{color:var(--ns-text-muted);text-align:center;padding:10px;font-size:12.5px}.ns-field{gap:4px;min-width:0;display:grid}.ns-field>span{color:var(--ns-text);font-size:11.5px;font-weight:600}.ns-field>span em{color:var(--danger);font-style:normal}.ns-field input,.ns-field select,.ns-qty-input{border:1px solid var(--ns-border);width:100%;height:32px;color:var(--ns-text);background:#fff;border-radius:8px;outline:none;padding:0 10px;font-size:12.5px;font-weight:500}.ns-field select{appearance:none;cursor:pointer;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='%230f766e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");background-position:right 8px center;background-repeat:no-repeat;padding-right:28px}.ns-field>.autocomplete{width:100%}.ns-field>.autocomplete .autocomplete-control{border-color:var(--ns-border);background:#fff;border-radius:8px;min-height:32px}.ns-field>.autocomplete .autocomplete-control:focus-within{border-color:var(--ns-green);box-shadow:0 0 0 3px #0d948829}.ns-field>.autocomplete .autocomplete-control input,.ns-field>.autocomplete .autocomplete-control input:focus{border-radius:0;flex:auto;width:auto;min-width:0;height:30px;box-shadow:none!important;background:0 0!important;border:none!important;outline:none!important;padding:0!important}.ns-patient-search input{padding-left:34px;padding-right:32px}.ns-field input:focus,.ns-field select:focus,.ns-qty-input:focus,.ns-medicine-search input:focus,.ns-round-off select:focus{border-color:var(--ns-green);box-shadow:0 0 0 3px #0d948829}.ns-input-wrap{align-items:center;display:flex;position:relative}.ns-input-wrap>svg{color:var(--ns-green-dark);pointer-events:none;position:absolute;left:10px}.ns-input-wrap input,.ns-input-wrap select{padding-left:30px}.ns-frequent-card{grid-template-rows:auto 1fr;min-height:0;display:grid}.ns-frequent-list{align-items:stretch;gap:8px;min-height:0;display:flex;overflow-x:auto}.ns-frequent-chip{border:1px solid var(--ns-border);text-align:center;cursor:pointer;background:#fff;border-radius:10px;flex:1 0 148px;justify-content:space-between;align-items:flex-start;gap:8px;min-width:148px;padding:8px 10px;transition:border-color .15s,background .15s;display:flex}.ns-frequent-chip:hover{border-color:var(--ns-green);background:var(--ns-green-soft)}.ns-frequent-text{gap:2px;min-width:0;display:grid}.ns-frequent-text strong{color:var(--ns-text);font-size:13px;font-weight:700;line-height:1.25}.ns-frequent-text small{color:var(--ns-text-muted);font-size:11px}.ns-frequent-batch{color:var(--ns-text-secondary);font-size:10.5px;line-height:1.3}.ns-frequent-add{background:var(--ns-green);color:#fff;border-radius:6px;flex-shrink:0;place-items:center;width:22px;height:22px;display:grid}.ns-search-block{flex:none;grid-template-columns:minmax(260px,1fr) auto;align-items:center;gap:10px;min-width:0;display:grid}.ns-medicine-search{align-items:center;min-width:0;display:flex;position:relative}.ns-medicine-search>svg:first-child{color:var(--ns-green-dark);pointer-events:none;z-index:1;position:absolute;left:11px}.ns-medicine-search input{border:1px solid var(--ns-border);width:100%;height:36px;color:var(--ns-text);background:#fff;border-radius:8px;padding:0 40px 0 34px;font-size:12.5px;font-weight:500}.ns-scan-icon-btn{width:28px;height:28px;color:var(--ns-green);cursor:pointer;z-index:1;background:0 0;border:0;border-radius:7px;place-items:center;display:grid;position:absolute;right:6px}.ns-scan-icon-btn:hover{background:var(--ns-green-soft)}.ns-search-results{z-index:30;border:1px solid var(--ns-border);background:#fff;border-radius:10px;max-height:220px;margin:0;padding:6px;list-style:none;position:absolute;top:calc(100% + 4px);left:0;right:0;overflow:auto;box-shadow:0 12px 28px #0f172a1f}.ns-search-results button{text-align:center;cursor:pointer;width:100%;color:var(--ns-green-dark);background:0 0;border:0;border-radius:8px;justify-content:space-between;align-items:center;gap:10px;padding:8px 10px;display:flex}.ns-search-results button:hover{background:var(--ns-green-soft)}.ns-search-results button.ns-search-oos{opacity:.72;cursor:default}.ns-search-results button.ns-search-oos:hover{background:#f8fafc}.ns-search-results button.ns-search-oos strong{color:var(--ns-text-muted)}.ns-search-oos-item{border-bottom:1px solid #eef2f6;flex-direction:column;gap:6px;padding:4px 4px 8px;display:flex}.ns-search-oos-item:last-child,.ns-search-oos-item>button.ns-search-oos{border-bottom:none}.ns-search-oos-label{color:#dc2626;margin-top:2px;font-size:11px;font-weight:600;display:block}.ns-search-results button.ns-search-branch-btn{border:1px solid var(--ns-green);background:var(--ns-green);color:#fff;text-align:center;cursor:pointer;border-radius:8px;justify-content:center;align-items:center;width:auto;max-width:100%;margin:0 6px 2px;padding:7px 12px;font-size:11px;font-weight:700;line-height:1.35;display:inline-flex;box-shadow:0 1px 2px #0f172a14}.ns-search-results button.ns-search-branch-btn:hover{background:var(--ns-green-dark);border-color:var(--ns-green-dark);color:#fff}.ns-search-results button.ns-search-branch-btn:focus-visible{outline:2px solid var(--ns-green);outline-offset:2px}.ns-branch-stock-modal{width:min(820px,100vw - 32px);max-height:min(80vh,720px)}.ns-branch-stock-body{padding-top:8px}.ns-branch-stock-table-wrap{border:1px solid #e5e7eb;border-radius:10px;max-height:min(52vh,420px);overflow:auto}.ns-branch-stock-table{border-collapse:collapse;width:100%;font-size:13px}.ns-branch-stock-table th,.ns-branch-stock-table td{text-align:center;white-space:nowrap;border-bottom:1px solid #eef2f6;padding:10px 12px}.ns-branch-stock-table th{color:#fff;letter-spacing:.02em;background:#0f766e;font-size:11px;font-weight:700;position:sticky;top:0}.ns-branch-stock-table tbody tr:last-child td{border-bottom:none}.ns-search-results strong{color:var(--ns-text);font-size:12.5px;font-weight:700;display:block}.ns-search-results small{color:var(--ns-text-muted);margin-top:1px;font-size:11px;display:block}.ns-category-row{scrollbar-width:none;flex-wrap:nowrap;flex:none;justify-content:flex-end;align-items:center;gap:6px;min-width:0;display:flex;overflow-x:auto}.ns-category-row::-webkit-scrollbar{display:none}.ns-chip{border:1px solid var(--ns-border);height:32px;color:var(--ns-text-secondary);cursor:pointer;white-space:nowrap;background:#fff;border-radius:999px;flex-shrink:0;padding:0 11px;font-size:12px;font-weight:600}.ns-chip.active{border-color:var(--ns-green);background:var(--ns-green);color:#fff}.ns-cart-payment-row{flex:auto;grid-template-columns:minmax(0,1fr) minmax(300px,360px);align-items:stretch;gap:8px;min-height:0;display:grid}.ns-cart-card{--ns-cart-head-h:36px;--ns-cart-row-h:64px;flex-direction:column;flex:auto;gap:0;min-height:160px;display:flex;overflow:hidden}.ns-cart-payment-row .ns-cart-card{min-width:0;height:100%}.ns-table-wrap{overscroll-behavior:contain;flex:auto;min-height:0;overflow:auto}.ns-table{border-collapse:collapse;width:100%;min-width:860px}.ns-cart-table{table-layout:fixed}.ns-cart-table .ns-col-index{width:4%}.ns-cart-table .ns-col-medicine{width:15%}.ns-cart-table .ns-col-batch{width:21%}.ns-cart-table .ns-col-expiry{width:10%}.ns-cart-table .ns-col-packs,.ns-cart-table .ns-col-units,.ns-cart-table .ns-col-disc{width:8%}.ns-cart-table .ns-col-disc-amt{width:11%}.ns-cart-table .ns-col-total{width:10%}.ns-cart-table .ns-col-action{width:7%}.ns-cart-table .ns-col-index-head{color:#fff;text-align:center}.ns-cart-table .ns-col-index-cell{text-align:center;font-variant-numeric:tabular-nums;color:var(--ns-text-secondary);font-weight:600}.ns-cart-table .ns-batch-cell{min-width:0}.ns-cart-table .ns-batch-select{max-width:100%}.ns-cart-table th,.ns-cart-table td{text-align:center;padding:4px 8px}.ns-cart-table th.num,.ns-cart-table td.num,.ns-cart-table th.action,.ns-cart-table td.action{text-align:center}.ns-cart-table .ns-qty-input{text-align:left;width:58px;margin:0;display:block}.ns-cart-table .ns-remove-btn{margin:0}.ns-table thead th{height:var(--ns-cart-head-h);box-sizing:border-box}.ns-table tbody tr{height:auto}.ns-table th,.ns-table td{text-align:center;color:var(--ns-text-secondary);vertical-align:middle;border-bottom:1px solid #e2e8f0;padding:4px 6px;font-size:12px}.ns-table th{color:#fff;letter-spacing:.03em;white-space:nowrap;background:var(--ns-green-dark);z-index:2;border-bottom:1px solid #ffffff1f;border-right:1px solid #ffffff1f;font-size:11px;font-weight:700;position:sticky;top:0}.ns-table th:last-child{border-right:none}.ns-table td strong{color:var(--ns-text);font-size:12.5px;font-weight:700;display:block}.ns-table td small{color:var(--ns-text-muted);margin-top:1px;font-size:10.5px;display:block}.ns-table .num{text-align:center;font-variant-numeric:tabular-nums;white-space:nowrap}.ns-table .num.strong{color:var(--ns-text);font-weight:700}.ns-batch-cell{gap:3px;min-width:190px;display:grid}.ns-batch-select,.ns-batch-cell .autocomplete{width:100%;max-width:320px}.ns-batch-cell .autocomplete-control{border:1px solid var(--ns-border);background:#fff;border-radius:7px;height:30px;min-height:30px;padding:0 8px}.ns-batch-cell .autocomplete-control:focus-within{border-color:var(--ns-green);box-shadow:0 0 0 3px #0d948829}.ns-batch-cell .autocomplete-control input,.ns-batch-cell .autocomplete-control input:focus{height:28px;min-height:0;color:var(--ns-text);border-radius:0;font-size:11.5px;font-weight:600;box-shadow:none!important;background:0 0!important;border:none!important;outline:none!important;padding:0!important}.ns-batch-cell small{color:var(--ns-text-muted);font-size:10.5px}.ns-batch-cell small.ns-batch-avail{color:#2563eb;font-weight:700}.ns-batch-cell .ns-batch-loose{color:#dc2626;font-weight:700}.ns-cart-empty-row,.ns-cart-empty-row td.ns-empty{height:calc(var(--ns-cart-row-h) * 3)}.ns-cart-empty-row td.ns-empty{border-bottom:none}.ns-empty{font-weight:500;text-align:center!important;vertical-align:middle!important;color:var(--ns-text-muted)!important;padding:18px 8px!important}.ns-empty-inline,.ns-search-empty{color:var(--ns-text-muted);margin:0;padding:8px 4px;font-size:.85rem}.ns-search-empty{padding:12px 14px;list-style:none}.ns-clear-btn{color:var(--ns-danger);cursor:pointer;background:0 0;border:0;align-items:center;gap:5px;padding:0;font-size:12px;font-weight:700;display:inline-flex}.ns-clear-btn:disabled{opacity:.45;cursor:not-allowed}.ns-qty-input{text-align:right;border-radius:7px;width:58px;height:28px;padding:0 6px}.ns-remove-btn{width:26px;height:26px;color:var(--ns-danger);cursor:pointer;background:0 0;border:0;border-radius:7px;place-items:center;margin:0 auto;display:grid}.ns-remove-btn:hover{background:#fee2e2}.ns-totals-strip{flex-wrap:wrap;flex-shrink:0;justify-content:flex-end;align-items:stretch;gap:8px;margin-top:12px;padding-bottom:4px;display:flex}.ns-payment-card .ns-payment-totals{justify-content:flex-start;margin-top:0;margin-bottom:8px;padding-bottom:0}.ns-payment-card .ns-total-box:not(.ns-net-box):not(.ns-amount-due-box):not(.ns-margin-box){box-shadow:none;background:0 0;border:none;border-radius:0;justify-content:space-between;align-items:center;gap:10px;width:100%;padding:3px 0;display:flex}.ns-payment-card .ns-total-box:not(.ns-net-box):not(.ns-amount-due-box):not(.ns-margin-box)>span{color:var(--ns-text-secondary);font-size:12px;font-weight:600}.ns-payment-card .ns-total-box:not(.ns-net-box):not(.ns-amount-due-box):not(.ns-margin-box)>strong{font-size:13px}.ns-margin-box{border-color:var(--ns-border);background:#f8fafc}.ns-total-box{border:1px solid var(--ns-border);white-space:nowrap;background:#f8fafc;border-radius:8px;flex:none;align-content:start;gap:2px;width:max-content;max-width:100%;padding:6px 10px;display:grid}.ns-total-box>span{color:var(--ns-text);font-size:11px;font-weight:600}.ns-total-box>strong{color:var(--ns-text);font-variant-numeric:tabular-nums;font-size:14px;font-weight:700}.ns-rounding-box{width:max-content}.ns-overall-disc-box .ns-round-amount{width:72px;min-width:72px}.ns-overall-disc-box.is-locked .ns-round-amount,.ns-cart-table .ns-qty-input:disabled{opacity:.65;cursor:not-allowed;background:#f1f5f9}.ns-rounding-box .ns-round-off{align-items:center;gap:6px;display:flex}.ns-round-autocomplete{flex:none;width:92px;min-width:92px}.ns-round-autocomplete .autocomplete-control{border-color:var(--ns-border);background:#fff;border-radius:7px;height:26px;min-height:26px;padding:0 4px 0 6px}.ns-round-autocomplete .autocomplete-control:focus-within{border-color:var(--ns-green);box-shadow:0 0 0 3px #0d948829}.ns-round-autocomplete .autocomplete-icon{display:none}.ns-round-autocomplete .autocomplete-control input,.ns-round-autocomplete .autocomplete-control input:focus{height:24px;color:var(--ns-text);border-radius:0;font-size:12px;box-shadow:none!important;background:0 0!important;border:none!important;outline:none!important;padding:0!important}.ns-round-autocomplete .autocomplete-chevron{width:18px;height:18px}.ns-round-amount{border:1px solid var(--ns-border);width:72px;height:26px;color:var(--ns-text);text-align:right;font-variant-numeric:tabular-nums;background:#fff;border-radius:7px;padding:0 6px;font-size:12.5px;font-weight:700}.ns-round-amount:focus{border-color:var(--ns-green);outline:none;box-shadow:0 0 0 3px #0d948829}.ns-net-box{background:var(--ns-green-soft);border-color:#99f6e4;align-content:start}.ns-net-box>span{color:var(--ns-green-dark)}.ns-net-box>strong{color:var(--ns-green-dark);letter-spacing:-.02em;font-size:16px;font-weight:800;line-height:1.2}.ns-amount-due-box{background:#fef2f2;border-color:#fca5a5;box-shadow:0 0 0 1px #dc262614}.ns-amount-due-box>span{color:#b91c1c}.ns-amount-due-box>strong{color:#dc2626;letter-spacing:-.02em;font-size:16px;font-weight:800;line-height:1.2}.ns-payment-card{flex:none;min-height:0;overflow:visible}.ns-cart-payment-row .ns-payment-card{flex-direction:column;min-width:0;height:100%;display:flex;overflow:auto}.ns-cart-payment-row .ns-payment-totals{grid-template-columns:1fr;justify-content:stretch;gap:4px;margin-bottom:8px;padding-bottom:0;display:grid}.ns-cart-payment-row .ns-total-box,.ns-cart-payment-row .ns-rounding-box{width:auto;max-width:none}.ns-payment-highlight-row{grid-column:1/-1;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;display:grid}.ns-payment-highlight-row .ns-total-box{white-space:normal;width:100%;min-width:0}.ns-payment-highlight-row .ns-total-box>span{font-size:10.5px;line-height:1.25}.ns-payment-highlight-row .ns-total-box>strong{font-size:14px}.ns-cart-payment-row .ns-payment-grid{flex:auto;grid-template-columns:1fr 1fr}.ns-cart-payment-row .ns-payment-summary,.ns-cart-payment-row .ns-credit-hint{grid-column:1/-1}.ns-cart-payment-row .ns-payment-actions{grid-column:1/-1;grid-template-columns:1fr 1fr;display:grid}.ns-cart-payment-row .ns-proceed-btn{min-width:0}.ns-payment-grid{grid-template-columns:repeat(5,minmax(0,1fr)) auto;align-items:end;gap:8px;display:grid}.ns-payment-actions{flex-shrink:0;align-items:center;gap:8px;display:flex}.ns-payment-summary{flex-wrap:wrap;grid-column:1/-1;justify-content:flex-end;align-items:stretch;gap:8px;display:flex}.ns-payment-summary .ns-amount-due{flex:0 168px;min-width:148px}.ns-amount-due{background:var(--ns-green-soft);text-align:center;border:1px solid #99f6e4;border-radius:10px;place-content:center;gap:2px;min-height:58px;padding:8px 12px;display:grid}.ns-amount-due span{color:var(--ns-green-dark);font-size:11.5px;font-weight:600}.ns-amount-due strong{color:var(--ns-green-dark);letter-spacing:-.02em;font-size:18px;font-weight:800}.ns-credit-amount{background:#fff7ed;border-color:#fdba74}.ns-credit-amount span,.ns-credit-amount strong{color:#c2410c}.ns-credit-hint{color:#9a3412;background:#fff7ed;border:1px solid #fed7aa;border-radius:8px;grid-column:1/-1;margin:0;padding:8px 10px;font-size:12.5px;font-weight:600}.ns-payment-actions .btn{text-align:center;justify-content:center;align-items:center;gap:6px;height:32px;min-height:32px;padding:0 12px;font-size:13px;font-weight:700;line-height:1;display:inline-flex}.btn-secondary.ns-draft-btn,.btn-secondary.ns-draft-btn:disabled{border-color:var(--brand);color:var(--brand-dark);opacity:1;justify-content:center;font-weight:700}.btn-secondary.ns-draft-btn:hover:not(:disabled){border-color:var(--brand-dark);color:var(--brand-dark)}.ns-proceed-btn{background:var(--ns-green);color:#fff;min-width:180px;box-shadow:0 2px 6px #0d948847}.ns-proceed-btn:hover:not(:disabled){background:var(--ns-green-dark)}@media (width<=1400px){.ns-search-block{grid-template-columns:minmax(220px,.9fr) minmax(0,1.2fr)}.ns-category-row{justify-content:flex-start}}@media (width<=1280px){.main-column:has(.ns-page){height:auto;max-height:none;overflow:visible}.page-content:has(.ns-page){height:auto;max-height:none;overflow:auto}.ns-page{height:auto;max-height:none;overflow:visible}.ns-cart-payment-row{flex:0 auto;grid-template-columns:1fr}.ns-cart-card{flex:0 auto;min-height:0}.ns-table-wrap{max-height:min(50vh,420px)}.ns-header-meta{grid-template-columns:repeat(3,minmax(120px,1fr))}.ns-top-grid,.ns-search-block{grid-template-columns:1fr}.ns-category-row{flex-wrap:wrap;justify-content:flex-start}.ns-payment-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ns-payment-actions{grid-column:1/-1;justify-content:flex-end}.ns-payment-summary{justify-content:stretch}.ns-payment-summary .ns-amount-due{flex:calc(50% - 4px);min-width:0}.ns-amount-due{grid-column:auto}}@media (width<=1100px){.ns-header-meta{grid-template-columns:repeat(2,minmax(130px,1fr))}}@media (width<=900px){.ns-header-meta,.ns-patient-fields,.ns-patient-fields.with-search,.ns-patient-fields.has-not-found,.ns-patient-create-grid,.ns-payment-grid{grid-template-columns:1fr}.ns-payment-summary{flex-direction:column}.ns-payment-summary .ns-amount-due{flex:auto;width:100%}.ns-amount-due{grid-column:auto}.ns-payment-actions{flex-wrap:wrap;grid-column:1/-1;justify-content:stretch}.ns-payment-actions .btn{flex:100%}}.pt-page{min-height:calc(100vh - var(--topbar-h) - (var(--page-pad-y) * 2));flex-direction:column;gap:14px;display:flex}.pt-kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;display:grid}.pt-kpi-card{border:1px solid var(--border);background:#fff;border-radius:12px;flex-direction:column;gap:4px;padding:14px 16px;display:flex;box-shadow:0 1px 2px #0f172a0a}.pt-kpi-top{justify-content:flex-end;display:flex}.pt-kpi-icon{border-radius:10px;justify-content:center;align-items:center;width:34px;height:34px;display:inline-flex}.pt-kpi-icon.tone-patients{color:#0f8f7f;background:#e6f7f4}.pt-kpi-icon.tone-sales{color:#4f46e5;background:#eef2ff}.pt-kpi-icon.tone-outstanding{color:#ea580c;background:#fff7ed}.pt-kpi-icon.tone-returns{background:var(--danger-bg);color:#dc2626}.pt-kpi-label{color:#64748b;font-size:.82rem}.pt-kpi-value{color:var(--text);letter-spacing:-.02em;font-size:1.35rem;font-weight:700}.pt-kpi-card small{color:var(--text-muted);font-size:.75rem}.pt-split{flex:1;grid-template-columns:1fr;gap:14px;min-height:0;display:grid}.pt-split.is-detail-open{grid-template-columns:minmax(0,1fr) minmax(300px,360px)}.pt-panel{border:1px solid var(--border);background:#fff;border-radius:12px;min-width:0;overflow:hidden;box-shadow:0 1px 2px #0f172a0a}.pt-list-panel{flex-direction:column;min-height:0;display:flex}.pt-search{flex:240px;min-width:200px;position:relative}.pt-search input{width:100%;height:36px;font:inherit;color:var(--text);background:#fff;border:1px solid #dbe3ee;border-radius:8px;padding:0 34px 0 32px}.pt-search-spinner{border:2px solid #cbd5e1;border-top-color:#0f8f7f;border-radius:50%;width:12px;height:12px;margin-top:-6px;animation:.7s linear infinite pt-spin;position:absolute;top:50%;right:10px}@keyframes pt-spin{to{transform:rotate(360deg)}}.pt-toolbar select{height:36px;color:var(--text-secondary);font:inherit;background:#fff;border:1px solid #dbe3ee;border-radius:8px;padding:0 10px}.pt-table-wrap{flex:1;min-height:280px;overflow:auto}.pt-table{border-collapse:collapse;width:100%}.pt-table th,.pt-table td{text-align:center;vertical-align:middle;color:var(--text-secondary);white-space:nowrap;border-bottom:1px solid #eef2f7;padding:12px 14px;font-size:.875rem}.pt-table th{color:#64748b;z-index:1;background:#fafbfc;font-weight:600;position:sticky;top:0}.pt-table td.num,.pt-table th.num{text-align:center;font-variant-numeric:tabular-nums}.pt-table tbody tr{cursor:pointer;transition:background .15s}.pt-table tbody tr:hover,.pt-table tbody tr.is-selected{background:#f3fbf9}.pt-avatar{border-radius:999px;flex:none;justify-content:center;align-items:center;width:34px;height:34px;font-size:.72rem;font-weight:700;display:inline-flex}.pt-avatar.lg{width:52px;height:52px;font-size:.95rem}.pt-avatar.tone-teal{color:#0f8f7f;background:#dcf5f0}.pt-avatar.tone-blue{color:#2563eb;background:#dbeafe}.pt-avatar.tone-violet{color:#7c3aed;background:#ede9fe}.pt-avatar.tone-amber{color:#c2410c;background:#ffedd5}.pt-avatar.tone-rose{color:#e11d48;background:#ffe4e6}.pt-table .is-outstanding{color:#dc2626;font-weight:600}.pt-table .is-clear{color:#16a34a;font-weight:600}.pt-status{border-radius:999px;align-items:center;height:24px;padding:0 10px;font-size:.75rem;font-weight:600;display:inline-flex}.pt-status.is-active{color:#0f8f7f;background:#dcf5f0}.pt-status.is-inactive{color:#64748b;background:#f1f5f9}.pt-table td.actions{gap:4px;display:flex}.pt-icon-btn{color:#64748b;cursor:pointer;background:0 0;border:none;border-radius:8px;justify-content:center;align-items:center;width:30px;height:30px;display:inline-flex}.pt-icon-btn:hover{color:var(--text);background:#f1f5f9}.pt-empty,.pt-detail-loading,.pt-empty-inline{text-align:center;color:var(--text-muted);padding:28px 12px}.pt-empty-inline{text-align:left;padding:8px 0}.pt-pagination{color:#64748b;border-top:1px solid #eef2f7;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:10px 14px;font-size:.82rem;display:flex}.pt-pagination-controls{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.pt-pagination-controls label{align-items:center;gap:8px;display:inline-flex}.pt-pagination-controls select{background:#fff;border:1px solid #dbe3ee;border-radius:6px;height:30px}.pt-page-buttons{align-items:center;gap:4px;display:inline-flex}.pt-page-buttons button{min-width:30px;height:30px;color:var(--text-secondary);cursor:pointer;background:#fff;border:1px solid #dbe3ee;border-radius:6px}.pt-page-buttons button.is-active{color:#fff;background:#0f8f7f;border-color:#0f8f7f}.pt-page-buttons button:disabled{opacity:.45;cursor:not-allowed}.pt-detail-panel{max-height:calc(100vh - var(--topbar-h) - 180px);flex-direction:column;gap:14px;padding:16px;display:flex;overflow:auto}.pt-detail-header{justify-content:space-between;align-items:flex-start;gap:8px;display:flex}.pt-detail-header h2{color:var(--text);margin:0 0 6px;font-size:1.15rem}.pt-detail-profile{align-items:flex-start;gap:12px;display:flex}.pt-detail-contacts{flex-direction:column;gap:6px;min-width:0;display:flex}.pt-detail-contacts p{color:#475569;word-break:break-word;align-items:flex-start;gap:8px;margin:0;font-size:.85rem;display:flex}.pt-detail-contacts svg{color:var(--text-muted);flex:none;margin-top:2px}.pt-detail-stats{grid-template-columns:1fr 1fr;gap:8px;display:grid}.pt-detail-stats div{background:#f8fafc;border:1px solid #eef2f7;border-radius:10px;flex-direction:column;gap:4px;padding:10px;display:flex}.pt-detail-stats span{color:var(--text-muted);font-size:.72rem}.pt-detail-stats strong{color:var(--text);font-size:.95rem}.pt-detail-actions{grid-template-columns:1fr 1fr;gap:8px;display:grid}.pt-detail-actions .btn{justify-content:center;padding:8px 10px;font-size:.82rem}.pt-recent-sales h3{color:var(--text);margin:0 0 10px;font-size:.95rem}.pt-recent-sales ul{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.pt-recent-sales li{background:#fff;border:1px solid #eef2f7;border-radius:10px;justify-content:space-between;align-items:center;gap:10px;padding:10px;display:flex}.pt-recent-sales strong{color:var(--text);font-size:.85rem;display:block}.pt-recent-sales small{color:var(--text-muted);font-size:.75rem}.pt-recent-sales li>span{color:var(--text);font-variant-numeric:tabular-nums;font-weight:600}.pt-link-btn{color:#0f8f7f;width:100%;height:36px;font:inherit;cursor:pointer;background:#fff;border:1px solid #dbe3ee;border-radius:8px;margin-top:10px;font-weight:600}.pt-link-btn:hover{background:#f3fbf9}.pt-create-modal,.pt-create-modal .modal-dialog,.modal-dialog.pt-create-modal{width:min(640px,100%)}.pt-create-grid{grid-template-columns:1fr 1fr;gap:12px;display:grid}.pt-create-grid label{color:#64748b;flex-direction:column;gap:6px;font-size:.82rem;display:flex}.pt-create-grid label.span-2{grid-column:1/-1}.pt-create-grid input,.pt-create-grid select{height:36px;font:inherit;color:var(--text);border:1px solid #dbe3ee;border-radius:8px;padding:0 10px}@media (width<=1100px){.pt-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pt-split.is-detail-open{grid-template-columns:1fr}.pt-detail-panel{max-height:none}}@media (width<=700px){.pt-kpi-grid,.pt-create-grid,.pt-detail-stats,.pt-detail-actions{grid-template-columns:1fr}.pt-create-grid label.span-2{grid-column:auto}}.pt-add-modal{width:min(920px,100%);max-height:calc(100vh - 40px)}.pt-add-body{flex-direction:column;gap:0;display:flex;overflow:auto;padding:0!important}.pt-add-section{border-bottom:1px solid #eef2f7;padding:16px 20px 4px}.pt-add-section:last-of-type{border-bottom:none}.pt-add-section h3{color:var(--brand);margin:0 0 12px;font-size:.95rem;font-weight:700}.pt-add-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:12px;display:grid}.pt-add-grid.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.pt-add-grid.cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.pt-contact-address-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.2fr) auto;align-items:end}.pt-add-grid label{color:#64748b;flex-direction:column;gap:6px;min-width:0;font-size:.8rem;display:flex}.pt-add-grid label.span-2{grid-column:span 2}.pt-add-grid label em{color:#dc2626;font-style:normal}.pt-add-grid label>input,.pt-add-grid label>select,.pt-address-search>input,.pt-mobile-row>input,.pt-mobile-row>select,.pt-add-grid .app-date-input-field{height:38px;font:inherit;color:var(--text);background:#fff;border:1px solid #dbe3ee;border-radius:8px;padding:0 10px}.pt-add-grid .app-date-input-field{padding:0 40px 0 10px}.pt-add-grid label>input[readonly]{color:#475569;cursor:default;background:#f8fafc}.pt-add-grid .autocomplete,.pt-add-grid .app-date-input,.pt-mobile-row .autocomplete{width:100%}.pt-add-grid .autocomplete-control,.pt-mobile-row .autocomplete-control{background:#fff;border:1px solid #dbe3ee;border-radius:8px;height:38px;min-height:38px}.pt-add-grid .autocomplete-control:focus-within,.pt-mobile-row .autocomplete-control:focus-within{border-color:var(--brand);box-shadow:0 0 0 3px #0d94881f}.pt-add-grid .autocomplete-control input,.pt-add-grid .autocomplete-control input:focus,.pt-mobile-row .autocomplete-control input,.pt-mobile-row .autocomplete-control input:focus{border-radius:0;flex:auto;width:auto;min-width:0;height:36px;min-height:0;box-shadow:none!important;background:0 0!important;border:none!important;outline:none!important;padding:0!important}.pt-add-grid label>input:focus,.pt-add-grid label>select:focus,.pt-address-search>input:focus,.pt-mobile-row>input:focus,.pt-mobile-row>select:focus,.pt-add-grid .app-date-input-field:focus{border-color:var(--brand);outline:none;box-shadow:0 0 0 3px #0d94881f}.pt-field-hint{color:var(--text-muted);font-size:.72rem}.pt-field-error{color:#dc2626;font-size:.72rem}.pt-mobile-row{grid-template-columns:68px minmax(0,1fr);gap:8px;display:grid}.pt-mobile-row>.autocomplete .autocomplete-control{gap:2px;padding:0 6px}.pt-address-row{grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px;margin-bottom:12px;display:grid}.pt-address-search-field{color:#64748b;flex-direction:column;gap:6px;min-width:0;font-size:.8rem;display:flex}.pt-address-search{position:relative}.pt-address-search input{width:100%}.pt-address-results{z-index:5;border:1px solid var(--border);background:#fff;border-radius:10px;max-height:180px;margin:0;padding:6px;list-style:none;position:absolute;top:calc(100% + 4px);left:0;right:0;overflow:auto;box-shadow:0 12px 28px #0f172a1f}.pt-address-results button{text-align:center;cursor:pointer;width:100%;color:var(--text-secondary);font:inherit;background:0 0;border:none;border-radius:8px;padding:8px 10px}.pt-address-results button:hover{background:#f3fbf9}.pt-address-empty{color:var(--text-muted);padding:10px;font-size:.82rem}.pt-add-address-btn{white-space:nowrap;height:38px;min-height:38px;color:var(--brand);gap:3px;padding:0 8px;font-size:11.5px;font-weight:600}.pt-add-address-btn:hover:not(:disabled){color:var(--brand-dark)}.pt-new-address-card{border:1px solid var(--border);background:#f8fafc;border-radius:10px;margin-bottom:12px;padding:12px}.pt-new-address-actions{justify-content:flex-end;gap:8px;display:flex}.pt-add-note{color:var(--brand-dark);background:#e6f7f4;border-radius:10px;align-items:flex-start;gap:8px;margin:4px 20px 8px;padding:10px 12px;font-size:.82rem;display:flex}.pt-add-note svg{flex:none;margin-top:1px}.pt-add-body .modal-footer{background:#fff;margin-top:8px;position:sticky;bottom:0}@media (width<=800px){.pt-add-grid,.pt-add-grid.cols-2,.pt-add-grid.cols-4,.pt-contact-address-grid,.pt-address-row{grid-template-columns:1fr}.pt-add-grid label.span-2{grid-column:auto}}.pt-page-with-detail .pt-split{grid-template-columns:minmax(0,1fr) minmax(300px,360px);align-items:start;gap:14px;display:grid}.pt-split>.table-section{min-width:0}.po-table tbody tr.is-selected{background:#f3fbf9}.po-table .amount-cell.is-outstanding{color:#dc2626;font-weight:600}.po-table .amount-cell.is-clear{color:#16a34a;font-weight:600}.pt-patient-cell{align-items:center;gap:10px;min-width:180px;display:flex}.pt-patient-cell strong{color:var(--text);font-weight:600;display:block}.pt-patient-cell small{color:var(--text-muted);font-size:.75rem}.pt-split .po-table th,.pt-split .po-table td,.pt-split .po-list-table .amount-col,.pt-split .po-list-table .amount-cell{text-align:center}.pt-split .pt-patient-cell,.pt-split .row-actions{justify-content:center}@media (width<=1100px){.pt-page-with-detail .pt-split{grid-template-columns:1fr}}.pt-change-address-row{flex-wrap:wrap;align-items:center;gap:10px;margin-top:8px;display:flex}.sh-page{--sh-green:#0f8f7f;--sh-border:var(--border-light);gap:var(--content-gap,14px);flex-direction:column;display:flex}.sh-page .btn-primary{background:var(--sh-green)}.sh-page .btn-primary:hover{background:#0c7a6c}.sh-page .status-tab.active{background:var(--sh-green);color:#fff}.sh-kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;display:grid}.sh-kpi-card{border:1px solid var(--sh-border);background:#fff;border-radius:12px;justify-content:space-between;align-items:flex-start;gap:12px;padding:14px 16px;display:flex;box-shadow:0 1px 2px #0f172a08}.sh-kpi-copy{gap:2px;min-width:0;display:grid}.sh-kpi-icon{border-radius:999px;flex-shrink:0;justify-content:center;align-items:center;width:36px;height:36px;display:inline-flex}.sh-kpi-icon.tone-sales{color:#0f8f7f;background:#e7f6f3}.sh-kpi-icon.tone-paid{color:#3b82f6;background:#e8f1ff}.sh-kpi-icon.tone-outstanding{color:#f59e0b;background:#fff4e5}.sh-kpi-icon.tone-returns{color:#8b5cf6;background:#f3e8ff}.sh-kpi-label{color:#64748b;font-size:13px;font-weight:600}.sh-kpi-value{color:var(--text);letter-spacing:-.02em;font-size:1.35rem;font-weight:800}.sh-kpi-card small{color:var(--text-muted);font-size:12px}.sh-table-card{border:1px solid var(--sh-border);background:#fff;border-radius:12px;flex-direction:column;min-height:0;display:flex;overflow:hidden;box-shadow:0 1px 2px #0f172a08}.sh-table-wrap{flex:auto;min-height:0;overflow:auto}.sh-table{border-collapse:separate;border-spacing:0;width:100%;min-width:1680px}.sh-table th,.sh-table td{text-align:center;vertical-align:middle;color:var(--text-secondary);white-space:nowrap;background:#fff;border-bottom:1px solid #eef2f7;padding:12px 14px;font-size:13px}.sh-table th{color:#64748b;z-index:1;background:#fafbfc;font-weight:650;position:sticky;top:0}.sh-table th.sh-col-sticky-left,.sh-table td.sh-col-sticky-left{z-index:3;background:#fff;position:sticky}.sh-table th.sh-col-sticky-left{z-index:5;top:0;background:var(--brand-dark)!important;color:#fff!important}.sh-table th.sh-col-sticky-right,.sh-table td.sh-col-sticky-right{z-index:3;background:#fff;position:sticky;right:0}.sh-table th.sh-col-sticky-right{z-index:5;top:0;box-shadow:-4px 0 10px -4px #0f172a2e;background:var(--brand-dark)!important;color:#fff!important}.sh-table td.sh-col-sticky-right{box-shadow:-4px 0 10px -4px #0f172a24}.sh-table .sh-col-invoice{width:148px;min-width:148px;left:0}.sh-table.has-sticky-invoice .sh-col-patient{left:148px}.sh-table:not(.has-sticky-invoice) .sh-col-patient{left:0}.sh-table .sh-col-patient{width:168px;min-width:168px;box-shadow:4px 0 10px -4px #0f172a29}.sh-table:not(.has-sticky-patient) .sh-col-invoice{box-shadow:4px 0 10px -4px #0f172a29}.sh-table.has-sticky-patient .sh-col-invoice{box-shadow:none}.sh-table .sh-col-actions{width:118px;min-width:118px}.sh-table tbody tr:hover td.sh-col-sticky-left,.sh-table tbody tr:hover td.sh-col-sticky-right{background:#f8fafc}.sh-table tbody tr.is-cancelled-row td,.sh-table tbody tr.is-cancelled-row td.sh-col-sticky-left,.sh-table tbody tr.is-cancelled-row td.sh-col-sticky-right{background:#fcc}.sh-table tbody tr.is-cancelled-row:hover td,.sh-table tbody tr.is-cancelled-row:hover td.sh-col-sticky-left,.sh-table tbody tr.is-cancelled-row:hover td.sh-col-sticky-right{background:#ffbdbd}.sh-invoice-link{color:var(--sh-green);cursor:pointer;background:0 0;border:0;padding:0;font-weight:700}.sh-invoice-link:hover{text-decoration:underline}.sh-patient-cell{gap:2px;min-width:140px;display:grid}.sh-datetime-cell{white-space:nowrap;flex-direction:column;gap:2px;line-height:1.35;display:flex}.sh-datetime-cell small{color:var(--text-muted);font-size:12px}.sh-patient-cell strong{color:var(--text);font-weight:700}.sh-patient-cell small{color:var(--text-muted);font-size:12px}.sh-amount{color:var(--text);font-weight:650}.sh-amount.is-due{color:#ea580c;font-weight:750}.sh-amount.is-paid{color:#15803d;font-weight:750}.sh-amount.is-refund{color:#dc2626;font-weight:700}.sh-muted{color:var(--text-muted)}.sh-badge{border:1px solid #0000;border-radius:999px;align-items:center;height:24px;padding:0 10px;font-size:12px;font-weight:700;display:inline-flex}.sh-badge.paid{color:#15803d;background:#e7f8ef}.sh-badge.partial{color:#c2410c;background:#fff4e5}.sh-badge.unpaid,.sh-badge.cancelled{color:#dc2626;background:#fee2e2}.sh-badge.draft{color:#475569;background:#f1f5f9}.sh-badge.returned{color:#7c3aed;background:#f3e8ff}.sh-badge.sale-completed{color:#16a34a;background:#fff;border-color:#86efac}.sh-method{color:var(--text-secondary);align-items:center;gap:8px;display:inline-flex}.sh-method .payment-method-logo{object-fit:contain;background:#fff;border-radius:4px;flex-shrink:0;width:18px;height:18px;display:block}.sh-method .payment-method-logo-split{width:26px;height:26px;margin:-4px}.sh-actions{align-items:center;gap:2px;display:inline-flex}.sh-actions .sh-pay-btn{align-items:center;gap:4px;min-height:28px;margin-left:4px;padding:0 10px;font-size:12px;line-height:1;display:inline-flex}.sh-cancel-credit-btn{color:#fff;cursor:pointer;background:#ef4444;border:none;border-radius:999px;flex-shrink:0;justify-content:center;align-items:center;width:22px;height:22px;margin-left:6px;padding:0;transition:background .12s,transform .12s;display:inline-flex}.sh-cancel-credit-btn:hover{background:#dc2626}.sh-cancel-credit-btn:active{transform:scale(.96)}.sh-cancel-credit-btn:focus-visible{outline-offset:2px;outline:2px solid #fecaca}.sh-row-menu{position:relative}.sh-empty{color:var(--text-muted);text-align:center!important;padding:36px 14px!important}.sh-pagination{border-top:1px solid #eef2f7;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;display:flex}.sh-pagination-right{align-items:center;gap:16px;display:inline-flex}.sh-rows{color:#64748b;align-items:center;gap:8px;font-size:13px;display:inline-flex}.sh-rows select{border:1px solid var(--border);height:32px;color:var(--text);background:#fff;border-radius:8px;padding:0 8px}.sh-page-numbers{align-items:center;gap:4px;display:inline-flex}.sh-page-numbers .page-btn{color:#475569;background:0 0;border:1px solid #0000;border-radius:8px;justify-content:center;align-items:center;min-width:32px;height:32px;padding:0 8px;font-size:13px;font-weight:650;display:inline-flex}.sh-page-numbers .page-btn:hover:not(:disabled){border-color:var(--border);background:#f8fafc}.sh-page-numbers .page-btn.active{background:var(--sh-green);border-color:var(--sh-green);color:#fff}.sh-page-numbers .page-btn:disabled{opacity:.4;cursor:default}@media (width<=1100px){.sh-kpi-grid{grid-template-columns:1fr 1fr}}@media (width<=720px){.sh-kpi-grid{grid-template-columns:1fr}}.sr-page .sr-more-actions{position:relative}.sr-page .sr-more-actions .dropdown-menu{min-width:180px;left:auto;right:0}.sr-return-action{color:#dc2626!important}.sr-return-action:hover{color:#b91c1c!important;background:#fee2e2!important}.sh-badge.return-pending{color:#c2410c;background:#fff7ed}.sh-badge.return-approved{color:#15803d;background:#ecfdf5}.sh-badge.return-completed{color:#1d4ed8;background:#eff6ff}.sh-badge.return-refunded{color:#7c3aed;background:#f3e8ff}.sr-items-cell{text-align:center;font-variant-numeric:tabular-nums}.sr-invoice-text{cursor:default}.sr-view-modal{opacity:1;width:min(860px,100%);max-height:calc(100vh - 48px);transform:none}.sr-view-modal .modal-body{padding:16px 20px 20px;overflow:auto}.sr-view-meta{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px;display:grid}.sr-view-meta>div{border:1px solid var(--border);background:#f8fafc;border-radius:10px;flex-direction:column;gap:4px;padding:12px 14px;display:flex}.sr-view-meta span{color:#64748b;font-size:12px}.sr-view-meta strong{color:var(--text);font-size:14px}.sr-view-meta small{color:#64748b;font-size:12px}.sr-view-remarks{color:var(--text-secondary);flex-direction:column;gap:4px;margin:14px 0 0;font-size:13px;display:flex}.sr-view-remarks span{color:#64748b;font-size:12px;font-weight:650}@media (width<=720px){.sr-view-meta{grid-template-columns:1fr 1fr}}.si-invoice-overlay.modal-overlay{z-index:1400}.si-invoice-modal{opacity:1;filter:none;width:min(980px,100%);max-height:calc(100vh - 40px);transform:none}.si-invoice-header-actions{align-items:center;gap:8px;display:flex}.si-invoice-body{background:#f3f6f8;overflow:auto;padding:0!important}.si-invoice-sheet{border:1px solid var(--border);color:var(--text);background:#fff;border-radius:12px;margin:16px;padding:22px 24px 18px}.si-top{border-bottom:1px solid var(--border-light);justify-content:space-between;gap:24px;padding-bottom:16px;display:flex}.si-brand{gap:12px;max-width:58%;display:flex}.si-logo{color:#fff;background:#0f8f7f;border-radius:10px;flex:none;place-items:center;width:42px;height:42px;font-size:28px;font-weight:700;line-height:1;display:grid}.si-brand strong{color:#0f8f7f;font-size:20px;font-weight:800;display:block}.si-brand span{color:#64748b;margin-bottom:8px;font-size:12px;display:block}.si-brand p{color:#475569;margin:0;font-size:12px;line-height:1.45}.si-meta{text-align:right;min-width:220px}.si-meta h3{letter-spacing:.04em;color:var(--text);margin:0 0 10px;font-size:28px;font-weight:800}.si-meta dl{gap:4px;margin:0;display:grid}.si-meta dl>div{grid-template-columns:1fr auto;gap:16px;font-size:12.5px;display:grid}.si-meta dt{color:#64748b;font-weight:600}.si-meta dd{color:var(--text);margin:0;font-weight:700}.si-accent{color:#0f8f7f!important}.si-billto{border:1px solid var(--border-light);border-radius:10px;margin-top:14px;overflow:hidden}.si-billto-label{color:#0c7a6c;letter-spacing:.04em;background:#e7f6f3;align-items:center;gap:6px;padding:8px 12px;font-size:12px;font-weight:750;display:inline-flex}.si-billto-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:12px 14px 14px;display:grid}.si-billto-grid span{color:#64748b;margin-bottom:4px;font-size:11px;display:block}.si-billto-grid strong{color:var(--text);word-break:break-word;font-size:13px;font-weight:700}.si-table-wrap{border:1px solid var(--border);border-radius:10px;margin-top:16px;overflow:auto}.si-table{border-collapse:collapse;width:100%;min-width:820px}.si-table th{color:#fff;letter-spacing:.03em;text-align:center;white-space:nowrap;background:#0f8f7f;padding:10px 8px;font-size:11px;font-weight:700}.si-table td{vertical-align:top;color:var(--text);border-bottom:1px solid #eef2f7;padding:10px 8px;font-size:12.5px}.si-table tr.si-empty-row td{color:#0000;border-bottom:none;height:42px}.si-table tbody tr.si-empty-row:last-child td{border-bottom:none}.si-table td strong{font-size:13px;display:block}.si-table td small{color:#64748b;margin-top:2px;font-size:11px;display:block}.si-table .si-batch{color:#0f8f7f}.si-summary{margin-top:16px}.si-calcs{flex-wrap:nowrap;align-items:stretch;gap:8px;width:100%;display:flex;overflow-x:auto}.si-calc-box{border:1px solid var(--border-light);background:#f8fafb;border-radius:8px;flex:1 1 0;gap:2px;min-width:0;padding:8px 10px;display:grid}.si-calc-box span{color:#64748b;white-space:normal;text-overflow:unset;font-size:10.5px;font-weight:650;line-height:1.25;overflow:visible}.si-calc-box strong{color:var(--text);font-variant-numeric:tabular-nums;white-space:nowrap;font-size:13.5px;font-weight:750}.si-payment{border:1px solid var(--border-light);background:#f8fafb;border-radius:10px;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-top:16px;padding:12px 14px;display:grid}.si-payment span{color:#64748b;margin-bottom:4px;font-size:11px;display:block}.si-payment strong{color:var(--text);word-break:break-word;font-size:13px}.si-split-list{gap:2px;margin:6px 0 0;padding:0;list-style:none;display:grid}.si-split-list li{color:#475569;font-size:12px;font-weight:600}.si-footer{justify-content:space-between;align-items:flex-end;gap:16px;margin-top:18px;display:flex}.si-thanks{color:#64748b;text-align:left;max-width:60%;margin:0;font-size:12px}.si-sign{text-align:center;min-width:180px;margin-left:auto}.si-sign-space{height:56px;margin-bottom:8px}.si-sign span{color:#64748b;font-size:11px}.si-computer{border-top:1px solid var(--border-light);text-align:center;color:var(--text-muted);margin-top:14px;padding-top:10px;font-size:11px}.si-invoice-sheet--v2{padding:28px 30px 22px}.si-doc-header{border-bottom:1px solid #e8eef3;justify-content:space-between;align-items:flex-start;gap:16px;padding-bottom:16px;display:flex}.si-brand-block{align-items:center;gap:12px;display:flex}.si-brand-block .si-logo{color:#14b8a6;background:#1f2a37;border-radius:12px;width:44px;height:44px}.si-brand-block strong{color:#111827;letter-spacing:-.02em;font-size:22px;font-weight:800;display:block}.si-brand-block span{letter-spacing:.08em;color:#64748b;margin-top:2px;font-size:11px;font-weight:700;display:block}.si-doc-title{letter-spacing:.04em;color:#111827;text-align:right;margin:0;font-size:28px;font-weight:800}.si-info-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:18px;display:grid}.si-info-grid h4{letter-spacing:.04em;text-transform:uppercase;color:#64748b;margin:0 0 10px;font-size:12px;font-weight:750}.si-info-grid dl{gap:6px;margin:0;display:grid}.si-info-grid dl>div{grid-template-columns:88px minmax(0,1fr);align-items:start;gap:8px;font-size:13px;display:grid}.si-info-grid dt{color:#64748b;font-weight:600}.si-info-grid dd{color:#111827;word-break:break-word;margin:0;font-weight:700}.si-address-block strong{color:#111827;margin-bottom:6px;font-size:13px;font-weight:750;display:block}.si-address-block p{color:#475569;margin:0;font-size:12.5px;line-height:1.45}.si-table--v2{min-width:720px}.si-table--v2 th{color:#334155;background:#f1f5f9;border-bottom:1px solid #e2e8f0}.si-table--v2 td.num,.si-table--v2 th.num{text-align:center}.si-item-meta{color:#64748b;margin-top:3px;font-size:11px;font-weight:500;display:block}.si-empty-items{text-align:center;color:#64748b;padding:18px 8px!important}.si-bottom-grid{grid-template-columns:minmax(0,1.15fr) minmax(240px,.85fr);align-items:start;gap:18px;margin-top:18px;display:grid}.si-payment-box{background:#fafbfc;border:1px solid #e2e8f0;border-radius:10px;padding:14px 16px}.si-payment-box h4{letter-spacing:.04em;text-transform:uppercase;color:#64748b;margin:0 0 10px;font-size:12px;font-weight:750}.si-payment-box dl{gap:6px;margin:0;display:grid}.si-payment-box dl>div{grid-template-columns:120px minmax(0,1fr);gap:8px;font-size:13px;display:grid}.si-payment-box dt{color:#64748b;font-weight:600}.si-payment-box dd{color:#111827;word-break:break-word;margin:0;font-weight:700}.si-payment-entry+.si-payment-entry{border-top:1px dashed #dbe3ea;margin-top:12px;padding-top:12px}.si-payment-entry-label{letter-spacing:.04em;text-transform:uppercase;color:#0f8f7f;grid-column:1/-1;margin-bottom:2px;font-size:11px;font-weight:750}.si-totals-box{gap:8px;padding:4px 2px;display:grid}.si-totals-box>div{justify-content:space-between;gap:16px;font-size:13px;display:flex}.si-totals-box span{color:#64748b;font-weight:600}.si-totals-box strong{color:#111827;font-weight:750}.si-totals-box .si-total-emphasis{border-top:1px solid #e2e8f0;margin-top:2px;padding-top:8px}.si-totals-box .si-total-emphasis span,.si-totals-box .si-total-emphasis strong{color:#0f172a;font-size:14px;font-weight:800}.si-footer-bar{border-top:1px solid #e8eef3;justify-content:space-between;gap:16px;margin-top:22px;padding-top:12px;display:flex}.si-footer-bar p{color:#64748b;margin:0;font-size:12px}.si-footer-bar p:last-child{text-align:right}@media (width<=900px){.si-info-grid,.si-bottom-grid,.si-doc-header,.si-footer-bar{grid-template-columns:1fr;display:grid}.si-doc-title,.si-footer-bar p:last-child{text-align:center}.si-top,.si-footer,.si-billto-grid,.si-payment{grid-template-columns:1fr;display:grid}.si-top{display:grid}.si-brand,.si-meta{text-align:center;min-width:0;max-width:none}.si-payment{grid-template-columns:1fr 1fr}}@media print{.si-top,.si-footer,.si-billto-grid,.si-payment{display:revert;grid-template-columns:revert}}.split-pay-overlay.modal-overlay{z-index:1400}.split-pay-dialog.modal-dialog{width:min(640px,100vw - 24px);max-height:min(560px,100vh - 32px)}.split-pay-header{gap:8px;padding:12px 14px}.split-pay-header .modal-title{font-size:16px;font-weight:700}.split-pay-body{flex-direction:column;gap:10px;padding:12px 14px;display:flex;overflow:auto}.split-pay-summary-top,.split-pay-summary-bottom{background:#eef7fb;border:1px solid #d7ebf5;border-radius:10px;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;display:grid;overflow:hidden}.split-pay-summary-bottom{grid-template-columns:repeat(3,minmax(0,1fr))}.split-pay-summary-item{flex-direction:column;gap:4px;min-width:0;padding:10px 12px;display:flex}.split-pay-summary-item+.split-pay-summary-item{border-left:1px solid #d7ebf5}.split-pay-summary-item span{color:var(--text-muted);font-size:11px;font-weight:600}.split-pay-summary-item strong{font-size:15px;font-weight:700;line-height:1.2}.split-pay-summary-item strong.is-total{color:#0f8f7f}.split-pay-summary-item strong.is-due{color:#dc2626}.split-pay-entries{flex-direction:column;display:flex}.split-pay-entries h3{color:var(--text);margin:0 0 8px;font-size:13px;font-weight:700}.split-pay-table-wrap{border:1px solid var(--border);border-radius:10px;max-height:196px;overflow:auto}.split-pay-table{border-collapse:collapse;width:100%;font-size:12.5px}.split-pay-table thead th{z-index:1;position:sticky;top:0}.split-pay-table th,.split-pay-table td{text-align:center;vertical-align:middle;border-bottom:1px solid #eef2f7;padding:8px}.split-pay-table th{color:#64748b;white-space:nowrap;background:#f3f4f6;font-size:11px;font-weight:700}.split-pay-table th em{color:#dc2626;font-style:normal}.split-pay-table .col-num{text-align:center;width:36px}.split-pay-table .col-actions{text-align:center;width:48px}.split-pay-table .autocomplete-control,.split-pay-table .split-pay-input{box-sizing:border-box;border:1px solid var(--border);border-radius:var(--radius-sm,8px);background:var(--surface,#fff);width:100%;min-height:36px;color:var(--text);appearance:none;box-shadow:none;outline:none;padding:0 10px;font-size:12.5px}.split-pay-table .autocomplete-control{padding:0 8px}.split-pay-table .autocomplete-control input{box-shadow:none;background:0 0;border:none;outline:none;min-height:34px;font-size:12.5px}.split-pay-table .autocomplete-control:focus-within,.split-pay-table .split-pay-input:focus{border-color:var(--brand);box-shadow:0 0 0 3px #0d94881f}.split-pay-table .split-pay-input.has-error,.split-pay-table .split-pay-input.is-overpay,.split-pay-table .split-pay-input.has-error:focus,.split-pay-table .split-pay-input.is-overpay:focus{background:#fef2f2;border:2px solid #dc2626!important;box-shadow:0 0 0 3px #dc262638!important}.split-pay-table .split-pay-input::placeholder{color:var(--text-muted,#9ca3af)}.split-pay-add-btn{border:1px solid color-mix(in srgb, var(--brand) 35%, white);background:color-mix(in srgb, var(--brand) 10%, white);color:var(--brand-dark);cursor:pointer;border-radius:8px;align-self:flex-end;align-items:center;gap:6px;margin-top:8px;margin-left:auto;padding:7px 12px;font-size:12.5px;font-weight:650;display:inline-flex}.split-pay-add-btn:hover{background:color-mix(in srgb, var(--brand) 16%, white)}.split-pay-status{color:#64748b;background:#f3f4f6;border-radius:999px;align-items:center;gap:5px;width:fit-content;padding:4px 8px;font-size:12px;font-weight:650;display:inline-flex}.split-pay-status.is-paid{color:#15803d;background:#dcfce7}.split-pay-status.is-partial{color:#c2410c;background:#ffedd5}.split-pay-status.is-invalid{color:#b91c1c;background:#fee2e2}.split-pay-info{display:none}.split-pay-overpay-banner{color:#b91c1c;background:#fef2f2;border:1px solid #fca5a5;border-radius:8px;align-items:flex-start;gap:8px;padding:8px 10px;font-size:12px;line-height:1.35;display:flex}.split-pay-overpay-banner p{color:#b91c1c;margin:0;font-weight:600}.split-pay-overpay-banner svg{color:#dc2626;flex-shrink:0;margin-top:1px}.split-pay-error.form-error-text{color:#dc2626;margin:0;font-size:12.5px;font-weight:650}.split-pay-footer{gap:8px;padding:10px 14px}.split-pay-footer .btn-primary:disabled{opacity:.55;cursor:not-allowed;pointer-events:none}.ns-split-edit-btn{color:var(--brand);cursor:pointer;text-align:left;background:0 0;border:0;margin-top:6px;padding:0;font-size:12px;font-weight:650}.ns-split-edit-btn:hover{text-decoration:underline}@media (width<=720px){.split-pay-summary-top,.split-pay-summary-bottom{grid-template-columns:1fr}.split-pay-summary-item+.split-pay-summary-item{border-top:1px solid #d7ebf5;border-left:0}}.ns-success-overlay.modal-overlay{z-index:1200}.ns-success-modal.modal-dialog{filter:none;opacity:0;width:min(640px,100%);max-height:calc(100vh - 40px);padding:28px 28px 22px;transition:transform .42s cubic-bezier(.22,1,.36,1),opacity .32s;position:relative;overflow:auto;transform:translateY(18px)scale(.96)}.ns-success-modal.modal-dialog.is-open{opacity:1;filter:none;transform:translate(0,0)scale(1)}.ns-success-close{z-index:2;position:absolute;top:14px;right:14px}.ns-success-hero{text-align:center;padding:8px 8px 18px;position:relative}.ns-success-badge{place-items:center;width:120px;height:120px;margin:0 auto 10px;display:grid;position:relative}.ns-success-ring{opacity:0;border:3px dashed #f59e0b;border-color:#f59e0b #0c7a6c #fbbf24 #0f8f7f;border-radius:999px;animation:1.25s cubic-bezier(.22,1,.36,1) 50ms both ns-success-ring;position:absolute;inset:8px}.ns-success-burst{pointer-events:none;position:absolute;inset:0}.ns-success-burst span{--ns-burst-rot:0deg;opacity:0;width:12px;height:3px;transform:rotate(var(--ns-burst-rot)) translateY(0) scale(.4);background:#0f8f7f;border-radius:999px;margin:-1.5px 0 0 -6px;animation:.9s cubic-bezier(.22,1,.36,1) both ns-success-burst;position:absolute;top:50%;left:50%}.ns-success-burst span:nth-child(odd){background:#0f8f7f}.ns-success-burst span:nth-child(2n){background:#f59e0b;width:8px}.ns-success-burst span:first-child{animation-delay:.12s}.ns-success-burst span:nth-child(2){animation-delay:.15s}.ns-success-burst span:nth-child(3){animation-delay:.18s}.ns-success-burst span:nth-child(4){animation-delay:.21s}.ns-success-burst span:nth-child(5){animation-delay:.24s}.ns-success-burst span:nth-child(6){animation-delay:.27s}.ns-success-burst span:nth-child(7){animation-delay:.3s}.ns-success-burst span:nth-child(8){animation-delay:.33s}.ns-success-burst span:nth-child(9){animation-delay:.36s}.ns-success-burst span:nth-child(10){animation-delay:.39s}.ns-success-burst span:nth-child(11){animation-delay:.42s}.ns-success-burst span:nth-child(12){animation-delay:.45s}@keyframes ns-success-burst{0%{opacity:0;transform:rotate(var(--ns-burst-rot)) translateY(-8px) scale(.35)}35%{opacity:1}to{opacity:0;transform:rotate(var(--ns-burst-rot)) translateY(-54px) scale(1)}}@keyframes ns-success-ring{0%{opacity:0;transform:scale(.55)rotate(0)}35%{opacity:1;transform:scale(1.05)rotate(140deg)}70%{opacity:1;transform:scale(1)rotate(280deg)}to{opacity:1;transform:scale(1)rotate(360deg)}}.ns-success-check{z-index:1;color:#fff;background:#0f8f7f;border-radius:999px;place-items:center;width:72px;height:72px;animation:.55s cubic-bezier(.22,1,.36,1) both ns-success-pop;display:grid;position:relative;box-shadow:0 10px 24px #0f8f7f47}.ns-success-check svg{animation:.45s ease-out .18s both ns-success-check-draw}@keyframes ns-success-pop{0%{opacity:0;transform:scale(.2)}55%{opacity:1;transform:scale(1.12)}to{opacity:1;transform:scale(1)}}@keyframes ns-success-check-draw{0%{opacity:0;transform:scale(.4)}to{opacity:1;transform:scale(1)}}.ns-success-hero h2{color:var(--text);margin:0;font-size:28px;font-weight:800;animation:.45s ease-out .22s both ns-success-fade-up}.ns-success-hero p{color:#64748b;margin:6px 0 0;font-size:14px;animation:.45s ease-out .3s both ns-success-fade-up}.ns-success-enter{opacity:0;animation:.45s ease-out both ns-success-fade-up}@keyframes ns-success-fade-up{0%{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}.ns-success-meta{background:#e7f6f3;border-radius:12px;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:14px;padding:14px 16px;display:grid}.ns-success-meta>div{color:#0f8f7f;align-items:flex-start;gap:10px;min-width:0;display:flex}.ns-success-meta span{color:#64748b;font-size:11px;font-weight:650;display:block}.ns-success-meta strong{color:var(--text);word-break:break-word;margin-top:2px;font-size:13.5px;display:block}.ns-success-payment{border:1px solid var(--border-light);border-radius:12px;grid-template-columns:1.1fr 1fr;gap:0;margin-bottom:12px;display:grid;overflow:hidden}.ns-success-paid{align-content:center;gap:6px;padding:18px 20px;display:grid}.ns-success-paid span{color:#64748b;font-size:12px;font-weight:650}.ns-success-paid strong{color:#0f8f7f;font-variant-numeric:tabular-nums;font-size:34px;font-weight:800;line-height:1.1}.ns-success-payment-details{border-left:1px solid var(--border-light);align-content:center;gap:10px;padding:14px 18px;display:grid}.ns-success-payment-details span{color:#64748b;font-size:11px;display:block}.ns-success-payment-details strong{color:var(--text);margin-top:2px;font-size:14px;display:block}.ns-success-thanks{color:#0c7a6c;background:#e7f6f3;border-radius:10px;justify-content:center;align-items:center;gap:8px;margin-bottom:16px;padding:10px 14px;font-size:13px;font-weight:650;display:flex}.ns-success-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;display:grid}.ns-success-actions .btn{justify-content:center;width:100%}@media (width<=640px){.ns-success-meta,.ns-success-payment,.ns-success-actions{grid-template-columns:1fr}.ns-success-payment-details{border-left:none;border-top:1px solid var(--border-light)}}@media (prefers-reduced-motion:reduce){.ns-success-modal.modal-dialog,.ns-success-ring,.ns-success-burst span,.ns-success-check,.ns-success-check svg,.ns-success-hero h2,.ns-success-hero p,.ns-success-enter{opacity:1!important;transition:none!important;animation:none!important;transform:none!important}}.sid-overlay.modal-overlay{z-index:1500}.sid-modal.modal-dialog{opacity:1;filter:none;width:min(1180px,100%);max-height:calc(100vh - 32px);overflow:hidden;transform:none}.sid-chrome{border-bottom:1px solid var(--border-light);justify-content:space-between;align-items:center;gap:12px;padding:14px 18px;display:flex}.sid-chrome-title{align-items:center;gap:10px;display:flex}.sid-chrome-icon{color:#0f8f7f;background:#e7f6f3;border-radius:9px;place-items:center;width:34px;height:34px;display:grid}.sid-chrome h2{color:var(--text);margin:0;font-size:18px;font-weight:800}.sid-chrome-actions{align-items:center;gap:8px;display:flex}.sid-body{background:#fff;padding:16px 18px 8px;overflow:auto}.sid-invoice-head{justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;display:flex}.sid-invoice-head-numbers{flex-direction:column;gap:8px;min-width:0;display:flex}.sid-invoice-head span{color:#64748b;font-size:12px;font-weight:650;display:block}.sid-invoice-head strong{color:#0c7a6c;margin-top:2px;font-size:26px;font-weight:800;display:block}.sid-invoice-head .sid-payment-number strong{color:#0f766e;font-size:18px;font-weight:750}.sid-status-pill{color:#475569;background:#f1f5f9;border-radius:999px;align-items:center;gap:6px;padding:6px 10px;font-size:12.5px;font-weight:700;display:inline-flex}.sid-status-pill.is-ok{color:#0c7a6c;background:#e7f6f3}.sid-meta-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-bottom:14px;display:grid}.sid-meta-card{border:1px solid var(--border-light);color:#0f8f7f;background:#fff;border-radius:12px;gap:10px;min-width:0;padding:12px;display:flex}.sid-meta-card span{color:#64748b;font-size:11px;font-weight:650;display:block}.sid-meta-card strong{color:var(--text);word-break:break-word;margin-top:2px;font-size:13.5px;display:block}.sid-meta-card small{color:#64748b;margin-top:2px;font-size:12px;display:block}.sid-split-panel,.sid-payment-history-panel{margin-bottom:14px}.sid-payment-history-empty{color:#64748b;background:#f8fafc;border:1px dashed #cbd5e1;border-radius:8px;margin:0;padding:10px 12px;font-size:13px}.sid-payment-history-totals{border-top:1px solid var(--border);color:#475569;flex-wrap:wrap;gap:16px 24px;margin-top:10px;padding-top:10px;font-size:13px;display:flex}.sid-payment-history-totals strong{color:#0f172a}.sid-split-table-wrap{overflow-x:auto}.sid-split-table .sid-split-method-cell{align-items:center;gap:8px;display:inline-flex}.sid-split-table .sid-split-method-cell .payment-method-logo{object-fit:contain;flex:none;width:18px;height:18px}.sid-split-table tfoot td{border-top:1px solid var(--border);background:#f8fafc;font-weight:700}.sid-chip{color:#475569;background:#f1f5f9;border-radius:999px;margin-top:4px;padding:2px 8px;font-size:12px;font-style:normal;font-weight:700;display:inline-flex}.sid-chip.is-paid{color:#166534;background:#dcfce7}.sid-layout{grid-template-columns:minmax(0,1fr) 280px;align-items:start;gap:14px;display:grid}.sid-main{gap:14px;min-width:0;display:grid}.sid-panel{border:1px solid var(--border-light);border-radius:12px;overflow:hidden}.sid-panel h3{color:var(--text);border-bottom:1px solid #eef2f7;align-items:center;gap:8px;margin:0;padding:12px 14px;font-size:14px;font-weight:800;display:flex}.sid-panel h3 span{background:#0f8f7f;border-radius:999px;width:3px;height:14px}.sid-table-wrap{overflow:auto}.sid-table{border-collapse:collapse;width:100%;min-width:760px}.sid-table th{text-align:center;letter-spacing:.03em;color:#64748b;white-space:nowrap;background:#f8fafc;padding:8px 10px;font-size:11px;font-weight:700}.sid-table td{color:var(--text);vertical-align:top;border-top:1px solid #eef2f7;padding:10px;font-size:12.5px}.sid-table td strong{font-size:13px;display:block}.sid-table td small{color:#64748b;margin-top:2px;font-size:11px;display:block}.sid-table .num{text-align:center;font-variant-numeric:tabular-nums;white-space:nowrap}.sid-other{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:12px 14px 16px;display:grid}.sid-other-row{color:#0f8f7f;gap:8px;margin-bottom:12px;display:flex}.sid-other-row span{color:#64748b;font-size:11px;display:block}.sid-other-row strong{color:var(--text);margin-top:2px;font-size:13px;display:block}.sid-summary{background:#eefaf6;border:1px solid #cfece8;border-radius:12px;padding:14px}.sid-summary h3{color:#0c7a6c;margin:0 0 12px;font-size:14px;font-weight:800}.sid-summary-row{color:var(--text-secondary);justify-content:space-between;gap:10px;margin-bottom:8px;font-size:12.5px;display:flex}.sid-summary-row strong{font-variant-numeric:tabular-nums;color:var(--text)}.sid-summary-row.is-disc strong{color:#dc2626}.sid-summary-total{border-top:1px dashed #9ad5cb;justify-content:space-between;align-items:center;gap:10px;margin:10px 0 12px;padding-top:10px;display:flex}.sid-summary-total span{color:#0c7a6c;font-size:13px;font-weight:700}.sid-summary-total strong{color:#0c7a6c;font-size:22px;font-weight:800}.sid-paid-banner{color:#166534;background:#dcfce7;border-radius:10px;gap:10px;margin-top:12px;padding:12px;display:flex}.sid-paid-banner strong{font-size:13.5px;display:block}.sid-paid-banner span{opacity:.9;font-size:12px;display:block}.sid-credit-banner{color:#9a3412;background:#fff7ed;border-radius:10px;gap:10px;margin-top:12px;padding:12px;display:flex}.sid-credit-banner strong{font-size:13.5px;display:block}.sid-credit-banner span{opacity:.9;font-size:12px;display:block}.sid-chip.is-credit{color:#c2410c;background:#ffedd5}.sid-footer{border-top:1px solid var(--border-light);justify-content:center;padding:12px 18px 16px;display:flex}@media (width<=980px){.sid-meta-grid,.sid-layout,.sid-other{grid-template-columns:1fr}}@media print{body.si-is-printing #si-print-root .sid-sheet{background:#fff!important}}.pd-overlay.modal-overlay{z-index:1400}.pd-modal.modal-dialog{opacity:1;filter:none;background:#f3f6f9;width:min(1080px,100%);max-height:calc(100vh - 32px);overflow:hidden;transform:none}.pd-chrome{background:#f3f6f9;justify-content:space-between;align-items:center;gap:12px;padding:16px 20px 12px;display:flex}.pd-chrome h2{color:var(--text);margin:0;font-size:20px;font-weight:800}.pd-body{padding:0 16px 8px;overflow:auto}.pd-status{color:#64748b;margin:24px}.pd-status.is-error{color:#b91c1c}.pd-layout{grid-template-columns:250px minmax(0,1fr);align-items:start;gap:14px;display:grid}.pd-sidebar{border:1px solid var(--border-light);text-align:center;background:#fff;border-radius:14px;flex-direction:column;align-items:center;padding:22px 18px 16px;display:flex}.pd-sidebar .pt-avatar.lg{width:88px;height:88px;margin-bottom:12px;font-size:28px}.pd-status-pill{border-radius:999px;align-items:center;gap:6px;margin-bottom:10px;padding:4px 10px;font-size:12px;font-weight:700;display:inline-flex}.pd-status-pill.is-active{color:#15803d;background:#e7f8ef}.pd-status-pill.is-inactive{color:#64748b;background:#f1f5f9}.pd-dot{background:currentColor;border-radius:50%;width:7px;height:7px}.pd-sidebar h3{color:var(--text);margin:0;font-size:20px;font-weight:800}.pd-patient-id{color:#0f8f7f;margin:4px 0 16px;font-size:13.5px;font-weight:700}.pd-meta{text-align:center;flex-direction:column;gap:12px;width:100%;margin:0;padding:0;list-style:none;display:flex}.pd-meta li{color:#64748b;align-items:flex-start;gap:10px;display:flex}.pd-meta svg{flex:none;margin-top:3px}.pd-meta span{color:var(--text-muted);font-size:11.5px;font-weight:650;display:block}.pd-meta strong{color:var(--text);font-size:13.5px;font-weight:700;display:block}.pd-notice{text-align:center;border-radius:10px;width:100%;margin-top:16px;padding:10px 12px;font-size:12.5px;line-height:1.45}.pd-notice.is-active{color:#166534;background:#e8f8ef}.pd-notice.is-inactive{color:#475569;background:#f1f5f9}.pd-main{flex-direction:column;gap:12px;display:flex}.pd-card{border:1px solid var(--border-light);background:#fff;border-radius:14px;padding:16px 18px 10px}.pd-card h4{color:var(--text);align-items:center;gap:8px;margin:0 0 14px;font-size:15px;font-weight:800;display:flex}.pd-card h4 svg{color:#0f8f7f}.pd-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 16px;display:grid}.pd-field span{color:var(--text-muted);margin-bottom:4px;font-size:12px;font-weight:650;display:block}.pd-field strong{color:var(--text);word-break:break-word;font-size:14px;font-weight:700;display:block}.pd-footer{justify-content:flex-end;padding:12px 16px 16px;display:flex}@media (width<=900px){.pd-layout,.pd-grid{grid-template-columns:1fr}}.csr-overlay.modal-overlay{z-index:1400}.csr-modal.modal-dialog{opacity:1;filter:none;background:#f4f7fa;width:min(1180px,100%);max-height:calc(100vh - 24px);overflow:hidden;transform:none}.csr-chrome{justify-content:space-between;align-items:flex-start;gap:12px;padding:16px 20px 8px;display:flex}.csr-chrome-title{align-items:flex-start;gap:12px;display:flex}.csr-chrome-icon{color:#0f8f7f;background:#e7f6f3;border-radius:999px;place-items:center;width:38px;height:38px;display:grid}.csr-chrome h2{color:var(--text);margin:0;font-size:20px;font-weight:800}.csr-chrome p{color:#64748b;margin:2px 0 0;font-size:13px}.csr-body{flex-direction:column;gap:12px;padding:8px 16px 12px;display:flex;overflow:auto}.csr-card{border:1px solid var(--border-light);background:#fff;border-radius:14px;padding:14px 16px 12px}.csr-card h3{color:var(--brand);margin:0 0 12px;font-size:15px;font-weight:800}.csr-invoice-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;display:grid}.csr-invoice-grid label,.csr-details-grid label{color:#64748b;flex-direction:column;gap:6px;font-size:12px;font-weight:700;display:flex}.csr-invoice-grid input[readonly],.csr-invoice-grid input:disabled{min-height:38px;color:var(--text-secondary);cursor:not-allowed;background:#f8fafc;border:1px solid #dbe3ee;border-radius:8px;padding:0 10px}.csr-invoice-grid .autocomplete{width:100%}.csr-modal .autocomplete-control{border-color:#dbe3ee;border-radius:8px;min-height:38px;padding:0 10px}.csr-date-field .app-date-input{flex:auto;min-width:0}.csr-date-field .app-date-input-control{box-shadow:none;background:0 0;border:none;border-radius:0;min-height:36px;padding:0}.csr-date-field .app-date-input-field,.csr-date-field .app-date-input-field:focus{height:36px;padding:0;font-size:12.5px;box-shadow:none!important;background:0 0!important;border:none!important}.csr-date-field .app-date-input-icon-btn{display:none}.csr-select-field .autocomplete-control{min-width:160px}.csr-select-field select{min-width:0;height:36px;font:inherit;color:var(--text);appearance:none;background:0 0;border:none;flex:auto;padding:0;font-size:12.5px}.csr-select-field .autocomplete-chevron{pointer-events:none}.csr-details-grid textarea{min-height:84px;font:inherit;color:var(--text);background:#fff;border:1px solid #dbe3ee;border-radius:8px;padding:8px 10px}.csr-invoice-summary{background:#f8fafc;border:1px solid #eef2f7;border-radius:10px;grid-template-columns:repeat(4,minmax(0,1fr)) auto;align-items:center;gap:10px;margin-top:12px;padding:10px 12px;display:grid}.csr-invoice-summary span{color:var(--text-muted);font-size:11.5px;font-weight:650;display:block}.csr-invoice-summary strong{color:var(--text);margin-top:2px;font-size:14px;display:block}.csr-invoice-summary .is-positive,.csr-table-footer .is-positive{color:#15803d}.csr-table-wrap{overflow:auto}.csr-table{border-collapse:collapse;width:100%;font-size:13px}.csr-table th{text-align:center;letter-spacing:.02em;color:#64748b;border-bottom:1px solid var(--border-light);white-space:nowrap;padding:8px;font-size:11px;font-weight:700}.csr-table td{color:var(--text);vertical-align:middle;border-bottom:1px solid #f1f5f9;padding:8px}.csr-table td strong{font-size:13px;display:block}.csr-table td small{color:var(--text-muted);font-size:11px;display:block}.csr-table tr.is-selected{background:#f0fbf8}.csr-empty{text-align:center;color:var(--text-muted)!important;padding:24px!important}.csr-qty{align-items:center;gap:4px;display:inline-flex}.csr-return-qty-input{width:80px;min-width:80px;height:38px;color:var(--text);text-align:left;pointer-events:auto;box-sizing:border-box;background:#fff;border:1px solid #dbe3ee;border-radius:8px;padding:0 10px;font-size:12.5px}.csr-return-qty-input:focus{border-color:var(--brand);outline:none;box-shadow:0 0 0 3px #0d948824}.csr-return-qty-input.has-error,.csr-return-qty-input.has-error:focus{border-color:#ef4444;box-shadow:0 0 0 3px #ef444429}.csr-qty-field{flex-direction:column;align-items:flex-start;gap:4px;min-width:80px;display:flex}.csr-qty-field-error{color:#dc2626;max-width:140px;font-size:11px;font-weight:500;line-height:1.25;display:block}.csr-return-qty-input:disabled{color:var(--text-muted);cursor:not-allowed;background:#f8fafc}.csr-qty button{color:#475569;background:#fff;border:1px solid #dbe3ee;border-radius:6px;place-items:center;width:24px;height:24px;display:grid}.csr-returnable-hint{color:#b45309;margin:-4px 0 10px;font-size:13px}.csr-check{cursor:pointer;justify-content:center;align-items:center;margin:0;display:inline-flex}.csr-table input[type=checkbox]{width:16px;height:16px;accent-color:var(--brand);pointer-events:auto}.csr-table-footer{justify-content:flex-end;align-items:center;gap:12px;margin-top:10px;display:flex}.csr-table-footer p{color:#475569;margin:0;font-size:13px}.csr-table-footer p span{margin-left:16px}.csr-bottom{grid-template-columns:minmax(0,1.4fr) minmax(260px,.8fr);gap:12px;display:grid}.csr-details-grid{grid-template-columns:1fr 1fr 1fr;gap:12px;display:grid}.csr-notes{grid-column:1/-1}.csr-notes textarea{resize:vertical;height:auto;padding:8px 10px}.csr-notes small{color:var(--text-muted);align-self:flex-end}.csr-summary{border:1px solid var(--border-light);background:#fff;border-radius:14px;padding:16px}.csr-summary h4{color:var(--brand);margin:0 0 12px;font-size:15px;font-weight:800}.csr-summary-row{color:#64748b;justify-content:space-between;padding:8px 0;font-size:13.5px;display:flex}.csr-summary-row strong{color:var(--text)}.csr-refund{background:#e8f8ef;border-radius:10px;margin-top:10px;padding:12px}.csr-refund span{color:#166534;font-size:12px;font-weight:700;display:block}.csr-refund strong{color:#166534;margin:4px 0;font-size:22px;display:block}.csr-refund small{color:#3f7a55}.csr-footer{justify-content:flex-end;gap:8px;padding:12px 16px 16px;display:flex}@media (width<=980px){.csr-invoice-grid,.csr-invoice-summary,.csr-bottom,.csr-details-grid{grid-template-columns:1fr}}.grn-batch-autocomplete{width:100%;min-width:0}.grn-batch-autocomplete .autocomplete-input{min-height:32px;font-size:12px}.grn-batch-autocomplete.has-error .autocomplete-input{border-color:#ef4444}.issue-stock-modal.modal-dialog{background:#fff;border-radius:16px;width:min(96vw,1560px);max-width:96vw;max-height:min(92vh,100dvh - 24px)}.issue-stock-header{background:#fff;border-bottom:none;justify-content:space-between;align-items:flex-start;gap:12px;padding:18px 22px 12px;display:flex}.issue-stock-header-main{align-items:flex-start;gap:12px;display:flex}.issue-stock-header-icon{width:36px;height:36px;color:var(--brand-dark);background:#ecfdf5;border-radius:10px;flex-shrink:0;place-items:center;display:grid}.issue-stock-header h2{color:var(--text);margin:0;font-size:20px;font-weight:700;line-height:1.2}.issue-stock-title-row{align-items:center;gap:8px;display:flex}.issue-stock-issued-pill{color:var(--brand-dark);background:#ecfdf5;border-radius:999px;align-items:center;padding:2px 8px;font-size:11px;font-weight:700;display:inline-flex}.issue-stock-issued-banner{color:#166534;background:#ecfdf5;border-radius:10px;align-items:flex-start;gap:10px;margin-top:12px;padding:10px 12px;display:flex}.issue-stock-issued-banner strong{font-size:13px;display:block}.issue-stock-issued-banner p{color:#15803d;margin:2px 0 0;font-size:12px}.issue-stock-header p{color:var(--text-muted);margin:4px 0 0;font-size:13px}.issue-stock-close{width:32px;height:32px;color:var(--text-muted);border-radius:8px;place-items:center;display:grid}.issue-stock-close:hover{color:var(--text);background:#f3f4f6}.issue-stock-body{background:#fff;padding:0 22px 16px;overflow:auto}.issue-stock-loading{min-height:220px;color:var(--text-muted);place-items:center;gap:8px;display:grid}.issue-stock-summary{background:#f3f4f6;border-radius:10px;grid-template-columns:repeat(6,minmax(0,1fr));padding:12px 4px;display:grid}.issue-stock-summary>div{border-right:1px solid var(--border);padding:0 14px}.issue-stock-summary>div:last-child{border-right:none}.issue-stock-summary span{color:var(--text-muted);font-size:11px;display:block}.issue-stock-summary strong{color:var(--text);margin-top:4px;font-size:13px;font-weight:700;display:block}.issue-stock-fields{grid-template-columns:repeat(4,minmax(0,1fr));align-items:start;gap:12px 16px;margin-top:16px;display:grid}.issue-stock-field{color:#374151;flex-direction:column;gap:6px;font-size:12px;font-weight:600;display:flex}.issue-stock-field input,.issue-stock-field textarea,.issue-stock-field .app-date-input-field{border:1px solid var(--border-strong);width:100%;min-height:40px;color:var(--text);background:#fff;border-radius:8px;padding:8px 12px;font-weight:500}.issue-stock-field input:disabled,.issue-stock-field textarea:disabled,.issue-stock-field .app-date-input.is-disabled .app-date-input-field,.issue-stock-field .app-date-input.is-readonly .app-date-input-field,.issue-stock-modal.is-fully-approved .issue-stock-field .app-date-input-field{color:var(--text-secondary);cursor:not-allowed;border-color:var(--border);background:#f3f4f6!important}.issue-stock-field textarea{resize:none;height:40px;min-height:40px;padding-right:48px}.issue-stock-field-control{display:block;position:relative}.issue-stock-field-control svg{color:var(--text-muted);pointer-events:none;position:absolute;top:50%;left:12px;transform:translateY(-50%)}.issue-stock-field-control input{padding-left:36px}.issue-stock-field-remarks{position:relative}.issue-stock-field-remarks small{color:var(--text-muted);font-size:11px;font-weight:500;position:absolute;bottom:8px;right:10px}.issue-stock-items{margin-top:18px}.issue-stock-items h3{color:var(--text);margin:0 0 10px;font-size:14px;font-weight:700}.issue-stock-table-wrap{border:1px solid var(--border);border-radius:10px;overflow:hidden}.issue-stock-table{table-layout:fixed;border-collapse:collapse;width:100%;font-size:12px}.issue-stock-table th,.issue-stock-table td{vertical-align:middle;text-align:center;word-wrap:break-word;overflow-wrap:anywhere;border-bottom:1px solid #f3f4f6;padding:8px 6px}.issue-stock-table th{background:var(--brand-dark);color:#fff;white-space:normal;font-size:10px;font-weight:600;line-height:1.25}.issue-stock-table th:first-child{width:2.5%}.issue-stock-table th:nth-child(2){width:11%}.issue-stock-table th:nth-child(3){width:8%}.issue-stock-table th:nth-child(4){width:6%}.issue-stock-table th:nth-child(5){width:7%}.issue-stock-table th:nth-child(6){width:14%}.issue-stock-table th:nth-child(7){width:10%}.issue-stock-table th:nth-child(8){width:14%}.issue-stock-table th:nth-child(9){width:12%}.issue-stock-table th:nth-child(10){width:4%}.issue-stock-table .col-index{width:36px;color:var(--text-muted)}.issue-stock-table .col-num,.issue-stock-table .col-qty{text-align:center}.issue-stock-med strong{color:var(--text);display:block}.issue-stock-med small{color:var(--text-muted);margin-top:2px;font-size:12px;display:block}.issue-stock-actions{flex-direction:column;align-items:flex-start;gap:4px;display:flex}.issue-action{cursor:pointer;align-items:center;gap:5px;font-size:12px;font-weight:600;display:inline-flex}.issue-action input{accent-color:currentColor}.issue-action.is-approve{color:#16a34a}.issue-action.is-hold{color:#ea580c}.issue-action.is-reject{color:#dc2626}.issue-stock-table tr.is-approved-locked td{background:#f8fafc}.issue-stock-table tr.is-approved-locked .issue-stock-actions,.issue-stock-table tr.is-approved-locked .issue-stock-line-remarks input,.issue-stock-table tr.is-approved-locked .col-qty input{cursor:not-allowed;opacity:.72}.issue-stock-table .col-qty input{text-align:center;border:1px solid var(--border-strong);border-radius:8px;width:72px;min-height:34px;padding:4px 8px}.issue-stock-table .col-qty input:disabled,.issue-stock-table tr.is-approved-locked .col-qty input,.issue-stock-line-remarks input:disabled,.issue-stock-table tr.is-approved-locked .issue-stock-line-remarks input{color:var(--text-secondary);cursor:not-allowed;border-color:var(--border);background:#f3f4f6!important}.issue-stock-line-remarks{min-width:180px;position:relative}.issue-stock-line-remarks input{border:1px solid var(--border-strong);border-radius:8px;width:100%;min-height:34px;padding:6px 44px 6px 10px}.issue-stock-line-remarks small{color:var(--text-muted);font-size:10px;position:absolute;top:50%;right:8px;transform:translateY(-50%)}.issue-stock-summary-footer{border:1px solid var(--border);background:#fff;border-radius:12px;justify-content:space-between;align-items:center;gap:8px;margin-top:14px;padding:10px 12px 10px 4px;display:flex}.issue-stock-stat{border-right:1px solid var(--border);flex:1 1 0;min-width:0;padding:4px 14px}.issue-stock-stat span{color:var(--text-muted);font-size:11px;font-weight:500;display:block}.issue-stock-stat strong{color:var(--text);margin-top:4px;font-size:20px;font-weight:700;line-height:1.15;display:block}.issue-stock-stat em{margin-left:2px;font-size:12px;font-style:normal;font-weight:500}.issue-stock-stat.is-approved,.issue-stock-stat.is-approved strong,.issue-stock-stat.is-approved em{color:#16a34a}.issue-stock-stat.is-hold,.issue-stock-stat.is-hold strong,.issue-stock-stat.is-hold em{color:#ea580c}.issue-stock-stat.is-reject,.issue-stock-stat.is-reject strong,.issue-stock-stat.is-reject em{color:#dc2626}.issue-stock-stat.is-remaining,.issue-stock-stat.is-remaining strong,.issue-stock-stat.is-remaining em{color:var(--text-secondary)}.issue-stock-stat.is-approved span,.issue-stock-stat.is-hold span,.issue-stock-stat.is-reject span,.issue-stock-stat.is-remaining span{color:var(--text-muted)}.issue-stock-info{color:#166534;background:#ecfdf5;border-radius:10px;flex:0 0 260px;align-items:flex-start;gap:8px;padding:10px 12px;font-size:12px;line-height:1.35;display:flex}.issue-stock-info svg{color:#16a34a;flex-shrink:0;margin-top:1px}.issue-stock-info p{margin:0}.issue-stock-info strong{color:#166534;font-weight:700;display:block}.issue-stock-footer{background:#fff;border-top:none;justify-content:flex-end;align-items:center;gap:10px;padding:12px 22px 18px;display:flex}.issue-stock-cancel,.issue-stock-submit{border-radius:8px;align-items:center;gap:8px;min-height:40px;padding:0 16px;font-size:14px;font-weight:600;display:inline-flex}.issue-stock-cancel{border:1px solid var(--border-strong);color:#374151;background:#fff}.issue-stock-cancel:hover{background:#f9fafb}.issue-stock-submit{background:var(--brand-dark);color:#fff}.issue-stock-submit:hover:not(:disabled){background:var(--brand)}.issue-stock-submit:disabled,.issue-stock-cancel:disabled{opacity:.6;cursor:not-allowed}.issue-stock-batch-field{align-items:center;gap:4px;max-width:100%;display:inline-flex}.issue-stock-batch-field select{field-sizing:content;border:1px solid var(--border-strong);background:#fff;border-radius:6px;flex:none;width:auto;max-width:100%;min-height:32px;padding:4px 8px;font-size:11px}.issue-stock-batch-field select:disabled{color:var(--text-secondary);cursor:not-allowed;background:#f3f4f6}.issue-stock-add-batch-btn{background:var(--brand-dark);color:#fff;cursor:pointer;border:none;border-radius:6px;flex:0 0 26px;place-items:center;width:26px;height:26px;display:grid}.issue-stock-add-batch-btn:hover:not(:disabled){background:var(--brand)}.issue-stock-add-batch-btn:disabled{opacity:.45;cursor:not-allowed}.issue-stock-qty-stack{color:var(--text-secondary);flex-direction:column;gap:2px;font-size:11px;line-height:1.25;display:flex}.issue-stock-issue-qty{flex-direction:row;justify-content:center;align-items:flex-start;gap:8px;display:flex}.issue-stock-issue-qty-cell{flex-direction:column;flex:1 1 0;align-items:center;gap:4px;min-width:0;display:flex}.issue-stock-issue-qty-cell .table-input-num{text-align:center;color:#1e293b;background:#fff;border:1px solid #cbd5e1;border-radius:8px;width:100%;max-width:52px;min-height:32px;padding:4px 6px;font-size:13px;font-weight:700}.issue-stock-issue-qty-cell .table-input-num:disabled{color:var(--text-secondary);background:#f3f4f6}.issue-stock-issue-qty-label{color:#334155;text-align:center;font-size:10px;font-weight:500;line-height:1.2}.issue-stock-remove{color:#dc2626;cursor:pointer;background:0 0;border:none;border-radius:6px;place-items:center;width:28px;height:28px;display:grid}.issue-stock-remove:hover:not(:disabled){background:#fef2f2}.issue-stock-remove:disabled{opacity:.4;cursor:not-allowed}.issue-stock-item-total-row td{background:#ecfdf5;border-bottom:1px solid #bbf7d0;padding:8px 10px}.issue-stock-item-total{color:#166534;justify-content:space-between;align-items:center;gap:12px;font-size:12px;display:flex}.issue-stock-item-total strong{font-weight:700}@media (width<=980px){.issue-stock-summary{grid-template-columns:1fr 1fr}.issue-stock-summary-footer{flex-wrap:wrap}.issue-stock-stat{border-right:none;flex:calc(33% - 8px)}.issue-stock-info{flex:100%}.issue-stock-fields{grid-template-columns:repeat(4,minmax(0,1fr))}.issue-stock-summary>div{border-right:none;padding:8px 12px}}.breadcrumb-link{color:var(--brand);font-weight:500;text-decoration:none}.breadcrumb-link:hover{text-decoration:underline}.cu-page{padding-bottom:88px}.cu-layout{grid-template-columns:minmax(0,1.05fr) minmax(0,1.15fr);align-items:start;gap:16px;display:grid}.cu-col{flex-direction:column;gap:14px;min-width:0;display:flex}.cu-card{border:1px solid var(--border);background:#fff;border-radius:12px;padding:16px 18px 18px}.cu-section-title{align-items:center;gap:10px;margin-bottom:14px;display:flex}.cu-section-title h2{color:var(--text);margin:0;font-size:15px;font-weight:700}.cu-section-num{background:var(--brand);color:#fff;border-radius:999px;flex-shrink:0;place-items:center;width:24px;height:24px;font-size:12px;font-weight:700;display:inline-grid}.cu-card-header{justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px;display:flex}.cu-card-header .cu-section-title{margin-bottom:4px}.cu-card-subtitle{color:var(--text-muted);margin:0;font-size:12.5px;line-height:1.4}.cu-add-btn{white-space:nowrap;flex-shrink:0;height:36px;padding:0 12px;font-size:13px}.cu-grid{gap:12px 14px;margin-bottom:12px;display:grid}.cu-grid:last-child{margin-bottom:0}.cu-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.cu-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.cu-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.cu-grid-5{grid-template-columns:repeat(5,minmax(0,1fr))}.cu-grid-locale>.filter-field{grid-column:span 1}.cu-grid-photo{grid-template-columns:minmax(0,1fr) minmax(220px,1.1fr);align-items:start}.cu-password-wrap{width:100%;min-width:0;position:relative}.filter-field .cu-password-wrap input:not([type=checkbox]):not([type=radio]){width:100%;padding-right:40px}.filter-field .cu-password-wrap input:not([type=checkbox]):not([type=radio]):focus{border-color:var(--brand);background:#fff;box-shadow:0 0 0 3px #0d94881f}.cu-password-toggle{color:var(--text-muted);cursor:pointer;background:0 0;border:none;border-radius:6px;flex-shrink:0;place-items:center;width:28px;height:28px;display:grid;position:absolute;top:50%;right:6px;transform:translateY(-50%)}.cu-password-toggle:hover{color:var(--text);background:#f3f4f6}.cu-photo-input{display:none}.cu-photo-upload{border:1.5px dashed var(--border-strong);cursor:pointer;width:100%;min-height:92px;color:var(--brand);background:#fafafa;border-radius:10px;flex-direction:column;justify-content:center;align-items:center;gap:4px;padding:14px;display:flex}.cu-photo-upload:hover{background:var(--brand-muted);border-color:#99f6e4}.cu-photo-upload strong{color:var(--brand-dark);font-size:13px;font-weight:650}.cu-photo-upload span{color:var(--text-muted);font-size:11.5px}.cu-photo-upload-inline{flex-direction:row;justify-content:flex-start;align-items:center;gap:6px;height:36px;min-height:36px;padding:0 10px;overflow:hidden}.cu-photo-upload-inline strong{white-space:nowrap;text-overflow:ellipsis;font-size:12.5px;overflow:hidden}.cu-photo-upload-inline span{display:none}.cu-photo-preview-inline{gap:8px;height:36px;min-height:36px;padding:4px 8px}.cu-photo-preview-inline img{border-radius:6px;width:28px;height:28px}.cu-photo-preview-inline .cu-photo-preview-meta{flex-direction:row;flex:1;align-items:center;gap:8px;min-width:0}.cu-photo-preview-inline .cu-photo-preview-meta strong{flex:1;min-width:0}.cu-photo-field .field-error{margin:0}.cu-photo-control{width:100%;position:relative}.cu-photo-filled{border:1.5px dashed var(--border-strong);border-radius:var(--radius-sm);box-sizing:border-box;background:#fafafa;align-items:center;gap:8px;width:100%;min-width:0;height:36px;min-height:36px;padding:4px 8px;display:flex}.cu-photo-filled img{object-fit:cover;border:1px solid var(--border);background:#fff;border-radius:6px;flex-shrink:0;width:28px;height:28px}.cu-photo-filled strong{min-width:0;color:var(--text);text-overflow:ellipsis;white-space:nowrap;flex:1;font-size:12.5px;font-weight:600;overflow:hidden}.cu-photo-filled .cu-photo-clear{color:#dc2626;cursor:pointer;white-space:nowrap;background:0 0;border:none;flex-shrink:0;align-items:center;gap:4px;padding:0;font-size:12px;font-weight:600;display:inline-flex}.cu-photo-filled .cu-photo-clear:hover{text-decoration:underline}.cu-photo-preview{border:1px solid var(--border);background:#fafafa;border-radius:10px;align-items:center;gap:12px;min-height:92px;padding:10px 12px;display:flex}.cu-photo-preview img{object-fit:cover;border-radius:8px;width:56px;height:56px}.cu-photo-preview-meta{flex-direction:column;gap:4px;min-width:0;display:flex}.cu-photo-preview-meta strong{color:var(--text);text-overflow:ellipsis;white-space:nowrap;font-size:13px;overflow:hidden}.cu-photo-clear{color:#dc2626;cursor:pointer;background:0 0;border:none;width:fit-content;padding:0;font-size:12.5px;font-weight:600}.cu-toggle-grid{grid-template-columns:1fr 1fr;gap:14px 18px;display:grid}.cuw-security-status-row{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:12px;display:grid}.cuw-security-status-row>.cu-card{height:100%}.cu-grid-security{margin-bottom:0}.cu-toggle-row{align-items:flex-start;gap:12px;display:flex}.cu-toggle-row .toggle{cursor:pointer;border:none;flex-shrink:0;margin-top:2px}.cu-toggle-row>div{flex-direction:column;gap:2px;min-width:0;display:flex}.cu-toggle-caption{color:var(--text-muted);font-size:11.5px;font-weight:600}.cu-toggle-row strong{color:var(--text);font-size:13.5px;font-weight:650}.cu-toggle-row span:last-child{color:var(--text-muted);font-size:12px;line-height:1.35}.cu-toggle-label-with-info{align-items:center;gap:5px;display:inline-flex}.cu-toggle-label-with-info svg{color:var(--text-muted)}.cu-table-wrap{border:1px solid var(--border);background:#fff;border-radius:10px;overflow:auto}.cu-table{border-collapse:collapse;width:100%;min-width:560px}.cu-table th,.cu-table td{text-align:center;vertical-align:middle;color:var(--text);border-bottom:1px solid #f1f5f9;padding:10px 12px;font-size:12.5px}.cu-table th{color:#64748b;white-space:nowrap;background:#f8fafc;font-size:11.5px;font-weight:650}.cu-table tbody tr:last-child td{border-bottom:none}.cu-table th.is-actions,.cu-table td.is-actions{text-align:center;white-space:nowrap;width:84px}.cu-empty{text-align:center;color:var(--text-muted);padding:24px 12px!important}.cu-facility-chips{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.cu-facility-chip{color:#0369a1;background:#e0f2fe;border-radius:999px;align-items:center;gap:4px;padding:3px 8px;font-size:11.5px;font-weight:600;line-height:1.2;display:inline-flex}.cu-facility-chip-x{color:#0284c7;cursor:pointer;background:0 0;border:none;border-radius:999px;place-items:center;width:16px;height:16px;padding:0;display:grid}.cu-facility-chip-x:hover{background:#0ea5e92e}.cu-facility-more{color:#475569;background:#f1f5f9;border-radius:999px;align-items:center;padding:3px 8px;font-size:11.5px;font-weight:700;display:inline-flex}.cu-primary-badge{border-radius:999px;justify-content:center;align-items:center;min-width:42px;padding:3px 10px;font-size:11.5px;font-weight:700;display:inline-flex}.cu-primary-badge.is-yes{color:#047857;background:#d1fae5}.cu-primary-badge.is-no{color:#64748b;background:#f1f5f9}.cu-icon-btn{color:#64748b;cursor:pointer;background:0 0;border:none;border-radius:6px;place-items:center;width:28px;height:28px;display:inline-grid}.cu-icon-btn:hover{color:var(--text);background:#f1f5f9}.cu-icon-btn.is-danger{color:#dc2626}.cu-icon-btn.is-danger:hover{background:var(--danger-bg)}.cu-info-box{color:#1e40af;background:#eff6ff;border:1px solid #bfdbfe;border-radius:8px;align-items:flex-start;gap:8px;margin-top:12px;padding:10px 12px;font-size:12.5px;line-height:1.4;display:flex}.cu-info-box svg{color:#2563eb;flex-shrink:0;margin-top:1px}.cu-footer-actions{z-index:15;background:linear-gradient(#f8fafc00 0%,#f8fafc 28%);justify-content:flex-end;gap:10px;margin-top:18px;padding:14px 0 4px;display:flex;position:sticky;bottom:0}.cu-btn-ghost{color:#64748b;box-shadow:none;background:0 0;border:none}.cu-btn-ghost:hover{color:var(--text);background:#f1f5f9}.cu-back-btn{height:36px;padding:0 12px;font-size:13px}.cu-assign-modal{width:min(480px,94vw)}.cu-assign-body{flex-direction:column;gap:12px;display:flex}.cu-facility-checklist{border:1px solid var(--border);background:#fafafa;border-radius:8px;flex-direction:column;gap:8px;padding:10px 12px;display:flex}.cu-primary-check{margin-top:2px}.cu-users-empty{border:1px solid var(--border);text-align:center;background:#fff;border-radius:12px;flex-direction:column;align-items:center;gap:8px;margin-top:24px;padding:48px 24px;display:flex}.cu-users-empty-icon{background:var(--brand-muted);width:56px;height:56px;color:var(--brand);border-radius:14px;place-items:center;margin-bottom:6px;display:grid}.cu-users-empty h2{color:var(--text);margin:0;font-size:18px}.cu-users-empty p{max-width:420px;color:var(--text-muted);margin:0 0 10px;font-size:13.5px;line-height:1.5}.nav-sub button.nav-sub-link{text-align:center;cursor:pointer;width:100%;font:inherit;background:0 0;border:none}@media (width<=1180px){.cu-layout{grid-template-columns:1fr}.cu-grid-4,.cu-grid-5{grid-template-columns:repeat(2,minmax(0,1fr))}.cuw-security-status-row{grid-template-columns:1fr}}@media (width<=760px){.cu-grid-3,.cu-grid-2,.cu-grid-4,.cu-grid-5,.cu-grid-photo,.cu-toggle-grid{grid-template-columns:1fr}.cu-card-header{flex-direction:column;align-items:stretch}.cu-footer-actions{flex-wrap:wrap}.cu-footer-actions .btn{flex:auto}}:is(html:has(.cuw-page),body:has(.cuw-page)){height:100%;overflow:hidden}.app-shell:has(.cuw-page){height:100dvh;max-height:100dvh;overflow:hidden}.main-column:has(.cuw-page){height:100dvh;max-height:100dvh;overflow:hidden}.page-content:has(.cuw-page){min-height:0;height:calc(100dvh - var(--topbar-h));max-height:calc(100dvh - var(--topbar-h));box-sizing:border-box;flex-direction:column;flex:1;padding-top:12px;padding-bottom:12px;display:flex;overflow:hidden auto}.cuw-page.cu-page{flex-direction:column;flex:auto;justify-content:flex-start;gap:10px;min-height:0;padding-bottom:20px;display:flex;overflow:visible}.cuw-step-body{flex-direction:column;flex:auto;min-height:0;display:flex;overflow:auto}.cuw-page.is-step-1{justify-content:flex-start}.cuw-details-stack{flex-direction:column;gap:28px;width:100%;min-height:0;padding-bottom:8px;display:flex}.cuw-details-section{flex-direction:column;gap:12px;width:100%;min-width:0;display:flex}.cuw-section-heading{color:var(--text);align-items:center;gap:10px;margin:0;font-size:16px;font-weight:700;display:flex}.cuw-section-num{background:var(--brand);color:#fff;border-radius:999px;flex-shrink:0;justify-content:center;align-items:center;width:26px;height:26px;font-size:13px;font-weight:700;display:inline-flex}.cuw-page.is-step-1 .cuw-basic,.cuw-page.is-step-1 .cuw-access{overflow:visible}.cuw-page .app-page-header{flex-shrink:0;gap:2px;margin-bottom:0}.cuw-page .app-page-header-row.has-subtitle{min-height:0}.cuw-page .app-page-header-titles{gap:2px}.cuw-page .app-page-header h1{font-size:22px;line-height:1.15}.cuw-page .app-page-header .page-subtitle{max-width:72ch;font-size:12.5px}.cuw-stepper{flex-shrink:0;align-items:flex-start;gap:0;padding:4px 4px 8px;display:flex}.cuw-step-item{flex:1;align-items:center;min-width:0;display:flex}.cuw-step-item:first-child{flex:0 auto}.cuw-step-line{background:var(--border);flex:1;min-width:24px;height:2px;margin:0 12px}.cuw-step-line.is-complete{background:var(--brand)}.cuw-step{text-align:center;flex-direction:row;align-items:center;gap:8px;max-width:none;display:flex}.cuw-step-num{border:1.5px solid var(--border-strong);width:28px;height:28px;color:var(--text-muted);background:#fff;border-radius:999px;place-items:center;font-size:13px;font-weight:700;display:inline-grid}.cuw-step-label{color:var(--text-muted);white-space:nowrap;font-size:12.5px;font-weight:650;line-height:1.25}.cuw-step.is-done .cuw-step-num{border-color:var(--brand);color:var(--brand);background:#fff}.cuw-step.is-active .cuw-step-num{border-color:var(--brand);background:var(--brand);color:#fff}.cuw-step.is-active .cuw-step-label,.cuw-step.is-done .cuw-step-label{color:var(--text);font-weight:700}.cuw-basic{flex-direction:column;flex:1;gap:12px;min-height:0;display:flex;overflow:hidden}.cuw-basic-main-row{grid-template-columns:minmax(0,1fr) minmax(240px,300px);align-items:stretch;gap:12px;display:grid}.cuw-basic-main-row>.cu-card{min-width:0;height:100%}.cuw-account-status-card .cu-toggle-grid-vertical,.cu-toggle-grid-vertical{grid-template-columns:1fr;gap:16px}.cuw-account-status-card .cu-toggle-row{align-items:flex-start}.cuw-page.is-step-1 .cuw-account-status-card .cu-toggle-grid-vertical{gap:14px}@media (width<=1180px){.cuw-basic-main-row{grid-template-columns:1fr}}.cuw-page.is-step-1 .cuw-basic{flex:auto;overflow:visible}.cuw-page.is-step-1 .cu-grid-4,.cuw-page.is-step-1 .cu-grid-5{align-items:start}.cuw-page.is-step-1 .cu-card{padding:14px 16px 16px}.cuw-page.is-step-1 .cu-grid{gap:8px 12px;margin-bottom:8px}.cuw-page.is-step-1 .filter-field{gap:3px}.cuw-page.is-step-1 .cu-grid-photo{align-items:start}.cuw-page.is-step-1 .cu-photo-upload:not(.cu-photo-upload-inline){flex-direction:column;justify-content:center;gap:4px;height:auto;min-height:72px;padding:10px 12px}.cuw-page.is-step-1 .cu-photo-preview:not(.cu-photo-preview-inline){height:auto;min-height:72px;padding:10px 12px}.cuw-page.is-step-1 .cu-photo-upload-inline{height:36px;min-height:36px}.cuw-page.is-step-1 .cu-photo-preview-inline{height:36px;min-height:36px;padding:4px 8px}.cuw-page.is-step-1 .cu-photo-preview:not(.cu-photo-preview-inline) img{width:40px;height:40px}.cuw-page.is-step-1 .cu-photo-upload:not(.cu-photo-upload-inline) strong,.cuw-page.is-step-1 .cu-photo-upload:not(.cu-photo-upload-inline) span{text-align:center}.cuw-page.is-step-1 .cu-toggle-row>div{gap:0}.cuw-page.is-step-1 .cu-toggle-grid{gap:6px 16px}.cuw-page.is-step-1 .cu-toggle-grid-vertical{grid-template-columns:1fr;gap:14px}.cuw-panel-title{color:var(--text);margin:0 0 12px;font-size:15px;font-weight:700}.cuw-access{flex:none;grid-template-columns:minmax(240px,280px) minmax(0,1fr);align-items:start;gap:16px;min-height:0;display:grid;overflow:visible}.cuw-summary,.cuw-assign{border:1px solid var(--border);background:#fff;border-radius:12px;padding:16px 16px 18px}.cuw-summary h2{letter-spacing:.06em;text-transform:uppercase;color:var(--text);margin:0;font-size:12px;font-weight:800}.cuw-summary>p,.cuw-assign-head p{color:#64748b;margin:6px 0 14px;font-size:12.5px;line-height:1.4}.cuw-summary-card{border:1px solid var(--border);border-radius:10px;grid-template-rows:auto auto;grid-template-columns:32px minmax(0,1fr);gap:6px 10px;margin-bottom:10px;padding:12px;display:grid}.cuw-summary-card.is-org{background:#eff6ff;border-color:#dbeafe}.cuw-summary-card.is-branch{background:#ecfdf5;border-color:#d1fae5}.cuw-summary-card.is-facility{background:#fff7ed;border-color:#ffedd5}.cuw-summary-icon{border-radius:8px;grid-row:1/3;place-items:center;width:32px;height:32px;display:inline-grid}.cuw-summary-card.is-org .cuw-summary-icon{color:#2563eb;background:#dbeafe}.cuw-summary-card.is-branch .cuw-summary-icon{color:#059669;background:#d1fae5}.cuw-summary-card.is-facility .cuw-summary-icon{color:#ea580c;background:#ffedd5}.cuw-summary-copy{justify-content:space-between;align-items:center;gap:8px;display:flex}.cuw-summary-copy span{color:var(--text-secondary);font-size:12.5px;font-weight:650}.cuw-summary-copy strong{color:var(--text);font-size:20px;font-weight:800;line-height:1}.cuw-primary-chip{color:#047857;background:#d1fae5;border-radius:999px;grid-column:2;align-items:center;width:fit-content;max-width:100%;padding:3px 8px;font-size:11px;font-weight:700;line-height:1.3;display:inline-flex}.cuw-info-box{color:#1d4ed8;background:#eff6ff;border:1px solid #dbeafe;border-radius:10px;align-items:flex-start;gap:8px;margin-top:6px;padding:10px 12px;display:flex}.cuw-info-box p{color:#1e3a8a;margin:0;font-size:12.5px;line-height:1.4}.cuw-info-box svg{flex-shrink:0;margin-top:1px}.cuw-assign-head h2{color:var(--text);margin:0;font-size:16px;font-weight:700}.cuw-org-list{flex-direction:column;gap:12px;display:flex}.cuw-org-card{border:1px solid var(--border);background:#fff;border-radius:12px;overflow:hidden}.cuw-org-card.is-selected{border-color:#99f6e4}.cuw-org-header.is-clickable{cursor:pointer;-webkit-user-select:none;user-select:none}.cuw-org-header{background:#f8fafc;align-items:center;gap:10px;padding:12px 14px;display:flex}.cuw-check{cursor:pointer;align-items:center;gap:8px;min-width:0;display:inline-flex}.cuw-check strong{color:var(--text);font-size:13.5px}.cuw-org-icon{width:28px;height:28px;color:var(--brand);background:#ecfeff;border-radius:8px;flex-shrink:0;place-items:center;display:inline-grid}.cuw-org-badge{background:var(--brand-soft);height:22px;color:var(--brand-dark);white-space:nowrap;border-radius:999px;align-items:center;padding:0 8px;font-size:11px;font-weight:700;display:inline-flex}.cuw-set-primary{color:var(--brand);cursor:pointer;white-space:nowrap;background:0 0;border:none;padding:0;font-size:12px;font-weight:650}.cuw-set-primary:hover{text-decoration:underline}.cuw-org-meta{color:#64748b;white-space:nowrap;margin-left:auto;font-size:12.5px}.cuw-icon-btn{color:#64748b;cursor:pointer;background:0 0;border:none;border-radius:6px;place-items:center;width:28px;height:28px;display:inline-grid}.cuw-icon-btn:hover{color:var(--text);background:#e2e8f0}.cuw-org-body{border-top:1px solid var(--border);padding:12px}.cuw-split{grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:12px;display:grid}.cuw-panel{border:1px solid var(--border);background:#fff;border-radius:10px;overflow:hidden}.cuw-panel-head{justify-content:space-between;align-items:flex-start;gap:10px;padding:12px 12px 10px;display:flex}.cuw-panel-head h3{color:var(--text);margin:0;font-size:13.5px;font-weight:700}.cuw-panel-head p{color:#64748b;margin:3px 0 0;font-size:12px}.cuw-add-btn{white-space:nowrap;height:32px;padding:0 10px;font-size:12.5px}.cuw-table-wrap{overflow-x:auto}.cuw-table{border-collapse:collapse;width:100%}.cuw-table th,.cuw-table td{text-align:center;color:var(--text);vertical-align:middle;border-top:1px solid #f1f5f9;padding:10px 12px;font-size:12.5px}.cuw-table th{color:#64748b;border-top:1px solid var(--border);background:#f8fafc;font-size:11.5px;font-weight:650}.cuw-table th.is-check,.cuw-table td.is-check{text-align:center;width:36px}.cuw-table tbody tr.is-active{background:var(--brand-muted)}.cuw-row-name,.cuw-fac-count{color:inherit;font:inherit;cursor:pointer;background:0 0;border:none;align-items:center;gap:4px;padding:0;display:inline-flex}.cuw-row-name:hover,.cuw-fac-count:hover{color:var(--brand)}.cuw-row-name:disabled,.cuw-fac-count:disabled{cursor:default;color:var(--text-muted)}.cuw-radio{color:#64748b;cursor:pointer;white-space:nowrap;align-items:center;gap:6px;font-size:12px;display:inline-flex}.cuw-radio.is-on{color:var(--brand-dark);font-weight:700}.cuw-empty{color:#64748b;text-align:center!important;padding:20px 12px!important}.cuw-roles{border:1px solid var(--border);background:#fff;border-radius:12px;flex-direction:column;gap:14px;min-width:0;padding:16px 16px 18px;display:flex}.cuw-roles-head{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.cuw-roles-head p{color:#64748b;margin:6px 0 0;font-size:12.5px;line-height:1.4}.cuw-roles-count{color:var(--text-muted);flex-shrink:0;padding-top:4px;font-size:12.5px;font-weight:600}.cuw-roles-search{border:1px solid var(--border);background:#fff;border-radius:8px;align-items:center;gap:8px;padding:0 12px;display:flex}.cuw-roles-search input{background:0 0;border:0;outline:none;flex:1;height:38px;font-size:13.5px}.cuw-roles-table-wrap{border:1px solid var(--border);border-radius:10px;max-height:min(52vh,480px);overflow:auto}.cuw-roles-table{border-collapse:collapse;width:100%;font-size:13px}.cuw-roles-table th,.cuw-roles-table td{text-align:left;color:var(--text);vertical-align:middle;border-top:1px solid #f1f5f9;border-bottom:none;padding:10px 12px;font-size:12.5px}.cuw-roles-table thead th{border-top:none}.cuw-roles-table th{text-transform:uppercase;letter-spacing:.03em;color:#fff;background:var(--brand-dark);z-index:1;border-color:#ffffff1f;font-size:11.5px;font-weight:700;position:sticky;top:0}.cuw-roles-table th.is-check,.cuw-roles-table td.is-check{text-align:center;width:44px}.cuw-roles-table tbody tr:hover td{background:#f8fafc}.cuw-roles-table tr.is-selected td,.cuw-roles-table tbody tr.is-selected:hover td{background:var(--brand-muted)}.cuw-roles-empty{text-align:center;color:#64748b;padding:28px 12px!important}.cuw-roles-name-cell{align-items:center;gap:10px;display:flex}.cuw-roles-name-cell strong{color:var(--text);font-size:13.5px;display:block}.cuw-roles-name-cell span{color:#64748b;font-size:12px;display:block}.cuw-roles-icon{background:color-mix(in srgb, var(--brand) 12%, white);width:28px;height:28px;color:var(--brand);border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}.cuw-roles-primary{gap:6px;max-width:360px;display:grid}.cuw-roles-primary label{color:var(--text);font-size:12.5px;font-weight:600}.cuw-roles-primary-hint{color:#64748b;margin:0;font-size:12px}.cuw-roles-table td.is-empty{color:#94a3b8}.cuw-roles-perm-cell{position:relative}.cuw-roles-perm-btn{color:var(--brand);font:inherit;cursor:pointer;text-underline-offset:2px;background:0 0;border:none;padding:0;font-weight:700;text-decoration:underline}.cuw-roles-perm-btn:hover,.cuw-roles-perm-btn.is-open{color:var(--brand-dark)}.cuw-roles-perm-btn:disabled{color:#94a3b8;cursor:default;font-weight:600;text-decoration:none}.cuw-roles-perm-popover{z-index:40;border:1px solid var(--border);text-align:left;background:#fff;border-radius:10px;flex-direction:column;gap:8px;width:min(320px,72vw);max-height:min(320px,50vh);padding:10px 12px;display:flex;position:absolute;top:calc(100% + 6px);right:0;box-shadow:0 12px 28px #0f172a24}.cuw-roles-perm-popover-head{justify-content:space-between;align-items:flex-start;gap:8px;display:flex}.cuw-roles-perm-popover-head strong{color:var(--text);font-size:13px;display:block}.cuw-roles-perm-popover-head span{color:#64748b;margin-top:2px;font-size:12px;display:block}.cuw-roles-perm-empty{color:#64748b;margin:0;padding:8px 0 4px;font-size:12.5px}.cuw-roles-perm-list{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex;overflow:auto}.cuw-roles-perm-list li{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:8px 10px}.cuw-roles-perm-list strong{color:var(--text);font-size:12.5px;display:block}.cuw-roles-perm-list span{color:#64748b;margin-top:2px;font-size:11.5px;display:block}.cuw-footer{z-index:4;border-top:1px solid var(--border);background:0 0;flex-shrink:0;justify-content:space-between;align-items:center;gap:12px;margin-top:auto;margin-bottom:8px;padding:20px 0 0;display:flex;position:static}.cuw-add-dialog{width:min(440px,94vw)}.cuw-review{flex:none;grid-template-columns:minmax(280px,.92fr) minmax(0,1.7fr);align-items:start;gap:16px;min-height:0;display:grid;overflow:visible}.cuw-review-left,.cuw-review-right{flex-direction:column;gap:14px;min-width:0;display:flex}.cuw-review-card{border:1px solid var(--border);background:#fff;border-radius:12px;padding:16px 16px 14px}.cuw-review-card h2,.cuw-review-section-title{letter-spacing:.06em;text-transform:uppercase;color:var(--text);margin:0 0 14px;font-size:12px;font-weight:800}.cuw-user-head{border-bottom:1px solid #f1f5f9;align-items:center;gap:12px;margin-bottom:4px;padding-bottom:14px;display:flex}.cuw-user-avatar{object-fit:cover;border-radius:999px;flex-shrink:0;width:44px;height:44px}.cuw-user-avatar.is-initials{background:var(--brand);color:#fff;letter-spacing:.02em;place-items:center;font-size:13px;font-weight:800;display:inline-grid}.cuw-user-head-copy{flex-direction:column;gap:1px;min-width:0;display:flex}.cuw-user-head-copy strong{color:var(--text);font-size:14.5px;font-weight:800}.cuw-user-head-copy span{color:#64748b;font-size:12.5px}.cuw-status-pill{white-space:nowrap;border-radius:999px;align-items:center;gap:6px;margin-left:auto;padding:4px 10px;font-size:12px;font-weight:700;display:inline-flex}.cuw-status-pill.is-active{color:var(--brand);background:#ecfdf5}.cuw-status-pill.is-inactive{color:#64748b;background:#f1f5f9}.cuw-status-text{align-items:center;gap:6px;font-weight:700;display:inline-flex}.cuw-status-text.is-active{color:var(--brand)}.cuw-status-text.is-inactive{color:#64748b}.cuw-status-dot{background:currentColor;border-radius:50%;width:7px;height:7px}.cuw-info-list{flex-direction:column;display:flex}.cuw-info-row{border-bottom:1px solid #f8fafc;grid-template-columns:22px minmax(0,1fr) auto;align-items:center;gap:10px;padding:9px 0;display:grid}.cuw-info-row:last-child{border-bottom:0;padding-bottom:2px}.cuw-info-icon{color:var(--text-muted);place-items:center;display:inline-grid}.cuw-info-label{letter-spacing:.05em;text-transform:uppercase;color:var(--text-muted);font-size:11px;font-weight:700}.cuw-info-value{color:var(--text);text-align:right;font-size:13.5px;font-weight:650}.cuw-kpi-row{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;display:grid}.cuw-kpi{border:1px solid #0000;border-radius:12px;align-items:center;gap:10px;min-height:72px;padding:12px;display:flex}.cuw-kpi-icon{border-radius:8px;flex-shrink:0;place-items:center;width:32px;height:32px;display:inline-grid}.cuw-kpi div{flex-direction:column;gap:2px;min-width:0;display:flex}.cuw-kpi strong{color:var(--text);text-overflow:ellipsis;white-space:nowrap;font-size:15px;font-weight:800;line-height:1.2;overflow:hidden}.cuw-kpi span{color:#64748b;font-size:12px;font-weight:650}.cuw-kpi.is-blue{background:#eff6ff;border-color:#dbeafe}.cuw-kpi.is-blue .cuw-kpi-icon{color:#2563eb;background:#dbeafe}.cuw-kpi.is-green{background:#ecfdf5;border-color:#d1fae5}.cuw-kpi.is-green .cuw-kpi-icon{color:#059669;background:#d1fae5}.cuw-kpi.is-purple{background:#f5f3ff;border-color:#ede9fe}.cuw-kpi.is-purple .cuw-kpi-icon{color:#7c3aed;background:#ede9fe}.cuw-kpi.is-amber{background:#fffbeb;border-color:#fef3c7}.cuw-kpi.is-amber .cuw-kpi-icon{color:#d97706;background:#fef3c7}.cuw-org-review-list{flex-direction:column;gap:14px;display:flex}.cuw-org-review{background:#fbfdff;border:1px solid #eef2f7;border-radius:10px;padding:12px 12px 8px}.cuw-org-review header{border-bottom:1px solid #eef2f7;align-items:center;gap:10px;margin-bottom:8px;padding-bottom:10px;display:flex}.cuw-org-review-icon{width:30px;height:30px;color:var(--brand);background:#ecfdf5;border-radius:8px;flex-shrink:0;place-items:center;display:inline-grid}.cuw-org-review-title{flex-wrap:wrap;align-items:center;gap:8px;min-width:0;display:flex}.cuw-org-review-title strong{color:var(--text);font-size:13.5px;font-weight:800}.cuw-org-review-meta{color:#64748b;white-space:nowrap;margin-left:auto;font-size:12px;font-weight:650}.cuw-org-table{flex-direction:column;gap:2px;display:flex}.cuw-org-table-head,.cuw-org-table-row{grid-template-columns:minmax(140px,.7fr) minmax(0,1fr) 88px;align-items:start;gap:12px;display:grid}.cuw-org-table-head{letter-spacing:.05em;text-transform:uppercase;color:var(--text-muted);padding:0 4px 6px;font-size:11px;font-weight:800}.cuw-org-table-row{padding:8px 4px}.cuw-org-branch{align-items:center;gap:8px;min-width:0;display:flex}.cuw-org-branch strong{color:var(--text);font-size:13.5px;font-weight:700}.cuw-branch-dot{background:var(--brand);border-radius:50%;flex-shrink:0;width:8px;height:8px}.cuw-org-facilities{flex-direction:column;gap:4px;margin:0;padding:0;list-style:none;display:flex}.cuw-org-facilities li{color:var(--text-secondary);align-items:center;gap:5px;font-size:13px;display:flex}.cuw-org-facilities li.is-primary{color:var(--brand);font-weight:700}.cuw-org-facilities li.is-empty{color:var(--text-muted)}.cuw-org-table-count{color:#64748b;text-align:right;padding-top:1px;font-size:12px;font-weight:650}.cuw-kpi.is-teal{background:color-mix(in srgb, var(--brand) 10%, white)}.cuw-kpi.is-teal .cuw-kpi-icon{background:color-mix(in srgb, var(--brand) 18%, white);color:var(--brand-dark)}.cuw-role-review-list{flex-direction:column;gap:10px;margin:0;padding:0;list-style:none;display:flex}.cuw-role-review-list li{border:1px solid var(--border);background:#f8fafc;border-radius:10px;align-items:center;gap:10px;padding:10px 12px;display:flex}.cuw-role-review-list li.is-primary{border-color:color-mix(in srgb, var(--brand) 35%, var(--border));background:color-mix(in srgb, var(--brand) 8%, white)}.cuw-role-review-icon{background:color-mix(in srgb, var(--brand) 12%, white);width:28px;height:28px;color:var(--brand);border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}.cuw-role-review-copy{flex:1;min-width:0}.cuw-role-review-copy strong{color:var(--text);font-size:13.5px;display:block}.cuw-role-review-copy span{color:#64748b;margin-top:2px;font-size:12px;display:block}.cuw-review-empty{color:#64748b;margin:0;font-size:13px}@media (width<=1100px){.cuw-access,.cuw-split{grid-template-columns:1fr}.cuw-kpi-row{grid-template-columns:repeat(2,minmax(0,1fr))}.cuw-org-header{flex-wrap:wrap}.cuw-org-meta,.cuw-org-review-meta{width:100%;margin-left:0}.cuw-org-review header{flex-wrap:wrap}}@media (width<=980px){.cuw-review{grid-template-columns:1fr}}@media (height<=820px){.page-content:has(.cuw-page){padding-top:8px;padding-bottom:6px}.cuw-page.cu-page{gap:6px}.cuw-page .app-page-header h1{font-size:20px}.cuw-page.is-step-1 .cu-card{padding:8px 12px 10px}.cuw-page.is-step-1 .cuw-panel-title{margin-bottom:6px}}@media (width<=720px){.cuw-page.is-step-1 .cuw-basic{overflow:auto}.cuw-kpi-row{grid-template-columns:1fr}.cuw-org-table-head,.cuw-org-table-row{grid-template-columns:1fr;gap:6px}.cuw-org-table-head span:nth-child(3),.cuw-org-table-count{text-align:left}.cuw-info-row{grid-template-columns:22px minmax(0,1fr)}.cuw-info-value{text-align:left;grid-column:2}.cuw-footer{flex-wrap:wrap}.cuw-footer .btn{flex:auto}.cuw-step-label{white-space:normal;font-size:11.5px}.cuw-step{text-align:center;flex-direction:column;gap:4px}.cuw-step-line{align-self:flex-start;margin-top:13px}}.ul-page{min-width:0}.ul-page .app-page-header .page-subtitle{max-width:72ch}.ul-card{border:1px solid var(--border);background:#fff;border-radius:12px;overflow:hidden}.ul-toolbar{border-bottom:1px solid var(--border);flex-wrap:wrap;align-items:center;gap:10px;padding:14px 16px;display:flex}.ul-search{flex:240px;min-width:220px;max-width:360px;position:relative}.ul-search input{border:1px solid var(--border);width:100%;height:38px;color:var(--text);background:#fff;border-radius:8px;padding:0 12px 0 36px;font-size:13px}.ul-search input:focus{border-color:#99f6e4;outline:none;box-shadow:0 0 0 3px #0d94881f}.ul-search svg{color:var(--text-muted);pointer-events:none;position:absolute;top:50%;left:12px;transform:translateY(-50%)}.ul-select{border:1px solid var(--border);min-width:128px;height:38px;color:var(--text-secondary);appearance:none;background:#fff 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='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") right 10px center no-repeat;border-radius:8px;padding:0 28px 0 12px;font-size:13px}.ul-select:focus{border-color:#99f6e4;outline:none;box-shadow:0 0 0 3px #0d94881f}.ul-tool-btn{white-space:nowrap;height:38px;padding:0 12px}.ul-table-wrap{overflow-x:auto}.ul-table{border-collapse:collapse;width:100%;min-width:1080px}.ul-table th,.ul-table td{text-align:center;vertical-align:middle;color:var(--text);border-bottom:1px solid #f1f5f9;padding:12px 14px;font-size:13px}.ul-table th{color:#64748b;white-space:nowrap;background:#f8fafc;font-size:12px;font-weight:650}.ul-table tbody tr:hover{background:#fafafa}.ul-table tbody tr.is-selected{background:var(--brand-muted)}.ul-table th.is-check,.ul-table td.is-check{text-align:center;width:44px}.ul-table th.is-center,.ul-table td.is-center{text-align:center}.ul-table th.is-actions,.ul-table td.is-actions{text-align:center;white-space:nowrap;width:118px}.ul-user-cell{align-items:center;gap:10px;min-width:160px;display:flex}.ul-user-cell>div{min-width:0}.ul-user-cell strong{color:var(--text);font-size:13.5px;font-weight:650;line-height:1.25;display:block}.ul-user-cell>div>span{color:var(--text-muted);font-size:12px;line-height:1.25;display:block}.ul-avatar{text-align:center;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:36px;height:36px;font-size:12px;font-weight:700;line-height:1;overflow:hidden;color:#fff!important;display:inline-flex!important}.ul-avatar-img{object-fit:cover;background:#e2e8f0;padding:0;display:block!important}.ul-status-badge{border-radius:999px;justify-content:center;align-items:center;min-width:68px;padding:4px 10px;font-size:12px;font-weight:700;display:inline-flex}.ul-status-badge.is-active{color:#047857;background:#d1fae5}.ul-status-badge.is-inactive{color:#b91c1c;background:#fee2e2}.ul-primary-access{min-width:180px;color:var(--text-secondary);flex-direction:column;gap:1px;font-size:12.5px;line-height:1.35;display:flex}.ul-primary-access span:first-child{color:var(--text);font-weight:600}.ul-icon-btn{color:#64748b;cursor:pointer;background:0 0;border:none;border-radius:6px;place-items:center;width:30px;height:30px;display:inline-grid}.ul-icon-btn:hover{color:var(--text);background:#f1f5f9}.ul-icon-btn.is-danger{color:#dc2626}.ul-icon-btn.is-danger:hover{background:var(--danger-bg)}.ul-empty{text-align:center!important;padding:48px 16px!important}.ul-empty strong{color:var(--text);margin-bottom:4px;font-size:15px;display:block}.ul-empty span{color:#64748b;font-size:13px}.ul-pagination{border-top:1px solid var(--border);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;display:flex}.ul-pagination-info{color:#64748b;font-size:12.5px}.ul-pagination-controls{align-items:center;gap:6px;display:flex}.ul-page-size{border:1px solid var(--border);height:32px;color:var(--text-secondary);appearance:none;background:#fff 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='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") right 8px center no-repeat;border-radius:8px;margin-left:6px;padding:0 28px 0 10px;font-size:12.5px}@media (width<=900px){.ul-search{flex:100%;max-width:none}}.ul-pagination-controls .page-btn{color:#475569;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:8px;justify-content:center;align-items:center;min-width:32px;height:32px;padding:0 8px;font-size:13px;font-weight:650;display:inline-flex}.ul-pagination-controls .page-btn:hover:not(:disabled){border-color:var(--border);background:#f8fafc}.ul-pagination-controls .page-btn.active{background:var(--brand);border-color:var(--brand);color:#fff}.ul-pagination-controls .page-btn:disabled{opacity:.4;cursor:default}.ul-page .ul-toolbar{flex-wrap:nowrap}.ul-page .ul-search{flex:220px;min-width:200px;max-width:280px}.ul-page .ul-select{flex:0 150px}.ul-page .ul-table{min-width:1180px}.ul-page .ul-pagination-controls .page-btn{border-radius:999px}@media (width<=900px){.ul-page .ul-toolbar{flex-wrap:wrap}.ul-page .ul-search{flex:100%;min-width:0;max-width:none}}.ul-access-bar{border-bottom:1px solid var(--border);background:#f8fbff;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;padding:12px 16px;display:flex}.ul-access-copy{align-items:center;gap:10px;min-width:0;display:flex}.ul-access-copy .ul-access-icon{color:#0284c7;background:#e0f2fe;border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;width:32px;height:32px;line-height:0;display:inline-flex}.ul-access-copy .ul-access-icon svg{display:block}.ul-access-copy strong{color:var(--text);font-size:13px;font-weight:700;line-height:1.3;display:block}.ul-access-copy>div span{color:var(--text-muted);font-size:12px;line-height:1.35;display:block}.ul-summary-cards{flex-wrap:wrap;align-items:stretch;gap:8px;display:flex}.ul-summary-card{border:1px solid #0000;border-radius:10px;align-items:center;gap:8px;min-width:132px;padding:8px 10px;display:flex}.ul-summary-card.is-blue{background:#eff6ff;border-color:#dbeafe}.ul-summary-card.is-green{background:#ecfdf5;border-color:#d1fae5}.ul-summary-card.is-purple{background:#f5f3ff;border-color:#ede9fe}.ul-summary-card.is-orange{background:#fff7ed;border-color:#ffedd5}.ul-summary-card .ul-summary-icon{border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;width:28px;height:28px;line-height:0;display:inline-flex}.ul-summary-card .ul-summary-icon svg{display:block}.ul-summary-card.is-blue .ul-summary-icon{color:#2563eb;background:#dbeafe}.ul-summary-card.is-green .ul-summary-icon{color:#059669;background:#d1fae5}.ul-summary-card.is-purple .ul-summary-icon{color:#7c3aed;background:#ede9fe}.ul-summary-card.is-orange .ul-summary-icon{color:#ea580c;background:#ffedd5}.ul-summary-card strong{color:var(--text);font-size:16px;font-weight:800;line-height:1.1;display:block}.ul-summary-card>div span{color:var(--text-muted);white-space:nowrap;font-size:11px;display:block}.ul-contact-cell{flex-direction:column;gap:4px;min-width:190px;display:flex}.ul-contact-cell span{color:var(--text-secondary);align-items:center;gap:6px;font-size:12.5px;line-height:1.3;display:inline-flex}.ul-contact-cell svg{color:var(--text-muted);flex-shrink:0}.ul-count-view{white-space:nowrap;align-items:center;gap:8px;display:inline-flex}.ul-count-num{color:var(--brand);font-size:13px;font-weight:700}.ul-view-link{color:var(--brand);cursor:pointer;background:0 0;border:none;padding:0;font-size:12.5px;font-weight:650}.ul-view-link:hover{text-decoration:underline}.ul-page-more{z-index:5}.ul-assign-overlay{z-index:80}.ul-assign-dialog{width:min(440px,94vw);padding:0;overflow:hidden}.ul-assign-title-row{align-items:flex-start;gap:10px;display:flex}.ul-assign-icon{background:var(--brand-muted);width:32px;height:32px;color:var(--brand);border-radius:8px;flex-shrink:0;place-items:center;display:inline-grid}.ul-assign-subtitle{color:#64748b;margin:2px 0 0;font-size:12px;font-weight:500}.ul-assign-body{padding-top:4px}.ul-assign-empty{color:#64748b;margin:0;font-size:13px}.ul-assign-list{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.ul-assign-list li{border:1px solid var(--border);background:#f8fafc;border-radius:8px;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;display:flex}.ul-assign-list strong{color:var(--text);font-size:13px;display:block}.ul-assign-list span{color:#64748b;font-size:12px;display:block}.ul-assign-primary{background:#d1fae5;border-radius:999px;flex-shrink:0;align-items:center;height:22px;padding:0 8px;font-weight:700;color:#047857!important;font-size:11px!important;display:inline-flex!important}@media (width<=1100px){.ul-access-bar{align-items:flex-start}.ul-summary-cards{width:100%}}@media (width<=720px){.ul-page .page-actions{justify-content:flex-start;width:100%}.ul-summary-card{flex:calc(50% - 8px);min-width:0}}.aa-overlay{background:#0f172a73}.aa-modal{border-radius:14px;flex-direction:column;width:min(560px,94vw);max-height:min(90vh,720px);padding:0;display:flex;overflow:hidden;box-shadow:0 20px 48px #0f172a38}.aa-header{justify-content:space-between;align-items:flex-start;gap:12px;padding:18px 20px 14px;display:flex}.aa-header h2{color:var(--text);margin:0;font-size:18px;font-weight:700}.aa-header p{color:#64748b;margin:4px 0 0;font-size:13px;line-height:1.4}.aa-steps{border-bottom:1px solid var(--border);align-items:center;gap:0;padding:4px 20px 16px;display:flex}.aa-step{flex:1;align-items:center;gap:8px;min-width:0;display:flex}.aa-step-line{background:var(--border-strong);flex-shrink:0;width:18px;height:1px;margin-right:4px}.aa-step-num{width:24px;height:24px;color:var(--text-muted);background:#fff;border:1.5px solid #cbd5e1;border-radius:999px;flex-shrink:0;place-items:center;font-size:12px;font-weight:700;display:inline-grid}.aa-step-label{color:var(--text-muted);white-space:nowrap;text-overflow:ellipsis;font-size:12.5px;font-weight:600;overflow:hidden}.aa-step.is-active .aa-step-num,.aa-step.is-done .aa-step-num{background:var(--brand);border-color:var(--brand);color:#fff}.aa-step.is-active .aa-step-label{color:var(--text);font-weight:700}.aa-step.is-done .aa-step-label{color:var(--brand-dark)}.aa-body{flex-direction:column;flex:1;gap:14px;padding:18px 20px;display:flex;overflow:auto}.aa-info{color:#1e40af;background:#eff6ff;border:1px solid #bfdbfe;border-radius:8px;align-items:flex-start;gap:8px;padding:10px 12px;font-size:12.5px;line-height:1.4;display:flex}.aa-info svg{color:#2563eb;flex-shrink:0;margin-top:1px}.aa-facility-list{border:1px solid var(--border);background:#fff;border-radius:8px;flex-direction:column;gap:2px;max-height:200px;padding:4px;display:flex;overflow:auto}.aa-facility-option{border-radius:6px;margin:0;padding:8px 10px}.aa-facility-option:hover{background:#f8fafc}.aa-facility-chips{flex-wrap:wrap;gap:6px;margin-top:10px;display:flex}.aa-empty{color:#64748b;text-align:center;margin:0;padding:14px;font-size:13px}.aa-footer{border-top:1px solid var(--border);background:#fff;justify-content:space-between;align-items:center;gap:10px;padding:14px 20px;display:flex}.aa-footer-right{align-items:center;gap:8px;margin-left:auto;display:flex}.aa-back{flex-shrink:0}.aa-modal .btn:disabled{opacity:.55;cursor:not-allowed}@media (width<=640px){.aa-steps{flex-direction:column;align-items:flex-start;gap:10px}.aa-step-line{display:none}.aa-footer{flex-wrap:wrap}.aa-footer-right{justify-content:flex-end;width:100%}}.aa-modal.is-wide{width:min(820px,96vw)}.aa-step-line.is-complete{background:var(--brand)}.aa-step.is-done .aa-step-num{justify-content:center;align-items:center;display:inline-flex}.aa-org-summary{color:var(--text);background:#eff6ff;border:1px solid #bfdbfe;border-radius:8px;justify-content:space-between;align-items:center;gap:12px;padding:11px 14px;font-size:13px;display:flex}.aa-org-label{color:#64748b;font-weight:500}.aa-org-summary strong{color:var(--text);font-weight:700}.aa-org-meta{color:#64748b;font-size:12.5px}.aa-change-btn{color:#2563eb;cursor:pointer;background:0 0;border:none;border-radius:6px;flex-shrink:0;align-items:center;gap:5px;padding:4px 6px;font-size:13px;font-weight:650;display:inline-flex}.aa-change-btn:hover{background:#2563eb14}.aa-branch-heading{margin-top:2px}.aa-branch-title{color:var(--text);font-size:13.5px;font-weight:700}.aa-branch-hint{color:#64748b;font-size:12.5px;font-weight:500}.aa-branch-search{position:relative}.aa-branch-search input{border:1px solid var(--border);width:100%;height:38px;color:var(--text);background:#fff;border-radius:8px;padding:0 36px 0 12px;font-size:13px}.aa-branch-search input:focus{border-color:#99f6e4;outline:none;box-shadow:0 0 0 3px #0d94881f}.aa-branch-search svg{color:var(--text-muted);pointer-events:none;position:absolute;top:50%;right:12px;transform:translateY(-50%)}.aa-branch-table-wrap{border:1px solid var(--border);background:#fff;border-radius:10px;max-height:260px;overflow:auto}.aa-branch-table{border-collapse:collapse;width:100%;min-width:640px}.aa-branch-table th,.aa-branch-table td{text-align:center;vertical-align:middle;color:var(--text);border-bottom:1px solid #f1f5f9;padding:10px 12px;font-size:12.5px}.aa-branch-table th{color:#64748b;z-index:1;background:#f8fafc;font-size:11.5px;font-weight:650;position:sticky;top:0}.aa-branch-table tbody tr{cursor:pointer}.aa-branch-table tbody tr:hover{background:#fafafa}.aa-branch-table tbody tr.is-selected{background:var(--brand-muted)}.aa-branch-table tbody tr:last-child td{border-bottom:none}.aa-branch-table th.is-check,.aa-branch-table td.is-check{text-align:center;width:42px}.aa-branch-table input[type=checkbox]{width:15px;height:15px;accent-color:var(--brand);cursor:pointer}.aa-branch-empty{text-align:center;padding:28px 16px}.aa-branch-empty strong{color:var(--text);margin-bottom:4px;font-size:14px;display:block}.aa-branch-empty span{color:#64748b;font-size:12.5px}.aa-selected-box{border:1px solid var(--border);background:#fafafa;border-radius:10px;padding:12px 14px}.aa-selected-head{justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px;display:flex}.aa-selected-head strong{color:var(--text);font-size:13px}.aa-clear-all{color:#2563eb;cursor:pointer;background:0 0;border:none;padding:0;font-size:12.5px;font-weight:650}.aa-clear-all:hover{text-decoration:underline}.aa-selected-chips{flex-wrap:wrap;gap:8px;display:flex}.aa-branch-chip{color:#0369a1;background:#e0f2fe;border:1px solid #bae6fd;border-radius:999px;align-items:center;gap:6px;padding:5px 10px;font-size:12px;font-weight:650;display:inline-flex}.aa-branch-chip button{color:#0284c7;cursor:pointer;background:0 0;border:none;border-radius:999px;place-items:center;width:16px;height:16px;padding:0;display:grid}.aa-branch-chip button:hover{background:#0ea5e92e}.aa-selected-empty{color:#64748b;margin:0;font-size:12.5px}.aa-summary-stack{flex-direction:column;gap:8px;display:flex}.aa-summary-text{min-width:0;line-height:1.45}.aa-summary-text strong{color:var(--text);word-break:break-word;font-weight:700}.aa-facility-table-wrap{max-height:280px}.aa-facility-table{min-width:760px}.aa-facility-table th:nth-child(2),.aa-facility-table td:nth-child(2){min-width:120px}.aa-facility-table th:nth-child(3),.aa-facility-table td:nth-child(3){white-space:nowrap;min-width:96px}.aa-facility-table th:nth-child(4),.aa-facility-table td:nth-child(4){min-width:110px}.aa-facility-table th:nth-child(5),.aa-facility-table td:nth-child(5){min-width:120px}.aa-facility-table th:nth-child(6),.aa-facility-table td:nth-child(6){min-width:180px}.ar-modal{width:min(980px,96vw);max-height:min(92vh,820px)}.ar-steps{gap:0}.ar-step-item{align-items:center;min-width:0;display:flex}.ar-step-item:first-child .aa-step,.ar-steps .aa-step{flex:none}.ar-step-connector{background:var(--border-strong);flex-shrink:0;width:120px;height:1.5px;margin:0 20px}.ar-step-connector.is-complete{background:var(--brand)}.ar-body{gap:12px}.ar-review-banner{border:1px solid var(--border);background:#fff;border-radius:10px;align-items:flex-start;gap:12px;padding:14px 16px;display:flex}.ar-review-icon{width:40px;height:40px;color:var(--brand);background:#ecfdf5;border-radius:999px;flex-shrink:0;place-items:center;display:inline-grid}.ar-review-banner h3{color:var(--text);margin:0;font-size:15px;font-weight:700}.ar-review-banner p{color:#64748b;margin:3px 0 0;font-size:13px}.ar-confirm-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;display:grid}.ar-confirm-card{border:1px solid var(--border);color:var(--brand);background:#f8fafc;border-radius:10px;align-items:flex-start;gap:10px;min-width:0;padding:12px 14px;display:flex}.ar-confirm-card svg{flex-shrink:0;margin-top:2px}.ar-confirm-card>div{flex-direction:column;gap:2px;min-width:0;display:flex}.ar-confirm-card strong{color:var(--text);word-break:break-word;font-size:12.5px;font-weight:700;line-height:1.35}.ar-assignments-head{margin-top:2px}.ar-assignments-head h3{color:var(--text);margin:0;font-size:14px;font-weight:700}.ar-assignments-head p{color:#64748b;margin:3px 0 0;font-size:12.5px}.ar-confirm-table-wrap{max-height:280px}.ar-confirm-table{min-width:780px}.ar-confirm-table tbody tr{cursor:default}.ar-confirm-table tbody tr:hover{background:0 0}.ar-confirm-role{flex-direction:column;gap:3px;min-width:180px;display:flex}.ar-confirm-role strong{color:var(--text);font-size:13px}.ar-confirm-role span{color:#64748b;font-size:12px;line-height:1.35}.ar-chip-static{cursor:default}.ar-chip-static button{display:none}.ar-primary-facility{white-space:nowrap;color:var(--text);font-weight:650}@media (width<=900px){.ar-confirm-summary{grid-template-columns:1fr}}.ar-context{background:#eff6ff;border:1px solid #bfdbfe;border-radius:10px;padding:12px 14px}.ar-context-title{color:#1e40af;margin-bottom:10px;font-size:12.5px;font-weight:700}.ar-context-grid{flex-direction:column;gap:10px;display:flex}.ar-context-row{color:#1d4ed8;align-items:flex-start;gap:10px;display:flex}.ar-context-row svg{flex-shrink:0;margin-top:2px}.ar-context-row>div{flex-direction:column;gap:1px;min-width:0;display:flex}.ar-context-label{color:#64748b;font-size:11.5px;font-weight:600;display:block}.ar-context-row strong{color:var(--text);word-break:break-word;font-size:13px;font-weight:700;line-height:1.35}.ar-context-empty{color:#64748b;margin:0;font-size:13px}.ar-role-table-wrap{max-height:320px}.ar-role-table{min-width:900px}.ar-role-table th.is-action,.ar-role-table td.is-action{text-align:center;white-space:nowrap;width:64px}.ar-role-name{white-space:nowrap;font-weight:700}.ar-role-desc{color:#64748b;max-width:220px}.ar-type-badge{white-space:nowrap;border-radius:999px;align-items:center;padding:3px 10px;font-size:11.5px;font-weight:650;display:inline-flex}.ar-type-badge.is-system{color:#15803d;background:#dcfce7;border:1px solid #bbf7d0}.ar-type-badge.is-custom{color:#475569;background:#f1f5f9;border:1px solid #e2e8f0}.ar-facilities-cell{min-width:220px}.ar-facility-chips{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.ar-facility-more{color:#0369a1;background:#e0f2fe;border:1px solid #bae6fd;border-radius:999px;justify-content:center;align-items:center;min-width:28px;height:24px;padding:0 8px;font-size:11.5px;font-weight:700;display:inline-flex}.ar-facility-empty-actions{flex-direction:column;align-items:flex-start;gap:6px;display:flex}.ar-facility-picker{position:relative}.ar-facility-select{border:1px solid var(--border);color:#64748b;cursor:pointer;text-align:left;background:#fff 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='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") right 8px center no-repeat;border-radius:8px;min-width:160px;height:32px;padding:0 28px 0 10px;font-size:12.5px}.ar-facility-select:disabled{opacity:.55;cursor:not-allowed}.ar-add-facility-btn{color:#2563eb;cursor:pointer;background:0 0;border:none;padding:0;font-size:12px;font-weight:650}.ar-all-facilities-link{color:#2563eb;cursor:pointer;background:0 0;border:none;padding:0;font-size:12.5px;font-weight:650}.ar-all-facilities-link:hover,.ar-add-facility-btn:hover,.ar-view-link:hover{text-decoration:underline}.ar-facility-menu{z-index:20;border:1px solid var(--border);background:#fff;border-radius:8px;min-width:180px;max-height:180px;padding:4px;position:absolute;top:calc(100% + 4px);left:0;overflow:auto;box-shadow:0 10px 24px #0f172a1f}.ar-facility-menu button{text-align:center;width:100%;color:var(--text);cursor:pointer;background:0 0;border:none;border-radius:6px;padding:8px 10px;font-size:12.5px;display:block}.ar-facility-menu button:hover{background:var(--brand-muted)}.ar-view-link{color:#2563eb;cursor:pointer;background:0 0;border:none;padding:0;font-size:12.5px;font-weight:650}.ar-footer{gap:12px}.ar-placeholder-step h3{color:var(--text);margin:0 0 8px;font-size:16px}.ar-placeholder-step p{color:#64748b;margin:0 0 14px;font-size:13px;line-height:1.45}.ar-scope-list{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.ar-scope-list li{border:1px solid var(--border);background:#f8fafc;border-radius:8px;flex-direction:column;gap:2px;padding:10px 12px;display:flex}.ar-scope-list strong{color:var(--text);font-size:13px}.ar-scope-list span{color:#64748b;font-size:12.5px}.ar-view-overlay{z-index:90}.ar-view-dialog{width:min(420px,92vw);padding:0;overflow:hidden}.ar-view-body{padding:0 20px 16px}.ar-view-body p{flex-direction:column;gap:4px;margin:0;display:flex}@media (width<=720px){.ar-modal{width:min(96vw,980px)}.ar-footer{flex-wrap:wrap}}.rl-page{flex-direction:column;gap:16px;min-width:0;display:flex}.rl-toolbar{border-bottom:1px solid var(--border);flex-wrap:wrap;align-items:flex-end;gap:10px;padding:14px 16px;display:flex}.rl-search{flex:200px;min-width:180px;max-width:240px;position:relative}.rl-search svg{color:var(--text-muted);pointer-events:none;position:absolute;top:50%;left:12px;transform:translateY(-50%)}.rl-search input{border:1px solid var(--border);width:100%;height:38px;color:var(--text);background:#fff;border-radius:8px;padding:0 12px 0 36px;font-size:13px}.rl-search input:focus{border-color:#99f6e4;outline:none;box-shadow:0 0 0 3px #0d94881f}.rl-filter-field{flex-direction:column;gap:4px;min-width:0;display:flex}.rl-filter-field label{color:#64748b;font-size:11.5px;font-weight:650}.rl-filter-field .ul-select{min-width:132px;max-width:170px}.rl-filters-btn{align-self:flex-end;margin-left:auto}.rl-table-wrap{overflow-x:auto}.rl-table{min-width:1100px}.rl-th-btn{font:inherit;color:inherit;cursor:pointer;white-space:nowrap;background:0 0;border:none;align-items:center;gap:6px;padding:0;display:inline-flex}.rl-sort-icon{color:var(--text-muted);flex-shrink:0}.rl-sort-icon.is-active{color:var(--brand)}.rl-name-cell{align-items:flex-start;gap:10px;min-width:220px;display:flex}.rl-name-cell>div{flex-direction:column;gap:2px;min-width:0;display:flex}.rl-name-cell strong{color:var(--text);font-size:13px;font-weight:700}.rl-name-cell span{color:#64748b;font-size:12px;line-height:1.35}.rl-role-icon{border-radius:999px;flex-shrink:0;place-items:center;width:34px;height:34px;display:inline-grid}.rl-role-icon.is-teal{color:var(--brand);background:#ecfdf5}.rl-role-icon.is-blue{color:#2563eb;background:#eff6ff}.rl-role-icon.is-purple{color:#7c3aed;background:#f5f3ff}.rl-role-icon.is-orange{color:#ea580c;background:#fff7ed}.rl-role-icon.is-cyan{color:#0891b2;background:#ecfeff}.rl-role-icon.is-amber{color:#d97706;background:#fffbeb}.rl-code-badge{letter-spacing:.02em;white-space:nowrap;border-radius:999px;align-items:center;padding:4px 10px;font-size:11px;font-weight:700;display:inline-flex}.rl-code-badge.is-teal{color:#15803d;background:#dcfce7}.rl-code-badge.is-blue{color:#1d4ed8;background:#dbeafe}.rl-code-badge.is-purple{color:#6d28d9;background:#ede9fe}.rl-code-badge.is-orange{color:#c2410c;background:#ffedd5}.rl-code-badge.is-cyan{color:#0e7490;background:#cffafe}.rl-code-badge.is-amber{color:#b45309;background:#fef3c7}.rl-org-cell{word-break:break-word;max-width:140px;line-height:1.35}.rl-facility-scope{flex-direction:column;gap:3px;min-width:150px;display:flex}.rl-facility-count{color:var(--text);font-size:12.5px;font-weight:700}.rl-facility-names{color:#64748b;font-size:12px;line-height:1.35}.rl-type-badge{white-space:nowrap;border-radius:999px;align-items:center;padding:3px 10px;font-size:11.5px;font-weight:650;display:inline-flex}.rl-type-badge.is-system{color:#15803d;background:#dcfce7;border:1px solid #bbf7d0}.rl-type-badge.is-custom{color:#7e22ce;background:#f3e8ff;border:1px solid #e9d5ff}.rl-permissions-btn{color:var(--brand);cursor:pointer;white-space:nowrap;background:0 0;border:none;align-items:center;gap:6px;padding:0;font-size:12.5px;font-weight:650;display:inline-flex}.rl-permissions-btn:hover{text-decoration:underline}.rl-status-badge{white-space:nowrap;border-radius:999px;align-items:center;gap:6px;padding:4px 10px;font-size:12px;font-weight:650;display:inline-flex}.rl-status-dot{border-radius:999px;flex-shrink:0;width:7px;height:7px}.rl-status-badge.is-active{color:#047857;background:#ecfdf5}.rl-status-badge.is-active .rl-status-dot{background:#10b981}.rl-status-badge.is-inactive{background:var(--danger-bg);color:#b91c1c}.rl-status-badge.is-inactive .rl-status-dot{background:var(--danger)}.rl-actions{align-items:center;gap:2px;display:inline-flex}.rl-more-wrap{position:relative}.rl-more-menu{z-index:20;border:1px solid var(--border);background:#fff;border-radius:8px;min-width:140px;padding:4px;position:absolute;top:calc(100% + 4px);right:0;box-shadow:0 10px 24px #0f172a1f}.rl-more-menu button{text-align:center;width:100%;color:var(--text);cursor:pointer;background:0 0;border:none;border-radius:6px;align-items:center;gap:8px;padding:8px 10px;font-size:12.5px;display:flex}.rl-more-menu button:hover{background:var(--brand-muted)}.rl-more-menu button.is-danger{color:#dc2626}.rl-more-menu button.is-danger:hover{background:var(--danger-bg)}.rl-pagination{flex-wrap:wrap}.rl-page-size-label{color:#64748b;margin-right:2px;font-size:12.5px}.rl-about-card{border:1px solid #d1fae5;border-left:4px solid var(--brand);background:#f0fdf9;border-radius:12px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;padding:16px 18px;display:flex}.rl-about-left{flex:320px;align-items:flex-start;gap:12px;min-width:0;display:flex}.rl-about-icon{width:40px;height:40px;color:var(--brand);background:#ecfdf5;border-radius:999px;flex-shrink:0;place-items:center;display:inline-grid}.rl-about-left strong{color:var(--text);margin-bottom:4px;font-size:14px;display:block}.rl-about-left p{color:#475569;margin:0;font-size:13px;line-height:1.45}.rl-about-btn{white-space:nowrap;flex-shrink:0;align-items:center;gap:8px;display:inline-flex}@media (width<=900px){.rl-filters-btn{margin-left:0}.rl-filter-field .ul-select{min-width:150px;max-width:none}}.cr-overlay{z-index:80}.cr-modal{border:1px solid var(--border);background:#fff;border-radius:16px;flex-direction:column;width:min(760px,94vw);max-height:min(92vh,860px);padding:0;display:flex;overflow:hidden;box-shadow:0 24px 56px #0f172a47}.cr-header{justify-content:space-between;align-items:flex-start;gap:12px;padding:20px 22px 12px;display:flex}.cr-header-left{align-items:flex-start;gap:12px;min-width:0;display:flex}.cr-header-step.is-edit{color:var(--brand);background:#ecfdf5;border:1px solid #a7f3d0}.cr-header h2{color:var(--text);margin:0;font-size:18px;font-weight:700}.cr-header p{color:#64748b;margin:3px 0 0;font-size:13px}.cr-stepper{border-bottom:1px solid var(--border);align-items:flex-start;gap:0;padding:8px 28px 18px;display:flex}.cr-step-item{flex:1;align-items:flex-start;min-width:0;display:flex}.cr-step-item:first-child{flex:none}.cr-step-connector{background:var(--border-strong);flex:1;min-width:24px;height:1.5px;margin:15px 10px 0}.cr-step-connector.is-complete{background:var(--brand)}.cr-step{text-align:center;flex-direction:column;flex:none;align-items:center;gap:8px;max-width:120px;display:flex}.cr-step-num{width:30px;height:30px;color:var(--text-muted);background:#fff;border:1.5px solid #cbd5e1;border-radius:999px;place-items:center;font-size:13px;font-weight:700;display:inline-grid}.cr-step-copy{flex-direction:column;align-items:center;gap:2px;display:flex}.cr-step-label{color:var(--text-muted);font-size:12px;font-weight:650;line-height:1.25}.cr-step-sublabel{color:var(--text-muted);flex-direction:column;font-size:10.5px;font-weight:500;line-height:1.25;display:flex}.cr-step.is-active .cr-step-num{border-color:var(--brand);color:var(--brand);background:#fff}.cr-step.is-active .cr-step-label{color:var(--brand);font-weight:700}.cr-step.is-done .cr-step-num{border-color:var(--brand);background:var(--brand);color:#fff}.cr-step.is-done .cr-step-label,.cr-step.is-done .cr-step-sublabel{color:var(--brand-dark)}.cr-body{flex-direction:column;flex:1;gap:16px;padding:20px 22px;display:flex;overflow:auto}.cr-grid-2{grid-template-columns:1fr 1fr;gap:16px;display:grid}.cr-field{flex-direction:column;gap:6px;min-width:0;display:flex}.cr-field label{color:var(--text);font-size:13px;font-weight:650}.cr-input-wrap,.cr-textarea-wrap,.cr-type-trigger{border:1px solid var(--border);background:#fff;border-radius:8px;align-items:center;gap:10px;min-height:42px;padding:0 12px;display:flex}.cr-input-wrap:focus-within,.cr-textarea-wrap:focus-within,.cr-type-trigger:focus{border-color:#99f6e4;outline:none;box-shadow:0 0 0 3px #0d94881f}.cr-field.has-error .cr-input-wrap,.cr-field.has-error .cr-type-trigger{border-color:#fca5a5}.cr-input-wrap svg,.cr-textarea-wrap svg,.cr-type-trigger svg:first-child{color:var(--text-muted);flex-shrink:0}.cr-input-wrap input{color:var(--text);background:0 0;border:none;outline:none;flex:1;min-width:0;height:40px;font-size:13.5px}.cr-input-wrap input::placeholder{color:var(--text-muted)}.cr-textarea-wrap{align-items:flex-start;min-height:110px;padding-top:10px;padding-bottom:10px}.cr-textarea-wrap.is-compact{min-height:88px}.cr-textarea-wrap textarea{resize:vertical;color:var(--text);background:0 0;border:none;outline:none;flex:1;min-width:0;min-height:84px;font-family:inherit;font-size:13.5px;line-height:1.4}.cr-textarea-wrap.is-compact textarea{min-height:64px}.cr-textarea-wrap textarea::placeholder{color:var(--text-muted)}.cr-hint{color:var(--text-muted);margin:0;font-size:12px}.cr-type-picker{position:relative}.cr-type-trigger{cursor:pointer;text-align:center;width:100%;color:var(--text-muted);font-size:13.5px}.cr-type-trigger.has-value{color:var(--text)}.cr-type-trigger span{flex:1}.cr-type-trigger svg:last-child{color:#64748b;margin-left:auto}.cr-type-trigger.is-open{border-color:var(--brand);box-shadow:0 0 0 3px #0d94881f}.cr-type-trigger.is-open svg:last-child{transform:rotate(180deg)}.cr-type-menu{z-index:30;border:1px solid var(--border);background:#fff;border-radius:10px;max-height:280px;padding:6px;position:absolute;top:calc(100% + 6px);left:0;right:0;overflow:auto;box-shadow:0 12px 28px #0f172a24}.cr-type-menu button{text-align:center;cursor:pointer;color:#64748b;background:0 0;border:none;border-radius:8px;align-items:flex-start;gap:10px;width:100%;padding:10px 12px;display:flex}.cr-type-menu button:hover,.cr-type-menu button.is-selected{background:#ecfdf5}.cr-type-menu button span{flex-direction:column;gap:2px;min-width:0;display:flex}.cr-type-menu strong{color:var(--text);font-size:13.5px;font-style:normal;font-weight:700}.cr-type-menu em{color:#64748b;font-size:12px;font-style:normal;line-height:1.35}.cr-info-box{color:#047857;background:#ecfdf5;border:1px solid #a7f3d0;border-radius:8px;align-items:flex-start;gap:8px;margin-top:2px;padding:10px 12px;font-size:12.5px;line-height:1.4;display:flex}.cr-info-box svg{color:var(--brand);flex-shrink:0;margin-top:1px}.cr-status-card{border:1px solid var(--border);background:#fff;border-radius:8px;align-items:flex-start;gap:12px;min-height:88px;padding:14px;display:flex}.cr-status-card strong{color:var(--text);margin-bottom:2px;font-size:13.5px;display:block}.cr-status-card p{color:var(--text-muted);margin:0;font-size:12px;line-height:1.35}.cr-placeholder{padding:8px 2px 12px}.cr-placeholder h3{color:var(--text);margin:0 0 8px;font-size:16px}.cr-placeholder p{color:#64748b;margin:0 0 14px;font-size:13px;line-height:1.45}.cr-placeholder ul{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.cr-placeholder li{border:1px solid var(--border);color:var(--text-secondary);background:#f8fafc;border-radius:8px;padding:10px 12px;font-size:13px}.cr-footer{border-top:1px solid var(--border);background:#fff;justify-content:flex-end;padding:14px 22px;display:flex}.cr-footer-right{align-items:center;gap:8px;display:flex}@media (width<=720px){.cr-grid-2{grid-template-columns:1fr}.cr-stepper{padding-left:16px;padding-right:16px;overflow-x:auto}.cr-step{max-width:96px}.cr-modal{width:min(96vw,760px)}}.cr-modal.is-scope{width:min(920px,96vw);max-height:min(94vh,920px)}.cr-footer.is-spread{justify-content:space-between}.cr-hierarchy-card{background:#ecfdf5;border:1px solid #a7f3d0;border-radius:12px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;padding:14px 16px;display:flex}.cr-hierarchy-left{flex:280px;align-items:flex-start;gap:12px;min-width:0;display:flex}.cr-hierarchy-icon{background:var(--brand);color:#fff;border-radius:999px;flex-shrink:0;place-items:center;width:40px;height:40px;display:inline-grid}.cr-hierarchy-left strong{color:var(--text);margin-bottom:2px;font-size:14px;display:block}.cr-hierarchy-flow{color:var(--brand-dark);margin:0;font-size:13px;font-weight:650}.cr-hierarchy-note{color:#64748b;margin:3px 0 0;font-size:12.5px}.cr-hierarchy-visual{color:var(--brand);flex-shrink:0;align-items:center;gap:8px;display:inline-flex}.cr-hierarchy-node{width:34px;height:34px;color:var(--brand);background:#fff;border:1px solid #a7f3d0;border-radius:999px;place-items:center;display:inline-grid}.cr-scope-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;display:grid}.cr-select-wrap{padding-right:10px;position:relative}.cr-select-wrap select{appearance:none;color:var(--text);cursor:pointer;background:0 0;border:none;outline:none;flex:1;min-width:0;height:40px;font-size:13.5px}.cr-select-wrap svg:last-child{color:#64748b;pointer-events:none}.cr-facility-menu{max-height:220px}.cr-facility-option{cursor:pointer;color:var(--text);border-radius:8px;align-items:center;gap:10px;margin:0;padding:9px 12px;font-size:13px;display:flex}.cr-facility-option:hover{background:#ecfdf5}.cr-facility-option input{accent-color:var(--brand)}.cr-menu-empty{color:#64748b;text-align:center;margin:0;padding:12px;font-size:12.5px}.cr-transfer{grid-template-columns:1fr auto 1fr;align-items:stretch;gap:12px;display:grid}.cr-transfer-panel{border:1px solid var(--border);background:#fff;border-radius:10px;flex-direction:column;min-height:260px;display:flex;overflow:hidden}.cr-transfer-head{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:10px;padding:12px 14px;display:flex}.cr-transfer-head strong{color:var(--text);font-size:13px}.cr-clear-all{color:#2563eb;cursor:pointer;background:0 0;border:none;padding:0;font-size:12.5px;font-weight:650}.cr-clear-all:hover{text-decoration:underline}.cr-transfer-search{border-bottom:1px solid #f1f5f9;padding:10px 12px;position:relative}.cr-transfer-search svg{color:var(--text-muted);pointer-events:none;position:absolute;top:50%;left:22px;transform:translateY(-50%)}.cr-transfer-search input{border:1px solid var(--border);width:100%;height:36px;color:var(--text);border-radius:8px;padding:0 10px 0 34px;font-size:13px}.cr-transfer-search input:focus{border-color:#99f6e4;outline:none;box-shadow:0 0 0 3px #0d94881f}.cr-transfer-list{flex:1;max-height:220px;padding:6px;overflow:auto}.cr-transfer-row{cursor:pointer;color:var(--text);border-radius:6px;align-items:center;gap:10px;margin:0;padding:9px 10px;font-size:13px;display:flex}.cr-transfer-row:hover{background:#f8fafc}.cr-transfer-row input{accent-color:var(--brand)}.cr-transfer-empty{text-align:center;color:var(--text-muted);margin:0;padding:24px 12px;font-size:12.5px}.cr-transfer-actions{flex-direction:column;justify-content:center;gap:8px;display:flex}.cr-transfer-btn{border:1px solid var(--border);width:34px;height:34px;color:var(--text-secondary);cursor:pointer;background:#fff;border-radius:8px;place-items:center;display:inline-grid}.cr-transfer-btn:hover:not(:disabled){background:var(--brand-muted);color:var(--brand);border-color:#99f6e4}.cr-transfer-btn:disabled{opacity:.45;cursor:not-allowed}.cr-selected-row{cursor:grab;background:#fff;border-bottom:1px solid #f1f5f9;align-items:center;gap:8px;padding:10px;display:flex}.cr-selected-row:last-child{border-bottom:none}.cr-selected-row.is-checked{background:var(--brand-muted)}.cr-selected-row.is-dragging{opacity:.7}.cr-drag-handle{color:var(--text-muted);flex-shrink:0;display:inline-flex}.cr-selected-icon{color:var(--brand);flex-shrink:0}.cr-selected-name{min-width:0;color:var(--text);flex:1;font-size:13px;font-weight:650}.cr-selected-remove{color:var(--text-muted);cursor:pointer;background:0 0;border:none;border-radius:6px;flex-shrink:0;place-items:center;width:24px;height:24px;display:inline-grid}.cr-selected-remove:hover{background:var(--danger-bg);color:#dc2626}.cr-transfer-footnote{color:var(--text-muted);border-top:1px solid #f1f5f9;align-items:center;gap:6px;padding:8px 12px 10px;font-size:12px;display:flex}.cr-scope-summary{background:#ecfdf5;border:1px solid #a7f3d0;border-radius:12px;align-items:flex-start;gap:12px;padding:14px 16px;display:flex}.cr-scope-summary-icon{background:var(--brand);color:#fff;border-radius:999px;flex-shrink:0;place-items:center;width:36px;height:36px;display:inline-grid}.cr-scope-summary-content{flex:1;min-width:0}.cr-scope-summary-content strong{color:var(--text);margin-bottom:8px;font-size:13.5px;display:block}.cr-scope-chips{color:var(--brand);flex-wrap:wrap;align-items:center;gap:8px;display:flex}.cr-scope-chip{color:var(--brand-dark);background:#fff;border:1px solid #a7f3d0;border-radius:999px;align-items:center;padding:6px 12px;font-size:12.5px;font-weight:650;display:inline-flex}@media (width<=860px){.cr-scope-grid,.cr-transfer{grid-template-columns:1fr}.cr-transfer-actions{flex-direction:row;justify-content:center}}.cr-modal.is-permissions{width:min(1100px,97vw);max-height:min(94vh,900px)}.cr-modal.is-permissions .cr-body{min-height:0;overflow:hidden}.cr-perm-layout{flex:1;grid-template-columns:200px minmax(0,1fr) 220px;gap:14px;height:min(520px,94vh - 240px);min-height:0;max-height:100%;display:grid}.cr-perm-modules,.cr-perm-center,.cr-perm-summary{border:1px solid var(--border);background:#fff;border-radius:12px;min-height:0;max-height:100%;overflow:hidden}.cr-perm-modules,.cr-perm-summary{flex-direction:column;padding:14px 12px;display:flex;overflow:hidden}.cr-perm-modules h3,.cr-perm-summary h3{color:#64748b;letter-spacing:.01em;flex-shrink:0;margin:0 0 12px;font-size:12.5px;font-weight:700}.cr-perm-module-list{flex-direction:column;flex:1;gap:4px;min-height:0;display:flex;overflow-y:auto}.cr-perm-summary .cr-perm-by-module{flex:1;min-height:0;overflow-y:auto}.cr-perm-module-item{cursor:pointer;text-align:center;color:#475569;background:0 0;border:1px solid #0000;border-radius:8px;align-items:center;gap:8px;width:100%;padding:9px 10px;display:flex}.cr-perm-module-item:hover{background:#f8fafc}.cr-perm-module-item.is-active{border-color:#a7f3d0;border-left:3px solid var(--brand);color:var(--brand-dark);background:#ecfdf5}.cr-perm-module-icon{color:#64748b;background:#f1f5f9;border-radius:8px;flex-shrink:0;place-items:center;width:28px;height:28px;display:inline-grid}.cr-perm-module-item.is-active .cr-perm-module-icon{color:var(--brand);background:#d1fae5}.cr-perm-module-name{flex:1;min-width:0;font-size:12.5px;font-weight:650}.cr-perm-module-count{color:#64748b;background:#f1f5f9;border-radius:999px;place-items:center;min-width:22px;height:20px;padding:0 6px;font-size:11px;font-weight:700;display:inline-grid}.cr-perm-module-item.is-active .cr-perm-module-count{background:var(--brand);color:#fff}.cr-perm-center{flex-direction:column;min-height:0;display:flex;overflow:hidden}.cr-perm-center-toolbar{border-bottom:1px solid var(--border);flex-wrap:wrap;flex-shrink:0;align-items:center;gap:12px;padding:12px 14px;display:flex}.cr-perm-search{flex:180px;min-width:160px;position:relative}.cr-perm-search svg{color:var(--text-muted);pointer-events:none;position:absolute;top:50%;left:10px;transform:translateY(-50%)}.cr-perm-search input{border:1px solid var(--border);width:100%;height:36px;color:var(--text);border-radius:8px;padding:0 10px 0 32px;font-size:13px}.cr-perm-search input:focus{border-color:#99f6e4;outline:none;box-shadow:0 0 0 3px #0d94881f}.cr-perm-select-all{color:var(--text-secondary);cursor:pointer;white-space:nowrap;align-items:center;gap:6px;margin:0;font-size:12.5px;font-weight:650;display:inline-flex}.cr-perm-select-all input{accent-color:var(--brand)}.cr-perm-selected-count{color:var(--brand);white-space:nowrap;margin-left:auto;font-size:12.5px;font-weight:650}.cr-perm-sections{overscroll-behavior:contain;flex-direction:column;flex:auto;gap:10px;min-height:0;padding:12px;display:flex;overflow:hidden auto}.cr-perm-section{background:#fff;border:1px solid #d1fae5;border-radius:10px;flex-shrink:0;overflow:visible}.cr-perm-section-head{cursor:pointer;letter-spacing:.04em;width:100%;color:var(--brand-dark);background:#ecfdf5;border:none;justify-content:space-between;align-items:center;gap:10px;padding:10px 12px;font-size:12px;font-weight:750;display:flex}.cr-perm-section-meta{letter-spacing:0;text-transform:none;align-items:center;gap:6px;font-size:12px;font-weight:650;display:inline-flex}.cr-perm-rows{border-top:1px solid #d1fae5}.cr-perm-row{cursor:pointer;border-bottom:1px solid #f1f5f9;align-items:flex-start;gap:10px;margin:0;padding:12px;display:flex}.cr-perm-row:last-child{border-bottom:none}.cr-perm-row:hover,.cr-perm-row.is-checked{background:#f8fffc}.cr-perm-row input{accent-color:var(--brand);flex-shrink:0;margin-top:2px}.cr-perm-row-copy{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.cr-perm-row-copy strong{color:var(--text);font-size:13px;font-weight:700}.cr-perm-row-copy em{color:#64748b;font-size:12px;font-style:normal;line-height:1.35}.cr-perm-info{color:var(--text-muted);flex-shrink:0;margin-top:2px}.cr-perm-empty{text-align:center;color:var(--text-muted);margin:0;padding:16px;font-size:12.5px}.cr-perm-donut-block{border-bottom:1px solid var(--border);align-items:center;gap:14px;margin-bottom:12px;padding-bottom:14px;display:flex}.cr-perm-donut{border-radius:999px;flex-shrink:0;place-items:center;width:88px;height:88px;display:grid}.cr-perm-donut-hole{text-align:center;background:#fff;border-radius:999px;flex-direction:column;justify-content:center;align-items:center;width:62px;height:62px;line-height:1.15;display:flex}.cr-perm-donut-hole strong{color:var(--text);font-size:16px}.cr-perm-donut-hole span{color:#64748b;font-size:9.5px}.cr-perm-percent{color:var(--brand);flex-direction:column;display:flex}.cr-perm-percent strong{font-size:22px;line-height:1.1}.cr-perm-percent span{font-size:12px;font-weight:650}.cr-perm-by-module h4{color:#64748b;margin:0 0 8px;font-size:12.5px;font-weight:700}.cr-perm-by-module ul{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.cr-perm-by-module li{color:var(--text-secondary);justify-content:space-between;align-items:center;gap:8px;font-size:12.5px;display:flex}.cr-perm-summary-badge{color:#64748b;background:#f1f5f9;border-radius:999px;place-items:center;min-width:22px;height:20px;padding:0 6px;font-size:11px;font-weight:700;display:inline-grid}.cr-perm-summary-badge.is-hot{color:var(--brand-dark);background:#d1fae5}.cr-perm-summary-info{color:#047857;background:#ecfdf5;border:1px solid #a7f3d0;border-radius:8px;align-items:flex-start;gap:8px;margin-top:auto;padding:10px 12px;font-size:12px;line-height:1.4;display:flex}.cr-perm-summary-info svg{color:var(--brand);flex-shrink:0;margin-top:1px}@media (width<=980px){.cr-perm-layout{grid-template-columns:1fr;height:auto;max-height:min(70vh,640px);overflow-y:auto}.cr-perm-module-list{flex-direction:row;overflow-x:auto}.cr-perm-module-item{min-width:150px}.cr-perm-center{min-height:320px}}.cr-modal.is-review{width:min(980px,96vw);max-height:min(94vh,900px)}.cr-modal.is-review .cr-body{overflow:auto}.cr-review{flex-direction:column;gap:14px;display:flex}.cr-review-card{border:1px solid var(--border);background:#fff;border-radius:12px;overflow:hidden}.cr-review-card-head{border-bottom:1px solid var(--border);align-items:flex-start;gap:12px;padding:16px 18px;display:flex}.cr-review-card-icon{width:36px;height:36px;color:var(--brand);background:#ecfdf5;border-radius:10px;flex-shrink:0;place-items:center;display:inline-grid}.cr-review-card-head h3{color:var(--text);margin:0;font-size:15px;font-weight:700}.cr-review-card-head p{color:#64748b;margin:3px 0 0;font-size:12.5px}.cr-review-grid{grid-template-columns:1.15fr .85fr;gap:0;display:grid}.cr-review-col{flex-direction:column;gap:18px;padding:16px 18px;display:flex}.cr-review-col+.cr-review-col{border-left:1px solid var(--border)}.cr-review-section-head{align-items:center;gap:8px;margin-bottom:12px;display:flex}.cr-review-section-icon{width:24px;height:24px;color:var(--brand);background:#ecfdf5;border-radius:999px;flex-shrink:0;place-items:center;display:inline-grid}.cr-review-section-head h4{color:var(--text);margin:0;font-size:13.5px;font-weight:700}.cr-review-section.is-permissions .cr-review-section-head{flex-wrap:wrap}.cr-review-total{color:var(--brand);white-space:nowrap;background:#ecfdf5;border:1px solid #a7f3d0;border-radius:999px;margin-left:auto;padding:4px 10px;font-size:12px;font-weight:700}.cr-review-fields{flex-direction:column;gap:10px;margin:0;display:flex}.cr-review-fields>div{grid-template-columns:120px minmax(0,1fr);align-items:start;gap:12px;display:grid}.cr-review-fields dt{color:#64748b;margin:0;font-size:12.5px;font-weight:500}.cr-review-fields dd{color:var(--text);text-align:right;word-break:break-word;margin:0;font-size:13px;font-weight:700}.cr-review-fields>div.is-facilities{align-items:start}.cr-review-fields>div.is-facilities dd{text-align:right}.cr-review-type-badge{color:#1d4ed8;background:#dbeafe;border:1px solid #bfdbfe;border-radius:999px;align-items:center;padding:3px 10px;font-size:11.5px;font-weight:650;display:inline-flex}.cr-review-type-badge.is-system{color:#15803d;background:#dcfce7;border-color:#bbf7d0}.cr-review-type-badge.is-hybrid{color:#7e22ce;background:#f3e8ff;border-color:#e9d5ff}.cr-review-status-badge{border-radius:999px;align-items:center;padding:3px 10px;font-size:11.5px;font-weight:650;display:inline-flex}.cr-review-status-badge.is-active{color:#15803d;background:#dcfce7;border:1px solid #bbf7d0}.cr-review-status-badge.is-inactive{background:var(--danger-bg);color:#b91c1c;border:1px solid #fecaca}.cr-review-facility-chips{flex-wrap:wrap;justify-content:flex-end;gap:6px;display:flex}.cr-review-facility-chip{color:var(--brand-dark);background:#ecfdf5;border:1px solid #a7f3d0;border-radius:999px;align-items:center;padding:4px 10px;font-size:11.5px;font-weight:650;display:inline-flex}.cr-review-module-list{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.cr-review-module-list li{border:1px solid var(--border);background:#f8fafc;border-radius:8px;align-items:center;gap:10px;padding:8px 10px;display:flex}.cr-review-module-empty{color:var(--text-muted);justify-content:center;font-size:12.5px}.cr-review-module-icon{width:28px;height:28px;color:var(--brand);background:#ecfdf5;border-radius:8px;flex-shrink:0;place-items:center;display:inline-grid}.cr-review-module-name{min-width:0;color:var(--text);flex:1;font-size:13px;font-weight:650}.cr-review-module-count{min-width:26px;height:24px;color:var(--brand-dark);background:#d1fae5;border-radius:8px;place-items:center;padding:0 8px;font-size:12px;font-weight:700;display:inline-grid}.cr-review-view-all{color:#2563eb;cursor:pointer;background:0 0;border:none;align-items:center;gap:6px;margin-top:12px;padding:0;font-size:12.5px;font-weight:650;display:inline-flex}.cr-review-view-all:hover{text-decoration:underline}.cr-review-confirm{color:#1e40af;background:#eff6ff;border:1px solid #bfdbfe;border-radius:10px;align-items:flex-start;gap:10px;padding:12px 14px;display:flex}.cr-review-confirm svg{color:#2563eb;flex-shrink:0;margin-top:1px}.cr-review-confirm strong{margin-bottom:2px;font-size:13px;display:block}.cr-review-confirm p{color:#1e3a8a;margin:0;font-size:12.5px;line-height:1.4}@media (width<=860px){.cr-review-grid{grid-template-columns:1fr}.cr-review-col+.cr-review-col{border-left:none;border-top:1px solid var(--border)}.cr-review-fields>div{grid-template-columns:1fr;gap:4px}.cr-review-fields dd,.cr-review-fields>div.is-facilities dd{text-align:left}.cr-review-facility-chips{justify-content:flex-start}}.ap-overlay{z-index:1100;background:#0f172a80}.ap-modal{border:1px solid var(--border);background:#fff;border-radius:14px;flex-direction:column;width:min(1080px,96vw);max-height:min(92vh,820px);padding:0;display:flex;overflow:hidden;box-shadow:0 24px 64px #0f172a47}.ap-header{flex-shrink:0;justify-content:space-between;align-items:flex-start;gap:12px;padding:18px 20px 12px;display:flex}.ap-header-left{align-items:flex-start;gap:12px;min-width:0;display:flex}.ap-header-icon{color:#16a34a;background:#f0fdf4;border:1.5px solid #86efac;border-radius:10px;flex-shrink:0;place-items:center;width:36px;height:36px;display:inline-grid}.ap-header h2{color:var(--text);margin:0;font-size:17px;font-weight:700}.ap-header p{color:#64748b;margin:3px 0 0;font-size:12.5px;line-height:1.35}.ap-toolbar{flex-shrink:0;justify-content:flex-end;align-items:center;gap:10px;padding:0 20px 12px;display:flex}.ap-search{width:min(280px,100%);position:relative}.ap-search input{border:1px solid var(--border-strong);width:100%;height:36px;color:var(--text);background:#fff;border-radius:8px;padding:0 36px 0 12px;font-size:13px}.ap-search input::placeholder{color:var(--text-muted)}.ap-search input:focus{border-color:#86efac;outline:none;box-shadow:0 0 0 3px #22c55e1f}.ap-search svg{color:var(--text-muted);pointer-events:none;position:absolute;top:50%;right:11px;transform:translateY(-50%)}.ap-collapse-btn{white-space:nowrap;height:36px;font-size:13px;font-weight:600}.ap-body{flex:1;grid-template-columns:240px minmax(0,1fr);gap:14px;min-height:0;padding:0 20px 16px;display:grid;overflow:hidden}.ap-modules{border:1px solid var(--border);background:#fff;border-radius:12px;flex-direction:column;gap:10px;min-height:0;padding:14px 12px;display:flex;overflow:hidden}.ap-modules h3{color:var(--text);margin:0 4px 2px;font-size:13px;font-weight:700}.ap-module-list{flex-direction:column;flex:1;gap:4px;min-height:0;padding-right:2px;display:flex;overflow:auto}.ap-module-item{cursor:pointer;text-align:center;width:100%;color:var(--text-secondary);background:0 0;border:none;border-radius:8px;align-items:center;gap:10px;padding:9px 10px;transition:background .15s,color .15s;display:flex}.ap-module-item:hover{background:#f8fafc}.ap-module-item.is-active{color:#15803d;background:#ecfdf5}.ap-module-icon{color:#64748b;flex-shrink:0;place-items:center;width:18px;height:18px;display:inline-grid}.ap-module-item.is-active .ap-module-icon{color:#16a34a}.ap-module-name{white-space:nowrap;text-overflow:ellipsis;flex:1;min-width:0;font-size:13px;font-weight:600;overflow:hidden}.ap-module-count{color:#475569;background:#f1f5f9;border-radius:999px;flex-shrink:0;place-items:center;min-width:22px;height:22px;padding:0 6px;font-size:11px;font-weight:700;display:inline-grid}.ap-module-item.is-active .ap-module-count{color:#fff;background:#16a34a}.ap-total-card{border:1px solid var(--border);background:#fff;border-radius:10px;flex-direction:column;gap:2px;margin-top:auto;padding:12px 14px;display:flex}.ap-total-label{color:#64748b;font-size:12px;font-weight:600}.ap-total-value{color:#16a34a;font-size:28px;font-weight:800;line-height:1.15}.ap-total-meta{color:var(--text-muted);font-size:12px}.ap-list-panel{border:1px solid var(--border);background:#fff;border-radius:12px;flex-direction:column;min-width:0;min-height:0;display:flex;overflow:hidden}.ap-table-head{border-bottom:1px solid var(--border);background:#fff;flex-shrink:0;grid-template-columns:minmax(180px,1.1fr) minmax(220px,1.4fr) 110px;gap:12px;padding:12px 16px 12px 44px;display:grid}.ap-table-head span{color:var(--text);font-size:12.5px;font-weight:700}.ap-sections{flex:1;min-height:0;padding:8px;overflow:auto}.ap-section{border-radius:8px;margin-bottom:6px;overflow:hidden}.ap-section-head{color:#15803d;cursor:pointer;letter-spacing:.02em;text-align:center;background:#ecfdf5;border:none;border-radius:8px;justify-content:space-between;align-items:center;gap:10px;width:100%;padding:10px 12px;font-size:12.5px;font-weight:700;display:flex}.ap-section.is-expanded .ap-section-head{border-radius:8px 8px 0 0}.ap-rows{border:1px solid var(--border);background:#fff;border-top:none;border-radius:0 0 8px 8px}.ap-row{cursor:pointer;border-bottom:1px solid #f1f5f9;grid-template-columns:20px minmax(160px,1.1fr) minmax(200px,1.4fr) 110px;align-items:start;gap:12px;padding:11px 12px;display:grid}.ap-row:last-child{border-bottom:none}.ap-row:hover{background:#f8fffc}.ap-row input{accent-color:#16a34a;cursor:pointer;width:16px;height:16px;margin-top:2px}.ap-row-name{color:var(--text);font-size:13px;font-weight:700;line-height:1.35}.ap-row-desc{color:#64748b;font-size:12.5px;line-height:1.4}.ap-row-module{color:var(--text-secondary);font-size:12.5px;font-weight:500}.ap-empty{min-height:220px;color:var(--text-muted);text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:4px;padding:24px;display:flex}.ap-empty strong{color:#64748b;font-size:14px}.ap-empty span{font-size:12.5px}.ap-footer{border-top:1px solid var(--border);background:#fff;flex-shrink:0;justify-content:space-between;align-items:center;gap:12px;padding:14px 20px;display:flex}.ap-footer .btn{justify-content:center;align-items:center;gap:6px;min-width:96px;display:inline-flex}@media (width<=900px){.ap-body{grid-template-columns:1fr;overflow:auto}.ap-modules{max-height:none}.ap-module-list{flex-direction:row;gap:6px;padding-bottom:4px;display:flex;overflow-x:auto}.ap-module-item{flex:none;min-width:150px}.ap-total-card{margin-top:8px}.ap-list-panel{min-height:320px}.ap-table-head,.ap-row{min-width:640px}.ap-sections{overflow:auto}}.rd-overlay{z-index:1100;background:#0f172a80}.rd-modal{border:1px solid var(--border);background:#fff;border-radius:14px;flex-direction:column;width:min(980px,96vw);max-height:min(92vh,860px);padding:0;display:flex;overflow:hidden;box-shadow:0 24px 64px #0f172a47}.rd-header{border-bottom:1px solid var(--border);flex-shrink:0;justify-content:space-between;align-items:center;gap:12px;padding:16px 20px;display:flex}.rd-header-left{align-items:center;gap:12px;display:flex}.rd-header-icon{color:#7c3aed;background:#ede9fe;border-radius:999px;flex-shrink:0;place-items:center;width:36px;height:36px;display:inline-grid}.rd-header h2{color:var(--text);margin:0;font-size:17px;font-weight:700}.rd-body{flex-direction:column;flex:1;gap:18px;min-height:0;padding:16px 20px 8px;display:flex;overflow:auto}.rd-summary{border:1px solid var(--border);background:#fff;border-radius:12px;padding:16px 18px}.rd-summary-top{align-items:flex-start;gap:14px;display:flex}.rd-summary-avatar{color:#7c3aed;background:#ede9fe;border-radius:12px;flex-shrink:0;place-items:center;width:48px;height:48px;display:inline-grid}.rd-summary-copy{flex:1;min-width:0}.rd-summary-title-row{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.rd-summary-title-row h3{color:var(--text);margin:0;font-size:18px;font-weight:700}.rd-status{border-radius:999px;align-items:center;gap:6px;padding:3px 10px;font-size:12px;font-weight:650;display:inline-flex}.rd-status.is-active{color:#15803d;background:#dcfce7;border:1px solid #bbf7d0}.rd-status.is-inactive{background:var(--danger-bg);color:#b91c1c;border:1px solid #fecaca}.rd-status-dot{background:currentColor;border-radius:999px;width:7px;height:7px}.rd-summary-copy p{color:#64748b;margin:6px 0 0;font-size:13px;line-height:1.4}.rd-summary-meta{border-top:1px solid #f1f5f9;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-top:16px;padding-top:14px;display:grid}.rd-summary-meta>div{flex-direction:column;gap:6px;min-width:0;display:flex}.rd-meta-label{color:var(--text-muted);font-size:11.5px;font-weight:600}.rd-summary-meta strong{color:var(--text);font-size:13px;font-weight:700}.rd-code-badge{color:#15803d;background:#dcfce7;border:1px solid #bbf7d0;border-radius:999px;align-items:center;width:fit-content;padding:3px 10px;font-size:12px;font-weight:700;display:inline-flex}.rd-type-badge{border-radius:999px;align-items:center;width:fit-content;padding:3px 10px;font-size:12px;font-weight:650;display:inline-flex}.rd-type-badge.is-system{color:#15803d;background:#dcfce7;border:1px solid #bbf7d0}.rd-type-badge.is-custom{color:#7e22ce;background:#f3e8ff;border:1px solid #e9d5ff}.rd-scope h4,.rd-permissions h4{color:var(--text);margin:0 0 10px;font-size:14px;font-weight:700}.rd-scope-row{align-items:stretch;gap:8px;display:flex}.rd-scope-card{border:1px solid var(--border);background:#fff;border-radius:10px;flex:1;align-items:flex-start;gap:10px;min-width:0;padding:12px 14px;display:flex}.rd-scope-icon{color:#16a34a;background:#ecfdf5;border-radius:999px;flex-shrink:0;place-items:center;width:28px;height:28px;display:inline-grid}.rd-scope-label{color:var(--text-muted);margin-bottom:3px;font-size:11.5px;font-weight:600;display:block}.rd-scope-card strong{color:var(--text);word-break:break-word;font-size:13px;font-weight:700;line-height:1.35;display:block}.rd-scope-chevron{color:var(--text-muted);flex-shrink:0;align-self:center}.rd-perm-layout{border:1px solid var(--border);background:#fff;border-radius:12px;grid-template-columns:220px minmax(0,1fr);gap:12px;min-height:320px;display:grid;overflow:hidden}.rd-modules{border-right:1px solid var(--border);background:#fafafa;flex-direction:column;gap:8px;min-height:0;padding:12px 10px;display:flex}.rd-modules-title{color:var(--text-muted);text-transform:uppercase;letter-spacing:.04em;padding:0 8px;font-size:11.5px;font-weight:700}.rd-module-list{flex-direction:column;flex:1;gap:3px;min-height:0;display:flex;overflow:auto}.rd-module-item{cursor:pointer;text-align:center;color:#475569;background:0 0;border:none;border-radius:8px;align-items:center;gap:10px;width:100%;padding:9px 10px;transition:background .15s,color .15s;display:flex}.rd-module-item:hover{background:#f1f5f9}.rd-module-item.is-active{color:#15803d;background:#ecfdf5}.rd-module-item.is-empty{opacity:.72}.rd-module-icon{color:#64748b;flex-shrink:0;place-items:center;width:18px;height:18px;display:inline-grid}.rd-module-item.is-active .rd-module-icon{color:#16a34a}.rd-module-name{white-space:nowrap;text-overflow:ellipsis;flex:1;min-width:0;font-size:13px;font-weight:600;overflow:hidden}.rd-module-count{color:#475569;background:#e2e8f0;border-radius:999px;flex-shrink:0;place-items:center;min-width:22px;height:22px;padding:0 6px;font-size:11px;font-weight:700;display:inline-grid}.rd-module-item.is-active .rd-module-count{color:#fff;background:#166534}.rd-perm-panel{flex-direction:column;gap:8px;min-width:0;min-height:0;padding:10px;display:flex;overflow:auto}.rd-perm-section{border-radius:8px;overflow:hidden}.rd-perm-section-head{color:#15803d;cursor:pointer;text-align:center;background:#ecfdf5;border:none;border-radius:8px;justify-content:space-between;align-items:center;gap:10px;width:100%;padding:10px 12px;font-size:13px;font-weight:700;display:flex}.rd-perm-section.is-expanded .rd-perm-section-head{border-radius:8px 8px 0 0}.rd-perm-table{border:1px solid var(--border);background:#fff;border-top:none;border-radius:0 0 8px 8px}.rd-perm-table-head{border-bottom:1px solid var(--border);color:#64748b;grid-template-columns:minmax(180px,1fr) minmax(220px,1.3fr);gap:12px;padding:10px 12px 10px 40px;font-size:12px;font-weight:700;display:grid}.rd-perm-row{border-bottom:1px solid #f1f5f9;grid-template-columns:20px minmax(160px,1fr) minmax(200px,1.3fr);align-items:start;gap:12px;padding:12px;display:grid}.rd-perm-row:last-child{border-bottom:none}.rd-perm-check{color:#fff;background:#16a34a;border-radius:999px;flex-shrink:0;place-items:center;width:20px;height:20px;margin-top:1px;display:inline-grid}.rd-perm-name{color:var(--text);font-size:13px;font-weight:700;line-height:1.35}.rd-perm-desc{color:#64748b;font-size:12.5px;line-height:1.4}.rd-perm-empty{min-height:220px;color:var(--text-muted);text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:4px;padding:24px;display:flex}.rd-perm-empty strong{color:#64748b;font-size:14px}.rd-perm-empty span{font-size:12.5px}.rd-footer{border-top:1px solid var(--border);background:#fff;flex-shrink:0;justify-content:flex-end;padding:14px 20px;display:flex}.rd-footer .btn{min-width:96px}@media (width<=860px){.rd-summary-meta{grid-template-columns:repeat(2,minmax(0,1fr))}.rd-scope-row{flex-direction:column}.rd-scope-chevron{display:none}.rd-perm-layout{grid-template-columns:1fr;min-height:0}.rd-modules{border-right:none;border-bottom:1px solid var(--border)}.rd-module-list{flex-direction:row;overflow-x:auto}.rd-module-item{flex:none;min-width:150px}.rd-perm-table-head,.rd-perm-row{min-width:560px}}.cr-modal.is-edit:not(.is-scope):not(.is-permissions):not(.is-review){width:min(1040px,96vw);max-height:min(92vh,820px)}.er-step1{grid-template-columns:minmax(0,1.35fr) minmax(280px,.85fr);align-items:start;gap:16px;display:grid}.er-form-card,.er-preview-card{border:1px solid var(--border);background:#fff;border-radius:12px;padding:16px 18px 18px}.er-form-card h3,.er-preview-card h3{color:var(--text);margin:0 0 16px;font-size:15px;font-weight:700}.er-form-grid{grid-template-columns:1fr 1fr;gap:14px 16px;display:grid}.er-form-card .cr-input-wrap,.er-form-card .cr-textarea-wrap,.er-form-card .cr-type-trigger{padding-left:12px}.er-form-card .cr-type-trigger{justify-content:space-between}.er-form-card .cr-field{margin-bottom:0}.er-form-card>.cr-field{margin-top:14px}.er-status-picker{position:relative}.er-status-trigger{border:1px solid var(--border-strong);cursor:pointer;background:#fff;border-radius:10px;justify-content:space-between;align-items:center;gap:8px;width:100%;min-height:42px;padding:6px 10px;display:flex}.er-status-trigger.is-open,.er-status-trigger:focus{border-color:#5eead4;outline:none;box-shadow:0 0 0 3px #0d94881f}.er-status-menu{z-index:8;border:1px solid var(--border);background:#fff;border-radius:10px;flex-direction:column;gap:4px;padding:6px;display:flex;position:absolute;top:calc(100% + 4px);left:0;right:0;box-shadow:0 12px 28px #0f172a1f}.er-status-menu button{text-align:center;cursor:pointer;background:0 0;border:none;border-radius:8px;width:100%;padding:6px 8px}.er-status-menu button:hover{background:#f8fafc}.er-status-pill{border-radius:999px;align-items:center;padding:3px 10px;font-size:12px;font-weight:700;display:inline-flex}.er-status-pill.is-active{color:#fff;background:#16a34a}.er-status-pill.is-inactive{background:var(--danger);color:#fff}.er-info-box{color:#1e3a8a;background:#eff6ff;border:1px solid #bfdbfe;border-radius:10px;align-items:flex-start;gap:10px;margin-top:16px;padding:12px 14px;font-size:13px;line-height:1.45;display:flex}.er-info-box svg{color:#2563eb;flex-shrink:0;margin-top:1px}.er-info-box strong{font-weight:700}.er-preview-hero{text-align:center;flex-direction:column;align-items:center;gap:8px;padding:8px 8px 16px;display:flex}.er-preview-avatar{width:64px;height:64px;color:var(--brand);background:#ecfdf5;border-radius:999px;place-items:center;display:inline-grid}.er-preview-name{color:var(--text);font-size:20px;font-weight:800;line-height:1.2}.er-preview-hero p{color:#64748b;margin:0;font-size:13px;line-height:1.4}.er-preview-meta{border-top:1px solid var(--border);flex-direction:column;gap:12px;margin:0;padding-top:14px;display:flex}.er-preview-meta>div{justify-content:space-between;align-items:baseline;gap:12px;display:flex}.er-preview-meta dt{color:#64748b;margin:0;font-size:13px}.er-preview-meta dd{color:var(--text);text-align:right;margin:0;font-size:13px;font-weight:700}@media (width<=860px){.er-step1,.er-form-grid{grid-template-columns:1fr}}.vu-overlay{z-index:1100;background:#0f172a80;padding:16px}.vu-modal{border:1px solid var(--border);background:#fff;border-radius:14px;flex-direction:column;width:min(1180px,96vw);max-height:min(94vh,920px);padding:0;display:flex;overflow:hidden;box-shadow:0 24px 64px #0f172a47}.vu-header{flex-shrink:0;justify-content:space-between;align-items:flex-start;gap:12px;padding:16px 20px 12px;display:flex}.vu-header h2{color:var(--text);margin:0;font-size:20px;font-weight:700}.vu-header p{color:#64748b;margin:4px 0 0;font-size:13px}.vu-body{flex:1;min-height:0;padding:0 20px 16px;overflow:auto}.vu-summary{border:1px solid var(--border);background:#fff;border-radius:12px;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px;padding:14px 16px;display:flex}.vu-summary-left{align-items:center;gap:12px;min-width:0;display:flex}.vu-summary-avatar{object-fit:cover;border-radius:999px;flex-shrink:0;width:48px;height:48px}.vu-summary-avatar.is-initials{color:#fff;place-items:center;font-size:14px;font-weight:700;display:inline-grid}.vu-summary-name-row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.vu-summary-name-row h3{color:var(--text);margin:0;font-size:16px;font-weight:700}.vu-summary-contact{color:#64748b;flex-wrap:wrap;gap:12px 16px;margin-top:4px;font-size:12.5px;display:flex}.vu-summary-contact span{align-items:center;gap:6px;display:inline-flex}.vu-summary-ids{text-align:right;flex-direction:column;flex-shrink:0;gap:6px;margin:0;display:flex}.vu-summary-ids dt{color:var(--text-muted);margin:0;font-size:11.5px;font-weight:600}.vu-summary-ids dd{color:var(--text);margin:0;font-size:13px;font-weight:700}.vu-summary-ids>div{justify-content:flex-end;align-items:baseline;gap:8px;display:flex}.vu-status-badge{border-radius:999px;align-items:center;padding:3px 10px;font-size:12px;font-weight:650;display:inline-flex}.vu-status-badge.is-active{color:#15803d;background:#dcfce7;border:1px solid #bbf7d0}.vu-status-badge.is-inactive{background:var(--danger-bg);color:#b91c1c;border:1px solid #fecaca}.vu-layout{grid-template-columns:minmax(0,.95fr) minmax(0,1.15fr);align-items:start;gap:16px;display:grid}.vu-col{flex-direction:column;gap:14px;min-width:0;display:flex}.vu-card{padding:16px}.vu-section-title{align-items:center;gap:8px;margin-bottom:14px;display:flex}.vu-section-title h3{color:var(--text);margin:0;font-size:14.5px;font-weight:700}.vu-section-icon{width:26px;height:26px;color:var(--brand);background:#ecfdf5;border-radius:8px;flex-shrink:0;place-items:center;display:inline-grid}.vu-fields{flex-direction:column;gap:12px;display:flex}.vu-field{grid-template-columns:160px minmax(0,1fr);align-items:center;gap:12px;display:grid}.vu-field-label{color:#64748b;font-size:12.5px;font-weight:500}.vu-field-value{color:var(--text);word-break:break-word;font-size:13px;font-weight:700}.vu-photo-thumb{object-fit:cover;color:#fff;border-radius:999px;place-items:center;width:36px;height:36px;font-size:11px;font-weight:700;display:inline-grid}.vu-footer{border-top:1px solid var(--border);background:#fff;flex-shrink:0;justify-content:flex-end;padding:14px 20px;display:flex}.vu-footer .btn{min-width:88px}@media (width<=960px){.vu-layout,.vu-field{grid-template-columns:1fr}.vu-summary{flex-direction:column;align-items:flex-start}.vu-summary-ids,.vu-summary-ids>div{text-align:center;justify-content:flex-start}}.eu-overlay{z-index:1100;background:#0f172a80;padding:16px}.eu-nested{z-index:1200;position:relative}.eu-modal{border:1px solid var(--border);background:#fff;border-radius:14px;flex-direction:column;width:min(1180px,96vw);max-height:min(94vh,920px);padding:0;display:flex;overflow:hidden;box-shadow:0 24px 64px #0f172a47}.eu-header{border-bottom:1px solid var(--border);flex-shrink:0;justify-content:space-between;align-items:flex-start;gap:12px;padding:16px 20px;display:flex}.eu-header-left{align-items:flex-start;gap:12px;min-width:0;display:flex}.eu-header-icon{width:36px;height:36px;color:var(--brand);background:#ecfdf5;border-radius:999px;flex-shrink:0;place-items:center;display:inline-grid}.eu-header h2{color:var(--text);margin:0;font-size:17px;font-weight:700}.eu-header p{color:#64748b;margin:3px 0 0;font-size:13px}.eu-body{flex:1;min-height:0;padding:16px 20px;overflow:auto}.eu-layout{margin:0}.eu-section-title{color:var(--text);margin:0 0 14px;font-size:15px;font-weight:700}.cu-card-header .eu-section-title{margin-bottom:4px}.eu-photo-row{align-items:center;gap:12px;display:flex}.eu-photo-avatar{object-fit:cover;border:1px solid var(--border);border-radius:999px;flex-shrink:0;width:56px;height:56px}.eu-photo-avatar.is-initials{color:#fff;border:none;place-items:center;font-size:16px;font-weight:700;display:inline-grid}.eu-photo-meta{flex-direction:column;align-items:flex-start;gap:4px;display:flex}.eu-change-photo{height:34px;padding:0 12px;font-size:13px}.eu-photo-meta span{color:var(--text-muted);font-size:12px}.eu-footer{border-top:1px solid var(--border);background:#fff;flex-shrink:0;justify-content:flex-end;gap:10px;padding:14px 20px;display:flex}@media (width<=960px){.eu-layout{grid-template-columns:1fr}}.rt-page{flex-direction:column;gap:16px;min-width:0;display:flex}.rt-toolbar{border-bottom:1px solid var(--border);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;display:flex}.rt-search{flex:280px;min-width:220px;max-width:420px;position:relative}.rt-search svg{color:var(--text-muted);pointer-events:none;position:absolute;top:50%;left:12px;transform:translateY(-50%)}.rt-search input{border:1px solid var(--border);width:100%;height:38px;color:var(--text);background:#fff;border-radius:8px;padding:0 12px 0 36px;font-size:13px}.rt-search input:focus{border-color:#99f6e4;outline:none;box-shadow:0 0 0 3px #0d94881f}.rt-toolbar .ul-select{min-width:140px;margin-left:auto}.rt-table-wrap{overflow-x:auto}.rt-table{min-width:860px}.rt-table th,.rt-table td{padding:16px}.rt-name-cell{align-items:center;gap:12px;min-width:180px;display:flex}.rt-name-cell strong{color:var(--text);font-size:13.5px;font-weight:700}.rt-description{color:#64748b;max-width:460px;font-size:13px;line-height:1.45}.rt-about-card{justify-content:flex-start}.rt-overlay{z-index:80}.rt-modal{border-radius:14px;flex-direction:column;width:min(560px,94vw);max-height:min(90vh,720px);padding:0;display:flex;overflow:hidden;box-shadow:0 20px 48px #0f172a38}.rt-modal-header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:flex-start;gap:12px;padding:18px 20px 14px;display:flex}.rt-modal-header h2{color:var(--text);margin:0;font-size:18px;font-weight:700}.rt-modal-header p{color:#64748b;margin:4px 0 0;font-size:13px}.rt-modal-body{padding:18px 20px;overflow:auto}.rt-form-grid,.rt-view-grid{grid-template-columns:1fr 1fr;gap:14px 16px;display:grid}.rt-form-grid .is-wide,.rt-view-grid .is-wide{grid-column:1/-1}.rt-form-grid label{color:var(--text-secondary);flex-direction:column;gap:6px;font-size:12.5px;font-weight:650;display:flex}.rt-form-grid input,.rt-form-grid select,.rt-form-grid textarea{border:1px solid var(--border);height:38px;color:var(--text);background:#fff;border-radius:8px;padding:0 12px;font-family:inherit;font-size:13px}.rt-form-grid textarea{resize:vertical;height:auto;padding:10px 12px}.rt-form-grid input:focus,.rt-form-grid select:focus,.rt-form-grid textarea:focus{border-color:#99f6e4;outline:none;box-shadow:0 0 0 3px #0d94881f}.rt-form-grid input:disabled,.rt-form-grid select:disabled{color:#64748b;background:#f8fafc}.rt-view-grid dt{color:#64748b;margin-bottom:4px;font-size:11.5px;font-weight:650}.rt-view-grid dd{color:var(--text);margin:0;font-size:13.5px}.rt-system-note{color:var(--brand-dark);margin:12px 0 0;font-size:12.5px}.rt-modal-footer{border-top:1px solid var(--border);background:#fff;justify-content:flex-end;gap:10px;padding:14px 20px;display:flex}@media (width<=720px){.rt-toolbar .ul-select{width:100%;margin-left:0}.rt-search{max-width:none}.rt-form-grid,.rt-view-grid{grid-template-columns:1fr}}.mp-page{flex-direction:column;gap:16px;min-width:0;display:flex}.mp-title-icon{color:#7c3aed;background:#f5f3ff;border-radius:999px;flex-shrink:0;place-items:center;width:28px;height:28px;display:inline-grid}.mp-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;display:grid}.mp-stat-card{border:1px solid var(--border);background:#fff;border-radius:12px;flex-direction:column;gap:6px;min-width:0;padding:16px 16px 14px;display:flex;box-shadow:0 1px 2px #0f172a08}.mp-stat-top{justify-content:space-between;align-items:center;gap:10px;display:flex}.mp-stat-label{color:#64748b;font-size:13px;font-weight:600}.mp-stat-icon{border-radius:10px;flex-shrink:0;place-items:center;width:36px;height:36px;display:grid}.mp-stat-icon.is-green{color:#059669;background:#ecfdf5}.mp-stat-icon.is-blue{color:#2563eb;background:#eff6ff}.mp-stat-icon.is-orange{color:#ea580c;background:#fff7ed}.mp-stat-icon.is-purple{color:#7c3aed;background:#f5f3ff}.mp-stat-value{letter-spacing:-.04em;color:var(--text);font-size:28px;font-weight:800;line-height:1.1}.mp-stat-sub{color:var(--text-muted);font-size:12.5px;font-weight:500}.mp-layout{grid-template-columns:minmax(0,1fr) 280px;align-items:start;gap:16px;display:grid}.mp-toolbar{border-bottom:1px solid var(--border);flex-wrap:wrap;align-items:center;gap:10px;padding:14px 16px;display:flex}.mp-search{flex:240px;min-width:200px;max-width:360px;position:relative}.mp-search svg{color:var(--text-muted);pointer-events:none;position:absolute;top:50%;left:12px;transform:translateY(-50%)}.mp-search input{border:1px solid var(--border);width:100%;height:38px;color:var(--text);background:#fff;border-radius:8px;padding:0 12px 0 36px;font-size:13px}.mp-search input:focus{border-color:#99f6e4;outline:none;box-shadow:0 0 0 3px #0d94881f}.mp-toolbar .ul-select{min-width:140px}.mp-table-wrap{overflow-x:auto}.mp-table{min-width:860px}.mp-table th,.mp-table td{padding:14px 16px}.mp-name-cell{align-items:center;gap:12px;min-width:170px;display:flex}.mp-name-cell strong{color:var(--text);font-size:13.5px;font-weight:700}.mp-module-icon{border-radius:10px;flex-shrink:0;place-items:center;width:34px;height:34px;display:grid}.mp-module-icon.is-purchase{color:var(--brand);background:#ecfdf5}.mp-module-icon.is-inventory{color:#ea580c;background:#fff7ed}.mp-module-icon.is-sales{color:#059669;background:#ecfdf5}.mp-module-icon.is-transfer{color:#2563eb;background:#eff6ff}.mp-module-icon.is-reports{color:#7c3aed;background:#f5f3ff}.mp-module-icon.is-users{color:#0891b2;background:#ecfeff}.mp-module-icon.is-settings{color:#475569;background:#f1f5f9}.mp-module-icon.is-audit,.mp-module-icon.is-generic{color:var(--text-secondary);background:#f8fafc}.mp-code-badge{color:#475569;letter-spacing:.02em;background:#f1f5f9;border-radius:6px;align-items:center;padding:4px 8px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:11.5px;font-weight:700;display:inline-flex}.mp-perms-link{color:var(--brand);cursor:pointer;background:0 0;border:none;padding:0;font-size:13px;font-weight:650}.mp-perms-link:hover{color:var(--brand-dark);text-decoration:underline}.mp-date{color:#64748b;white-space:nowrap;font-size:13px}.mp-page-size{min-width:96px;margin-left:8px}.mp-info{flex-direction:column;gap:12px;display:flex}.mp-side-card{border:1px solid var(--border);background:#fff;border-radius:12px;padding:16px;box-shadow:0 1px 2px #0f172a08}.mp-side-card.is-about{background:#f8fbff;border-color:#dbeafe}.mp-side-card.is-create{border-color:var(--brand-soft);background:#f6fdfb}.mp-side-card.is-help{background:#f8fafc}.mp-side-head{align-items:center;gap:8px;margin-bottom:8px;display:flex}.mp-side-head strong{color:var(--text);font-size:14px}.mp-side-icon{border-radius:8px;flex-shrink:0;place-items:center;width:28px;height:28px;display:grid}.mp-side-icon.is-blue{color:#2563eb;background:#dbeafe}.mp-side-icon.is-green{background:var(--brand-soft);color:var(--brand)}.mp-side-icon.is-gray{color:var(--text-secondary);background:#e2e8f0}.mp-side-card p{color:#64748b;margin:0 0 10px;font-size:12.5px;line-height:1.5}.mp-side-card ul{color:#475569;margin:0 0 12px;padding-left:18px;font-size:12.5px;line-height:1.55}.mp-side-link{color:var(--brand);cursor:pointer;background:0 0;border:none;padding:0;font-size:12.5px;font-weight:700}.mp-side-link.is-blue{color:#2563eb}.mp-side-link:hover{text-decoration:underline}.mp-quick-btn{height:36px;color:var(--brand);border-color:#99f6e4;padding:0 12px}.mp-perms-list{flex-direction:column;gap:10px;margin:0;padding:0;list-style:none;display:flex}.mp-perms-list li{border:1px solid var(--border);background:#f8fafc;border-radius:8px;flex-direction:column;gap:2px;padding:10px 12px;display:flex}.mp-perms-list strong{color:var(--text);font-size:13px}.mp-perms-list span{color:#64748b;font-size:12px}.mp-perms-empty{color:#64748b;margin:0;font-size:13px}@media (width<=1180px){.mp-layout{grid-template-columns:1fr}}@media (width<=960px){.mp-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=640px){.mp-stats{grid-template-columns:1fr}.mp-search{max-width:none}}.pt-page{flex-direction:column;gap:16px;min-width:0;display:flex}.pt-title-icon{width:28px;height:28px;color:var(--brand);background:#ecfdf5;border-radius:999px;flex-shrink:0;place-items:center;display:inline-grid}.pt-toolbar{border-bottom:1px solid var(--border);flex-wrap:wrap;align-items:center;gap:10px;padding:14px 16px;display:flex}.pt-toolbar-actions{align-items:center;gap:8px;margin-left:auto;display:flex}.pt-toolbar-actions .btn.is-active{background:var(--brand-muted);color:var(--brand-dark);border-color:#99f6e4}.pt-filter-panel{flex:100%;align-items:flex-end;gap:12px;padding-top:4px;display:flex}.pt-filter-field{flex-direction:column;gap:5px;min-width:180px;display:flex}.pt-filter-field span{color:#64748b;font-size:11.5px;font-weight:600}.pt-search{flex:240px;min-width:220px;max-width:380px;position:relative}.pt-search svg{color:var(--text-muted);pointer-events:none;position:absolute;top:50%;left:12px;transform:translateY(-50%)}.pt-search input{border:1px solid var(--border);width:100%;height:38px;color:var(--text);background:#fff;border-radius:8px;padding:0 12px 0 36px;font-size:13px}.pt-search input:focus{border-color:#99f6e4;outline:none;box-shadow:0 0 0 3px #0d94881f}.pt-table-wrap{overflow-x:auto}.pt-table{min-width:860px}.pt-table th,.pt-table td{padding:14px 16px}.pt-table th.is-order,.pt-table td.is-order{white-space:nowrap;width:150px}.pt-order-cell{font-variant-numeric:tabular-nums;color:var(--text);font-weight:650}.pt-name-cell{align-items:center;gap:12px;min-width:140px;display:flex}.pt-name-cell strong{color:var(--text);font-size:13.5px;font-weight:700}.pt-description{color:#64748b;font-size:13px;line-height:1.45}.pt-type-icon{border-radius:8px;flex-shrink:0;place-items:center;width:30px;height:30px;display:grid}.pt-type-icon.is-create{background:var(--brand-soft);color:var(--brand)}.pt-type-icon.is-view{color:#2563eb;background:#dbeafe}.pt-type-icon.is-update{color:#ea580c;background:#ffedd5}.pt-type-icon.is-delete{color:#dc2626;background:#fee2e2}.pt-type-icon.is-approve{color:#7c3aed;background:#ede9fe}.pt-type-icon.is-export{color:#0891b2;background:#cffafe}.pt-type-icon.is-import{color:#db2777;background:#fce7f3}.pt-type-icon.is-manage,.pt-type-icon.is-generic{color:#475569;background:#e2e8f0}.pt-drawer-root{top:0;bottom:0;right:0;left:var(--sidebar-w);z-index:70;position:fixed}.app-shell.sidebar-collapsed .pt-drawer-root{left:var(--sidebar-collapsed-w)}@media (width<=1024px){.pt-drawer-root{left:0}}.pt-drawer-backdrop{cursor:pointer;background:#0f172a47;border:none;position:absolute;inset:0}.pt-drawer{border-left:1px solid var(--border);background:#fff;flex-direction:column;width:min(440px,92vw);height:100%;display:flex;position:absolute;top:0;right:0;box-shadow:-12px 0 32px #0f172a1f}.pt-drawer-header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:flex-start;gap:12px;padding:20px 22px 16px;display:flex}.pt-drawer-header h2{color:var(--text);margin:0;font-size:18px;font-weight:700}.pt-drawer-header p{color:#64748b;margin:4px 0 0;font-size:13px;line-height:1.45}.pt-drawer-body{flex:1;padding:18px 22px 8px;overflow:auto}.pt-type-card{border:1px solid var(--border);background:#fff;border-radius:12px;padding:16px}.pt-type-card-head{align-items:center;gap:8px;margin-bottom:16px;display:flex}.pt-type-card-head strong{color:var(--text);font-size:14px}.pt-type-card-icon{width:28px;height:28px;color:var(--brand);background:#ecfdf5;border-radius:8px;place-items:center;display:grid}.pt-field{color:var(--text);flex-direction:column;gap:6px;margin-bottom:16px;font-size:13px;font-weight:650;display:flex}.pt-field em{color:#dc2626;font-style:normal}.pt-field input,.pt-field textarea,.pt-field .ul-select{border:1px solid var(--border);width:100%;height:40px;color:var(--text);background:#fff;border-radius:8px;padding:0 12px;font-family:inherit;font-size:13px;font-weight:500}.pt-field textarea{resize:vertical;height:auto;min-height:92px;padding:10px 12px}.pt-field input:focus,.pt-field textarea:focus,.pt-field .ul-select:focus{border-color:#99f6e4;outline:none;box-shadow:0 0 0 3px #0d94881f}.pt-field input:disabled,.pt-field textarea:disabled,.pt-field .ul-select:disabled{color:#64748b;background:#f8fafc}.pt-field small{color:var(--text-muted);font-size:12px;font-weight:500}.pt-field-meta{justify-content:space-between;align-items:flex-start;gap:8px;display:flex}.pt-counter{color:var(--text-muted);white-space:nowrap;font-size:12px;font-weight:600}.pt-drawer-footer{border-top:1px solid var(--border);background:#fff;justify-content:flex-end;gap:10px;padding:14px 22px;display:flex}@media (width<=720px){.pt-drawer{width:100%}.pt-search{max-width:none}.pt-toolbar-actions{justify-content:flex-end;width:100%;margin-left:0}.pt-filter-field{width:100%;min-width:0}}.ac-cat-icon{border-radius:8px;flex-shrink:0;place-items:center;width:30px;height:30px;display:grid}.ac-cat-icon.is-data{color:#2563eb;background:#dbeafe}.ac-cat-icon.is-workflow{color:#16a34a;background:#dcfce7}.ac-cat-icon.is-reporting{color:#7c3aed;background:#ede9fe}.ac-cat-icon.is-import{color:#ea580c;background:#ffedd5}.ac-cat-icon.is-system{background:var(--brand-soft);color:var(--brand)}.ac-cat-icon.is-security{color:#ca8a04;background:#fef9c3}.ac-cat-icon.is-notifications{color:#dc2626;background:#fee2e2}.ac-cat-icon.is-other{color:#475569;background:#e2e8f0}.ac-perm-badge{border-radius:999px;justify-content:center;align-items:center;min-width:34px;padding:3px 8px;font-size:12px;font-weight:700;display:inline-flex}.ac-perm-badge.is-data{color:#1d4ed8;background:#dbeafe}.ac-perm-badge.is-workflow{color:#15803d;background:#dcfce7}.ac-perm-badge.is-reporting{color:#6d28d9;background:#ede9fe}.ac-perm-badge.is-import{color:#c2410c;background:#ffedd5}.ac-perm-badge.is-system{background:var(--brand-soft);color:var(--brand-dark)}.ac-perm-badge.is-security{color:#a16207;background:#fef9c3}.ac-perm-badge.is-notifications{color:#b91c1c;background:#fee2e2}.ac-perm-badge.is-other{color:#475569;background:#e2e8f0}.ac-edit-btn{color:var(--brand)}.ac-edit-btn:hover{background:var(--brand-muted);color:var(--brand-dark)}.ac-readonly-value{color:var(--text);margin:0;font-size:13.5px;font-weight:600}.cpt-page{flex-direction:column;gap:16px;min-width:0;display:flex}.cpt-card{border:1px solid var(--border);background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 1px 2px #0f172a0a}.cpt-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);display:grid}.cpt-col{min-width:0;padding:28px 32px 24px}.cpt-col+.cpt-col{border-left:1px solid #eef2f7}.cpt-section-head{align-items:flex-start;gap:10px;margin-bottom:22px;display:flex}.cpt-section-icon{width:30px;height:30px;color:var(--brand);background:#ecfdf5;border-radius:8px;flex-shrink:0;place-items:center;display:inline-grid}.cpt-section-head h2{color:var(--text);margin:0;font-size:15px;font-weight:700}.cpt-section-head p{color:#64748b;margin:3px 0 0;font-size:12.5px;line-height:1.4}.cpt-field{color:var(--text);flex-direction:column;gap:6px;margin-bottom:18px;font-size:13px;font-weight:650;display:flex}.cpt-field em{color:#dc2626;font-style:normal}.cpt-field input,.cpt-field textarea,.cpt-field select{border:1px solid var(--border);width:100%;height:40px;color:var(--text);background:#fff;border-radius:8px;padding:0 12px;font-family:inherit;font-size:13px;font-weight:500}.cpt-field textarea{resize:vertical;height:auto;min-height:110px;padding:10px 12px}.cpt-field input:focus,.cpt-field textarea:focus,.cpt-field select:focus{border-color:#99f6e4;outline:none;box-shadow:0 0 0 3px #0d94881f}.cpt-field input.has-error,.cpt-field select.has-error,.cpt-field textarea.has-error{border-color:#fca5a5}.cpt-field small{color:var(--text-muted);font-size:12px;font-weight:500}.cpt-field-meta{justify-content:space-between;align-items:flex-start;gap:8px;display:flex}.cpt-counter{color:var(--text-muted);white-space:nowrap;font-size:12px;font-weight:600}.cpt-status-wrap{display:block;position:relative}.cpt-status-dot{pointer-events:none;border-radius:999px;width:8px;height:8px;position:absolute;top:50%;left:12px;transform:translateY(-50%)}.cpt-status-dot.is-active{background:#10b981}.cpt-status-dot.is-inactive{background:var(--danger)}.cpt-status-wrap select{padding-left:28px}.cpt-file-input{display:none}.cpt-icon-picker{border:1.5px dashed var(--border-strong);cursor:pointer;width:148px;height:132px;color:var(--brand);background:#fafafa;border-radius:12px;flex-direction:column;justify-content:center;align-items:center;gap:6px;padding:12px;display:flex}.cpt-icon-picker:hover{background:var(--brand-muted);border-color:#99f6e4}.cpt-icon-picker strong{color:var(--brand-dark);font-size:12.5px;font-weight:650}.cpt-icon-picker span{color:var(--text-muted);text-align:center;font-size:11px;font-weight:500;line-height:1.3}.cpt-icon-preview{border:1px solid var(--border);background:#fafafa;border-radius:12px;align-items:center;gap:12px;width:fit-content;min-width:148px;padding:10px 12px;display:flex}.cpt-icon-preview img{object-fit:contain;background:#fff;border-radius:8px;width:48px;height:48px}.cpt-icon-preview strong{color:var(--text);text-overflow:ellipsis;white-space:nowrap;max-width:160px;font-size:13px;display:block;overflow:hidden}.cpt-icon-clear{color:#dc2626;cursor:pointer;background:0 0;border:none;padding:0;font-size:12.5px;font-weight:600}.cpt-color-field{border:none;margin:0 0 18px;padding:0}.cpt-color-field legend{color:var(--text);margin-bottom:8px;padding:0;font-size:13px;font-weight:650}.cpt-color-row{align-items:center;gap:10px;display:flex}.cpt-color{color:#fff;cursor:pointer;border:2px solid #0000;border-radius:999px;place-items:center;width:28px;height:28px;padding:0;display:inline-grid;box-shadow:inset 0 0 0 1px #0f172a14}.cpt-color.is-selected{box-shadow:0 0 0 3px #fff, 0 0 0 5px var(--swatch,var(--brand))}.cpt-footer{background:#fff;border-top:1px solid #eef2f7;justify-content:flex-end;gap:10px;padding:16px 32px;display:flex}@media (width<=980px){.cpt-grid{grid-template-columns:1fr}.cpt-col+.cpt-col{border-top:1px solid #eef2f7;border-left:none}}@media (width<=720px){.cpt-col,.cpt-footer{padding-left:16px;padding-right:16px}.cpt-footer{flex-wrap:wrap}.cpt-footer .btn{flex:auto}}.ura-page{flex-direction:column;gap:16px;min-width:0;display:flex}.ura-page .app-page-header .page-subtitle{max-width:72ch}.ura-title-icon{width:28px;height:28px;color:var(--brand);background:#ecfdf5;border-radius:8px;flex-shrink:0;place-items:center;display:inline-grid}.ura-card{box-shadow:0 1px 3px #0f172a0f}.ura-toolbar{border-bottom:1px solid var(--border);flex-wrap:wrap;align-items:flex-end;gap:10px;padding:16px 18px;display:flex}.ura-search{flex:280px;min-width:220px;max-width:360px;position:relative}.ura-search svg{color:var(--text-muted);pointer-events:none;position:absolute;top:50%;left:12px;transform:translateY(-50%)}.ura-search input{border:1px solid var(--border);width:100%;height:38px;color:var(--text);background:#fff;border-radius:8px;padding:0 12px 0 36px;font-size:13px}.ura-search input:focus{border-color:#99f6e4;outline:none;box-shadow:0 0 0 3px #0d94881f}.ura-filter-field{flex-direction:column;gap:4px;min-width:0;display:flex}.ura-filter-field label{color:#64748b;font-size:11.5px;font-weight:650}.ura-filter-field .ul-select{min-width:132px;max-width:170px}.ura-clear-btn{white-space:nowrap;align-self:flex-end;margin-left:auto}.ura-table-wrap{overflow-x:auto}.ura-table{min-width:1280px}.ura-role-cell{flex-direction:column;gap:4px;min-width:130px;display:flex}.ura-role-cell strong{color:var(--text);font-size:13px;font-weight:650}.ura-role-badge{white-space:nowrap;border-radius:999px;align-self:flex-start;align-items:center;padding:2px 8px;font-size:11px;font-weight:650;display:inline-flex}.ura-role-badge.is-primary{color:#047857;background:#d1fae5}.ura-role-badge.is-secondary{color:#64748b;background:#f1f5f9}.ura-org-cell{word-break:break-word;max-width:150px;line-height:1.35}.ura-branch-cell{flex-direction:column;gap:2px;min-width:130px;display:flex}.ura-branch-cell span:first-child{color:var(--text);font-size:13px;font-weight:600}.ura-branch-cell span:last-child{color:#64748b;font-size:12px}.ura-assigned-by-cell{flex-direction:column;gap:2px;min-width:160px;display:flex}.ura-assigned-by-cell strong{color:var(--text);font-size:13px;font-weight:650}.ura-assigned-by-cell span{color:var(--text-muted);font-size:12px}.ura-date-cell{white-space:nowrap;color:var(--text-secondary);font-size:12.5px}.ura-status-badge{white-space:nowrap;color:var(--text-secondary);align-items:center;gap:6px;font-size:12.5px;font-weight:600;display:inline-flex}.ura-status-dot{border-radius:999px;flex-shrink:0;width:7px;height:7px}.ura-status-badge.is-active .ura-status-dot{background:#10b981}.ura-status-badge.is-inactive .ura-status-dot{background:#f97316}.ura-primary-star{color:#10b981;fill:#10b981}.ura-primary-dash{color:var(--text-muted);font-size:14px}.ura-actions{align-items:center;gap:2px;display:inline-flex}.ura-edit-btn{color:#2563eb}.ura-edit-btn:hover{color:#1d4ed8;background:#eff6ff}.ura-pagination .ul-pagination-controls .page-btn{border-radius:999px}@media (width<=1100px){.ura-toolbar{align-items:stretch}.ura-search{flex:100%;max-width:none}.ura-clear-btn{align-self:flex-start;margin-left:0}}.arm-overlay{z-index:1100;background:#0f172a7a}.arm-modal{border-radius:16px;flex-direction:column;width:min(980px,96vw);max-height:min(92vh,920px);padding:0;display:flex;overflow:hidden}.arm-header{border-bottom:1px solid var(--border);flex-shrink:0;justify-content:space-between;align-items:flex-start;gap:14px;padding:20px 24px 16px;display:flex}.arm-header-left{align-items:flex-start;gap:12px;min-width:0;display:flex}.arm-header-icon{width:40px;height:40px;color:var(--brand);background:#ecfdf5;border-radius:10px;flex-shrink:0;place-items:center;display:inline-grid}.arm-header h2{color:var(--text);letter-spacing:-.02em;margin:0;font-size:20px;font-weight:700}.arm-header p{color:#64748b;max-width:56ch;margin:4px 0 0;font-size:13px;line-height:1.45}.arm-body{flex-direction:column;flex:1;gap:20px;padding:18px 24px 20px;display:flex;overflow:auto}.arm-section h3{color:var(--text);align-items:center;gap:10px;margin:0 0 14px;font-size:14.5px;font-weight:700;display:flex}.arm-step-num{background:var(--brand);color:#fff;border-radius:999px;flex-shrink:0;place-items:center;width:24px;height:24px;font-size:12px;font-weight:700;display:inline-grid}.arm-scope-grid,.arm-details-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;display:grid}.arm-scope-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.arm-field{flex-direction:column;gap:6px;min-width:0;display:flex}.arm-field>span:first-child{color:var(--text-secondary);font-size:12.5px;font-weight:650}.arm-required{color:#dc2626}.arm-field .ul-select,.arm-field .app-date-input{width:100%}.arm-field-hint{color:#64748b;font-size:11.5px;line-height:1.35}.arm-field-hint.is-green{color:#059669;font-weight:600}.arm-banner{border-radius:8px;align-items:flex-start;gap:8px;margin-top:14px;padding:10px 12px;font-size:12.5px;line-height:1.4;display:flex}.arm-banner svg{flex-shrink:0;margin-top:1px}.arm-banner.is-green{color:#047857;background:#ecfdf5;border:1px solid #a7f3d0}.arm-banner.is-green svg{color:#059669}.arm-banner.is-blue{color:#1e40af;background:#eff6ff;border:1px solid #bfdbfe}.arm-banner.is-blue svg{color:#2563eb}.arm-section-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;display:flex}.arm-section-head h3{margin:0}.arm-selected-count{color:#047857;white-space:nowrap;background:#d1fae5;border-radius:999px;align-items:center;padding:4px 10px;font-size:12px;font-weight:700;display:inline-flex}.arm-role-search{margin-bottom:12px;position:relative}.arm-role-search svg{color:var(--text-muted);pointer-events:none;position:absolute;top:50%;left:12px;transform:translateY(-50%)}.arm-role-search input{border:1px solid var(--border);width:100%;height:38px;color:var(--text);background:#fff;border-radius:8px;padding:0 12px 0 36px;font-size:13px}.arm-role-search input:focus{border-color:#99f6e4;outline:none;box-shadow:0 0 0 3px #0d94881f}.arm-role-table-wrap{border:1px solid var(--border);border-radius:10px;overflow-x:auto}.arm-role-table{border-collapse:collapse;width:100%;min-width:720px}.arm-role-table th,.arm-role-table td{text-align:center;vertical-align:middle;color:var(--text);border-bottom:1px solid #f1f5f9;padding:11px 12px;font-size:13px}.arm-role-table th{color:#64748b;background:#f8fafc;font-size:12px;font-weight:650}.arm-role-table tbody tr:last-child td{border-bottom:none}.arm-role-table tbody tr.is-selected{background:#f0fdf9}.arm-role-table th.is-check,.arm-role-table td.is-check{text-align:center;width:44px}.arm-role-table th.is-actions,.arm-role-table td.is-actions{text-align:center;width:64px}.arm-role-table input[type=checkbox]{width:16px;height:16px;accent-color:var(--brand);cursor:pointer}.arm-role-name-cell{align-items:center;gap:10px;min-width:150px;display:flex}.arm-role-name-cell strong{font-size:13px;font-weight:650}.arm-role-desc{color:#64748b;max-width:360px;font-size:12.5px;line-height:1.4}.arm-role-icon{border-radius:999px;flex-shrink:0;place-items:center;width:32px;height:32px;display:inline-grid}.arm-role-icon.is-purple{color:#7c3aed;background:#f5f3ff}.arm-role-icon.is-orange{color:#ea580c;background:#fff7ed}.arm-role-icon.is-pink{color:#db2777;background:#fdf2f8}.arm-role-icon.is-teal{color:var(--brand);background:#ecfdf5}.arm-role-icon.is-blue{color:#2563eb;background:#eff6ff}.arm-role-icon.is-yellow{color:#ca8a04;background:#fefce8}.arm-perm-badge{color:#047857;white-space:nowrap;background:#d1fae5;border-radius:999px;align-items:center;padding:4px 10px;font-size:11.5px;font-weight:650;display:inline-flex}.arm-info-wrap{display:inline-flex;position:relative}.arm-info-btn{color:#64748b}.arm-info-btn:hover{color:var(--text);background:#f1f5f9}.arm-role-popover{z-index:30;border:1px solid var(--border);text-align:center;background:#fff;border-radius:8px;flex-direction:column;gap:4px;width:min(260px,70vw);padding:10px 12px;display:flex;position:absolute;top:calc(100% + 6px);right:0;box-shadow:0 10px 24px #0f172a1f}.arm-role-popover strong{color:var(--text);font-size:13px}.arm-role-popover span{color:#64748b;font-size:12px}.arm-role-popover p{color:#475569;margin:4px 0 0;font-size:12px;line-height:1.4}.arm-role-empty{text-align:center!important;color:#64748b!important;padding:24px 12px!important}.arm-footer{border-top:1px solid var(--border);background:#fff;flex-shrink:0;justify-content:flex-end;align-items:center;gap:10px;padding:14px 24px;display:flex}@media (width<=900px){.arm-scope-grid,.arm-details-grid{grid-template-columns:1fr 1fr}}@media (width<=640px){.arm-header,.arm-body,.arm-footer{padding-left:16px;padding-right:16px}.arm-scope-grid,.arm-details-grid{grid-template-columns:1fr}.arm-modal{border-radius:12px;width:100%;max-height:100vh}.arm-footer{flex-wrap:wrap}.arm-footer .btn{flex:auto}}.era-modal{width:min(1080px,96vw)}.arm-overlay .confirm-dialog-overlay{z-index:1200}.era-scope-grid{grid-template-columns:minmax(240px,1.4fr) repeat(3,minmax(0,1fr))}.era-user-field{min-width:0}.era-user-display{border:1px solid var(--border);min-height:42px;color:var(--text);background:#f8fafc;border-radius:8px;align-items:center;gap:10px;padding:6px 10px;display:flex}.era-user-display .ul-avatar{flex-shrink:0;width:32px;height:32px;font-size:11px}.era-user-copy{flex-direction:column;flex:1;min-width:0;line-height:1.25;display:flex}.era-user-copy strong{font-size:13px;font-weight:650}.era-user-copy small{color:#64748b;text-overflow:ellipsis;white-space:nowrap;font-size:11.5px;overflow:hidden}.era-user-display svg{color:var(--text-muted);flex-shrink:0}.era-bottom-grid{grid-template-columns:1fr 1fr;align-items:start;gap:20px;display:grid}.era-details-grid{grid-template-columns:1fr 1fr;gap:14px;display:grid}.era-remarks-wrap{position:relative}.era-remarks-wrap textarea{resize:vertical;border:1px solid var(--border);width:100%;min-height:118px;font:inherit;color:var(--text);background:#fff;border-radius:8px;padding:10px 12px 28px;font-size:13px}.era-remarks-wrap textarea:focus{border-color:#99f6e4;outline:none;box-shadow:0 0 0 3px #0d94881f}.era-char-count{color:var(--text-muted);font-size:11.5px;position:absolute;bottom:8px;right:10px}@media (width<=900px){.era-scope-grid,.era-bottom-grid,.era-details-grid{grid-template-columns:1fr 1fr}}@media (width<=640px){.era-scope-grid,.era-bottom-grid,.era-details-grid{grid-template-columns:1fr}}.prms-page{flex-direction:column;gap:16px;min-width:0;display:flex}.prms-title-icon{color:#2563eb;background:#eff6ff;border-radius:8px;flex-shrink:0;place-items:center;width:28px;height:28px;display:inline-grid}.prms-card{box-shadow:0 1px 2px #0f172a08}.prms-toolbar{border-bottom:1px solid var(--border);flex-wrap:wrap;align-items:center;gap:10px;padding:14px 16px;display:flex}.prms-toolbar .mp-search{flex:220px;min-width:200px;max-width:320px}.prms-toolbar .ul-select{min-width:140px}.prms-export-btn{margin-left:auto}.prms-table-wrap{overflow-x:auto}.prms-table{min-width:980px}.prms-name-cell{flex-direction:column;gap:2px;min-width:200px;display:flex}.prms-name-cell strong{color:var(--text);font-size:13.5px;font-weight:700;line-height:1.25}.prms-name-cell span{color:var(--text-muted);font-size:12px;line-height:1.35}.prms-code-badge{color:#475569;white-space:nowrap;background:#f1f5f9;border-radius:999px;align-items:center;padding:4px 10px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:11.5px;font-weight:600;display:inline-flex}.prms-module-cell{min-width:120px;color:var(--text);align-items:center;gap:8px;font-size:13px;font-weight:600;display:inline-flex}.prms-module-icon{border-radius:8px;flex-shrink:0;place-items:center;width:28px;height:28px;display:inline-grid}.prms-module-icon.is-purchase{color:var(--brand);background:#ecfdf5}.prms-module-icon.is-inventory{color:#ea580c;background:#fff7ed}.prms-module-icon.is-sales{color:#059669;background:#ecfdf5}.prms-module-icon.is-transfer{color:#2563eb;background:#eff6ff}.prms-module-icon.is-master-data{color:#7c3aed;background:#f5f3ff}.prms-module-icon.is-users-access{color:#1d4ed8;background:#eff6ff}.prms-module-icon.is-reports{color:#b45309;background:#fef3c7}.prms-type-badge{letter-spacing:.03em;white-space:nowrap;border-radius:999px;align-items:center;padding:3px 9px;font-size:10.5px;font-weight:700;display:inline-flex}.prms-type-badge.is-create{color:#047857;background:#d1fae5}.prms-type-badge.is-approve{color:#1d4ed8;background:#dbeafe}.prms-type-badge.is-update{color:#c2410c;background:#ffedd5}.prms-type-badge.is-delete{color:#b91c1c;background:#fee2e2}.prms-type-badge.is-view{color:#475569;background:#f1f5f9}.prms-type-badge.is-manage{color:#6d28d9;background:#ede9fe}.prms-type-badge.is-export{color:#1e40af;background:#dbeafe}.prms-type-badge.is-import{color:#c2410c;background:#ffedd5}.prms-module-icon.is-settings{color:#475569;background:#f1f5f9}.prms-pagination .ul-pagination-controls .page-btn{border-radius:999px}.prms-info{flex-direction:column;gap:12px;display:flex}.prms-quick-btn{width:100%;color:var(--brand-dark);border-color:#99f6e4;justify-content:center}.prms-quick-btn:hover{background:#f0fdf9}.prms-modal-overlay{z-index:1100}.prms-view-modal{width:min(520px,94vw)}.cpm-overlay{z-index:1100;background:#0f172a61}.cpm-modal{border:1px solid var(--border);border-radius:14px;flex-direction:column;width:min(548px,94vw);max-height:min(92vh,880px);padding:0;display:flex;overflow:hidden;box-shadow:0 20px 40px #0f172a1f,0 4px 12px #0f172a0f}.cpm-header{border-bottom:1px solid var(--border);flex-shrink:0;justify-content:space-between;align-items:flex-start;gap:14px;padding:22px 24px 16px;display:flex}.cpm-header h2{color:var(--text);letter-spacing:-.02em;margin:0;font-size:19px;font-weight:700}.cpm-header p{color:#64748b;margin:5px 0 0;font-size:13px;line-height:1.45}.cpm-close{color:#64748b;flex-shrink:0}.cpm-body{flex:1;padding:18px 24px 8px;overflow:auto}.cpm-section-head{align-items:center;gap:10px;margin-bottom:16px;display:flex}.cpm-section-icon{width:28px;height:28px;color:var(--brand);background:#ecfdf5;border-radius:8px;flex-shrink:0;place-items:center;display:inline-grid}.cpm-section-head h3{color:var(--text);margin:0;font-size:14px;font-weight:650}.cpm-form{flex-direction:column;gap:14px;display:flex}.cpm-grid{grid-template-columns:1fr 1fr;gap:14px 16px;display:grid}.cpm-field{flex-direction:column;gap:6px;min-width:0;display:flex}.cpm-field-full{width:100%}.cpm-field label,.cpm-default-access legend{color:var(--text-secondary);font-size:12.5px;font-weight:650}.cpm-required{color:var(--danger)}.cpm-input,.cpm-textarea{border:1px solid var(--border);width:100%;color:var(--text);background:#fff;border-radius:8px;min-height:38px;padding:8px 12px;font-size:13px}.cpm-select{border:1px solid var(--border);width:100%;color:var(--text);appearance:none;background-color:#fff;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='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");background-position:right 10px center;background-repeat:no-repeat;border-radius:8px;height:38px;min-height:38px;padding:0 28px 0 12px;font-size:13px}.cpm-select:focus{border-color:#99f6e4;outline:none;box-shadow:0 0 0 3px #0d94881f}.cpm-input::placeholder,.cpm-textarea::placeholder{color:var(--text-muted)}.cpm-input.has-error,.cpm-select.has-error{border-color:#f87171}.cpm-textarea-wrap{position:relative}.cpm-textarea{resize:vertical;min-height:96px;padding-bottom:28px}.cpm-char-count{color:var(--text-muted);pointer-events:none;font-size:11.5px;position:absolute;bottom:8px;right:12px}.cpm-hint{color:var(--text-muted);margin:0;font-size:11.5px;line-height:1.35}.cpm-field .field-error{margin:0;font-size:11.5px}.cpm-default-access{border:0;margin:4px 0 0;padding:0}.cpm-default-access legend{margin-bottom:10px;padding:0}.cpm-access-radios{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;display:grid}.cpm-access-option{border:1px solid var(--border);cursor:pointer;background:#fff;border-radius:10px;align-items:flex-start;gap:8px;padding:10px 12px;transition:border-color .15s,background .15s;display:flex}.cpm-access-option input{accent-color:var(--brand);flex-shrink:0;margin-top:2px}.cpm-access-option span{flex-direction:column;gap:2px;min-width:0;display:flex}.cpm-access-option strong{color:var(--text);font-size:13px;font-weight:600}.cpm-access-option small{color:#64748b;font-size:11.5px;font-weight:400;line-height:1.35}.cpm-access-option.is-selected{border-color:var(--brand);background:color-mix(in srgb, var(--brand) 8%, white)}.cpm-footer{border-top:1px solid var(--border);flex-shrink:0;justify-content:flex-end;align-items:center;gap:10px;padding:14px 24px 20px;display:flex}.cpm-cancel{min-width:88px}.cpm-submit{align-items:center;gap:7px;min-width:150px;display:inline-flex}.prms-view-body{padding-top:4px}.prms-view-grid{grid-template-columns:1fr 1fr;gap:14px;display:grid}.prms-view-grid>div{flex-direction:column;gap:6px;display:flex}.prms-view-label{color:#64748b;text-transform:uppercase;letter-spacing:.04em;font-size:11.5px;font-weight:650}@media (width<=1100px){.prms-export-btn{margin-left:0}.prms-toolbar .mp-search{flex:100%;max-width:none}}@media (width<=640px){.cpm-grid,.cpm-access-radios,.prms-view-grid{grid-template-columns:1fr}}.po-table th,.po-table-redesign th,.medicines-table th,.medicine-table thead th,.category-table thead th,.pack-table thead th,.vendor-table thead th,.facility-table thead th,.view-facility-users-table thead th,.grn-table th,.grn-payment-history-table th,.grn-po-items-table thead th,.stock-table thead th,.sm-table th,.sm-batch-table thead th,.sm-ph-table thead th,.sd-table th,.pt-table th,.sh-table th,.si-table th,.sid-table th,.csr-table th,.cu-table th,.cuw-table th,.cuw-roles-table th,.ul-table th,.aa-branch-table th,.arm-role-table th,.view-po-items-table th,.view-ro-items-table th,.order-receipt-table th,.issue-stock-table th,.create-ro-table thead th,.create-ro-batches-section .create-ro-table thead th,.edit-ro-modal .create-ro-items-table thead th,.grn-receipt-table th,.aa-facility-table th,.ar-role-table th,.prms-table th,.mp-table th,.rt-table th,.ac-table th,.ptypes-table th,.roles-table th,.ura-table th,.ds-table th,.ds-view-table th,.data-table th,.pending-payments-table th{letter-spacing:.03em;border-color:#ffffff1f;background:var(--brand-dark)!important;color:#fff!important;font-weight:700!important}.srep-table th,.prep-table th,.irep-table th,.frep-table th,.rrep-table th,.grep-table th,.payrep-table th,.erep-table th,.strep-table th,.rp-table th{border-color:#ffffff1f;border-right-style:solid;border-right-width:1px;background:var(--brand-dark)!important;color:#fff!important;font-weight:700!important}.po-table th:last-child,.grn-table th:last-child,.pt-table th:last-child,.sh-table th:last-child,.medicine-table thead th:last-child,.vendor-table thead th:last-child,.facility-table thead th:last-child,.stock-table thead th:last-child{border-right:none}.change-password-page{max-width:1120px;padding:8px 4px 32px}.cp-forced-banner{color:#9a3412;background:linear-gradient(135deg,#fff7ed 0%,#fffbeb 100%);border:1px solid #fed7aa;border-radius:12px;align-items:flex-start;gap:10px;margin:0 0 16px;padding:12px 16px;font-size:13.5px;line-height:1.5;display:flex}.cp-banner-icon{flex-shrink:0;justify-content:center;align-items:center;margin-top:1px;display:inline-flex}.cp-forced-banner .cp-banner-icon{color:#ea580c}.cp-tip-banner{color:#0f766e;background:linear-gradient(135deg,#ecfdf8 0%,#f0fdfa 100%);border:1px solid #99f6e4;border-radius:10px;align-items:flex-start;gap:10px;margin:0 0 18px;padding:11px 13px;font-size:12.5px;line-height:1.5;display:flex}.cp-tip-banner .cp-banner-icon{color:#0d9488}.cp-layout{grid-template-columns:minmax(0,1fr) minmax(260px,300px);align-items:start;gap:20px;display:grid}.cp-form-card,.cp-tips-card{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:22px 24px;box-shadow:0 8px 24px #0f172a0a}.cp-form-head{align-items:flex-start;gap:12px;margin-bottom:18px;display:flex}.cp-form-head h2{color:#0f172a;margin:0 0 4px;font-size:17px;font-weight:700}.cp-form-head p{color:#64748b;margin:0;font-size:13px;line-height:1.45}.cp-form-icon{color:#0f766e;background:linear-gradient(135deg,#ccfbf1 0%,#ecfdf8 100%);border:1px solid #99f6e4;border-radius:12px;flex-shrink:0;place-items:center;width:40px;height:40px;display:grid}.cp-fields{width:100%;min-width:0}.cp-password-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:14px;display:grid}.cp-password-row .cp-field{min-width:0;margin-bottom:0}@keyframes cp-icon-float{0%,to{transform:translateY(0)}50%{transform:translateY(-4px)}}@keyframes cp-icon-pulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.85;transform:scale(1.12)}}@keyframes cp-icon-wiggle{0%,to{transform:rotate(0)}25%{transform:rotate(-8deg)}75%{transform:rotate(8deg)}}@keyframes cp-shield-glow{0%,to{filter:drop-shadow(0 0 #14b8a600);transform:scale(1)}50%{filter:drop-shadow(0 0 6px #14b8a673);transform:scale(1.06)}}@keyframes cp-check-pop{0%{opacity:0;transform:scale(.4)}70%{opacity:1;transform:scale(1.15)}to{opacity:1;transform:scale(1)}}@keyframes cp-lock-nudge{0%,to{transform:rotate(0)}30%{transform:rotate(-6deg)}60%{transform:rotate(6deg)}}.cp-anim-float,.cp-form-icon.cp-anim-float{animation:3.2s ease-in-out infinite cp-icon-float}.cp-anim-pulse{animation:2.4s ease-in-out infinite cp-icon-pulse}.cp-anim-wiggle{animation:2.8s ease-in-out infinite cp-icon-wiggle}.cp-anim-shield{animation:2.6s ease-in-out infinite cp-shield-glow}.cp-anim-check{animation:.35s ease-out cp-check-pop}.cp-anim-lock{animation:2.5s ease-in-out infinite cp-lock-nudge}.cp-anim-spin{animation:.8s linear infinite spin}.cp-actions .btn-primary:hover .cp-anim-lock{animation-duration:1.2s}.cp-field{color:#334155;flex-direction:column;gap:6px;margin-bottom:14px;font-size:12.5px;font-weight:650;display:flex}.cp-field em{color:#dc2626;font-style:normal}.cp-input-wrap{position:relative}.cp-input-wrap input{color:#0f172a;background:#fff;border:1px solid #e2e8f0;border-radius:8px;width:100%;height:38px;padding:0 38px 0 11px;font-size:13px;transition:border-color .15s,box-shadow .15s}.cp-input-wrap input:focus{border-color:#14b8a6;outline:none;box-shadow:0 0 0 3px #14b8a61f}.cp-field.is-invalid .cp-input-wrap input{background:#fef2f2;border-color:#f87171}.cp-eye{color:#64748b;cursor:pointer;background:0 0;border:0;border-radius:6px;place-items:center;width:28px;height:28px;display:grid;position:absolute;top:50%;right:6px;transform:translateY(-50%)}.cp-eye:hover{color:#0f766e;background:#f1f5f9}.cp-strength{margin:-6px 0 12px;font-size:12.5px}.cp-strength.is-weak{color:#dc2626}.cp-strength.is-medium{color:#d97706}.cp-strength.is-strong{color:#059669}.cp-requirements{color:#334155;background:linear-gradient(135deg,#ecfdf8 0%,#f8fffe 100%);border:1px solid #ccfbf1;border-radius:10px;margin:0 0 14px;padding:12px 14px;font-size:12.5px}.cp-requirements ul{gap:6px;margin:8px 0 0;padding:0;list-style:none;display:grid}.cp-requirements li{color:#64748b;align-items:center;gap:8px;font-size:12px;display:flex}.cp-requirements li.is-met{color:#0f766e}.cp-req-dot{background:#fff;border:1px solid #cbd5e1;border-radius:999px;flex-shrink:0;justify-content:center;align-items:center;width:15px;height:15px;display:inline-flex}.cp-requirements li.is-met .cp-req-dot{color:#fff;background:#14b8a6;border-color:#14b8a6}.cp-actions{justify-content:flex-end;gap:10px;margin-top:4px;padding-top:6px;display:flex}.cp-actions .btn-primary{min-width:148px}.cp-tips-card{background:linear-gradient(#fff 0%,#f8fffe 100%);border-left:3px solid #14b8a6}.cp-tips-card h3{color:#0f172a;align-items:center;gap:8px;margin:0 0 12px;font-size:15px;font-weight:700;display:flex}.cp-tips-card h3 svg{color:#0f766e}.cp-tips-card ul{color:#475569;margin:0;padding-left:18px;font-size:12.5px;line-height:1.65}@media (width<=960px){.cp-layout{grid-template-columns:1fr;max-width:640px}.cp-password-row{grid-template-columns:1fr;gap:12px}}@media (prefers-reduced-motion:reduce){.change-password-page .cp-anim-float,.change-password-page .cp-anim-pulse,.change-password-page .cp-anim-wiggle,.change-password-page .cp-anim-shield,.change-password-page .cp-anim-lock,.change-password-page .cp-anim-check,.change-password-page .cp-anim-spin{animation:none!important}}.page-content:has(.pd-page){min-height:0;height:calc(100dvh - var(--topbar-h));max-height:calc(100dvh - var(--topbar-h));box-sizing:border-box;flex-direction:column;flex:1;padding-top:10px;padding-bottom:10px;display:flex;overflow:hidden}.main-column:has(.pd-page){height:100dvh;max-height:100dvh;overflow:hidden}.pd-page{--pd-green:#0f8f7f;--pd-green-soft:#e7f6f3;--pd-blue:#3b82f6;--pd-orange:#f59e0b;--pd-purple:#8b5cf6;--pd-red:#ef4444;flex-direction:column;flex:1;gap:8px;height:100%;min-height:0;display:flex;overflow:hidden}.pd-page .app-page-header{flex:none;gap:2px;margin-bottom:0}.pd-page .app-page-header-row.has-subtitle{align-items:center;min-height:0}.pd-page .app-page-header .page-subtitle{max-width:none;font-size:12px}.pd-page .breadcrumbs{font-size:11.5px}.pd-page .app-page-header h1{font-size:1.15rem}.pd-date-control{z-index:6;align-items:center;display:inline-flex;position:relative}.pd-date-control .app-date-picker{z-index:90}.pd-error{color:#991b1b;background:#fef2f2;border:1px solid #fecaca;border-radius:10px;flex:none;justify-content:space-between;align-items:center;gap:12px;padding:8px 12px;display:flex}.pd-error p{margin:2px 0 0;font-size:12px}.pd-kpi-grid,.pd-money-grid,.pd-alerts{flex:none}.pd-kpi-grid,.pd-money-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;display:grid}.pd-page .pd-kpi-card,.pd-page .pd-money-card,.pd-page .pd-card{border:1px solid var(--border-light);background:#fff;border-radius:12px;box-shadow:0 1px 2px #0f172a0a}.pd-kpi-card,.pd-money-card{gap:2px;min-width:0;padding:8px 10px;display:grid}.pd-kpi-card.is-loading,.pd-money-card.is-loading{opacity:.72}.pd-kpi-head{color:#475569;align-items:center;gap:6px;min-width:0;font-size:11.5px;font-weight:700;display:flex}.pd-kpi-head span:last-child{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.pd-kpi-icon{border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;width:24px;height:24px;display:inline-flex}.pd-kpi-icon svg{width:14px;height:14px;display:block}.pd-kpi-icon.tone-po{color:#2563eb;background:#e8f1ff}.pd-kpi-icon.tone-grn{background:var(--pd-green-soft);color:var(--pd-green)}.pd-kpi-icon.tone-return{color:var(--pd-purple);background:#f3e8ff}.pd-kpi-icon.tone-debit{color:#d97706;background:#fff4e5}.pd-kpi-icon.tone-pending-del{color:var(--pd-orange);background:#fff7ed}.pd-kpi-icon.tone-overdue{color:var(--pd-red);background:#fee2e2}.pd-kpi-card strong,.pd-money-card strong{letter-spacing:-.03em;color:#0f172a;font-size:18px;font-weight:800;line-height:1.15}.pd-kpi-card>small{color:#64748b;font-size:11px;font-weight:600}.pd-kpi-dots{color:#475569;flex-wrap:nowrap;gap:4px 8px;margin:4px 0 0;padding:0;font-size:11px;font-weight:650;display:flex;overflow:hidden}.pd-kpi-dots span{white-space:nowrap;align-items:center;gap:4px;display:inline-flex}.pd-kpi-dots i{border-radius:99px;flex-shrink:0;width:6px;height:6px}.pd-kpi-dots i.tone-pending{background:var(--pd-orange)}.pd-kpi-dots i.tone-ordered{background:#10b981}.pd-kpi-dots i.tone-partial{background:var(--pd-blue)}.pd-kpi-value-line{color:#64748b;justify-content:space-between;gap:8px;margin:2px 0 0;font-size:11px;display:flex}.pd-kpi-value-line b{color:#0f172a;font-weight:700}.pd-kpi-delta{align-items:center;gap:4px;margin:0;font-size:11px;font-weight:700;display:flex}.pd-kpi-delta small{color:#64748b;font-weight:600}.pd-kpi-delta.tone-up,.pd-kpi-delta.tone-down{color:var(--pd-green)}.pd-kpi-delta.tone-alert{color:var(--pd-red)}.pd-analytics-row,.pd-tables-row{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr) minmax(0,.9fr);align-items:stretch;gap:8px;min-width:0;min-height:0;display:grid}.pd-analytics-row{flex:1.15 1 0}.pd-tables-row{flex:1 1 0}.pd-page .pd-card{flex-direction:column;min-width:0;height:100%;min-height:0;padding:10px 12px;display:flex;overflow:hidden}.pd-card-header{flex:none;justify-content:space-between;align-items:center;gap:8px;margin-bottom:6px;display:flex}.pd-card-header h2{color:#0f172a;white-space:nowrap;text-overflow:ellipsis;margin:0;font-size:13px;font-weight:800;overflow:hidden}.pd-period-chip,.pd-select{border:1px solid var(--border);color:#475569;background:#fff;border-radius:8px;min-height:26px;padding:0 8px;font-size:11px;font-weight:650}.pd-link-btn{color:var(--pd-green);cursor:pointer;white-space:nowrap;background:0 0;border:none;padding:0;font-size:11.5px;font-weight:700}.pd-link-btn:hover{text-decoration:underline}.pd-status-body{flex:1;grid-template-columns:minmax(120px,.9fr) minmax(0,1fr);align-items:stretch;gap:6px;min-height:0;display:grid}.pd-donut{height:100%;min-height:0;position:relative}.pd-donut-center{text-align:center;pointer-events:none;place-content:center;display:grid;position:absolute;inset:0}.pd-donut-center strong{color:#0f172a;font-size:18px;font-weight:800}.pd-donut-center span{color:#64748b;font-size:10px;font-weight:650}.pd-legend,.pd-supplier-list{gap:4px;min-height:0;margin:0;padding:0;list-style:none;display:grid;overflow:auto}.pd-legend li,.pd-supplier-list li{grid-template-columns:14px minmax(0,1fr);align-items:center;gap:6px;display:grid}.pd-legend-dot{border-radius:99px;width:7px;height:7px}.pd-legend-copy{justify-content:space-between;align-items:baseline;gap:8px;min-width:0;display:flex}.pd-legend-copy strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.pd-legend-copy small{flex-shrink:0}.pd-legend strong,.pd-supplier-meta strong{color:#0f172a;font-size:12px;line-height:1.2;display:block}.pd-legend small{color:#64748b;font-size:11px}.pd-chart-wrap{flex:1;height:100%;min-height:0}.pd-supplier-rank{background:var(--pd-green-soft);width:18px;height:18px;color:var(--pd-green);border-radius:99px;justify-content:center;align-items:center;font-size:10px;font-weight:800;display:inline-flex}.pd-supplier-meta{justify-content:space-between;gap:8px;margin-bottom:3px;display:flex}.pd-supplier-meta b{color:#0f172a;font-size:12px}.pd-supplier-bar{background:#eef2f6;border-radius:99px;height:6px;display:block;overflow:hidden}.pd-supplier-bar i{border-radius:99px;height:100%;display:block}.pd-table-wrap{flex:1;min-height:0;overflow:auto hidden}.pd-table{border-collapse:collapse;width:100%;font-size:12px}.pd-table th,.pd-table td{text-align:center;color:#334155;white-space:nowrap;border-bottom:1px solid #f1f5f9;padding:5px 6px}.pd-table th{letter-spacing:.04em;color:#64748b;font-size:10px;font-weight:700}.pd-table td.num,.pd-table th.num{text-align:center}.pd-page .status-badge{min-height:20px;padding:0 7px;font-size:10.5px}.pd-empty,.pd-empty-cell{text-align:center;color:#64748b;margin:0;padding:16px 8px;font-size:12px}.pd-alerts{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;display:grid}.pd-alert{border:1px solid var(--border-light);background:#fff;border-radius:10px;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:8px;min-width:0;padding:8px 10px;display:grid}.pd-alert-icon{border-radius:8px;justify-content:center;align-items:center;width:28px;height:28px;display:inline-flex}.pd-alert-icon svg{display:block}.pd-alert strong{color:#0f172a;text-overflow:ellipsis;white-space:nowrap;font-size:12px;display:block;overflow:hidden}.pd-alert p{color:#334155;margin:0;font-size:11.5px;font-weight:700}.pd-alert.tone-warn .pd-alert-icon{color:#d97706;background:#fff7ed}.pd-alert.tone-orange .pd-alert-icon{color:var(--pd-orange);background:#fff4e5}.pd-alert.tone-danger .pd-alert-icon{color:var(--pd-red);background:#fee2e2}.pd-alert.tone-danger p{color:var(--pd-red)}.pd-alert.tone-blue .pd-alert-icon{color:var(--pd-blue);background:#e8f1ff}@media (height<=860px){.pd-page .breadcrumbs,.pd-page .page-subtitle{display:none}}@media (width<=1180px){:is(.page-content:has(.pd-page),.main-column:has(.pd-page)){height:auto;max-height:none;overflow:visible}.pd-page{height:auto;overflow:visible}.pd-kpi-grid,.pd-money-grid,.pd-alerts{grid-template-columns:repeat(2,minmax(0,1fr))}.pd-analytics-row,.pd-tables-row{flex:none;grid-template-columns:1fr;min-height:280px}.pd-donut,.pd-chart-wrap{min-height:220px}}@media (width<=760px){.pd-kpi-grid,.pd-money-grid,.pd-alerts,.pd-status-body{grid-template-columns:1fr}}.collect-payment-modal{border-radius:14px;width:min(560px,100vw - 32px);overflow:hidden}.collect-payment-header{border-bottom:1px solid #e5e7eb;justify-content:space-between;align-items:center;gap:12px;padding:16px 18px;display:flex}.collect-payment-header-main{align-items:center;gap:12px;min-width:0;display:inline-flex}.collect-payment-header-icon{background:var(--brand);color:#fff;border-radius:999px;flex-shrink:0;justify-content:center;align-items:center;width:36px;height:36px;display:inline-flex}.collect-payment-header h2{color:#0f172a;letter-spacing:-.01em;margin:0;font-size:17px;font-weight:700}.collect-payment-body{gap:16px;padding:16px 18px 8px;display:grid}.collect-payment-summary{background:var(--brand-muted);border:1px solid color-mix(in srgb, var(--brand) 16%, transparent);border-radius:12px;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:14px 16px;display:grid}.collect-payment-summary span{color:#64748b;letter-spacing:.01em;font-size:11px;font-weight:600;display:block}.collect-payment-summary strong{color:#0f172a;word-break:break-word;margin-top:4px;font-size:14px;font-weight:700;display:block}.collect-payment-summary .collect-payment-balance{color:var(--brand-dark)}.collect-payment-section{gap:14px;padding-top:2px;display:grid}.collect-payment-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 14px}.collect-payment-optional{border-top:1px solid #eef2f7;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 14px;padding-top:14px;display:grid}@media (width<=560px){.collect-payment-summary,.collect-payment-fields,.collect-payment-optional{grid-template-columns:1fr}}.collect-payment-body .form-field{flex-direction:column;align-items:stretch;gap:6px;width:100%;min-width:0;display:flex}.collect-payment-body .form-field>span{color:#475569;font-size:12px;font-weight:600;display:block}.collect-payment-body .form-field>span em{color:#dc2626;font-style:normal;font-weight:700}.collect-payment-body .form-field.has-error>span{color:#b91c1c}.collect-payment-method-ac.has-error .autocomplete-control,.collect-payment-amount.has-error{border-color:#dc2626!important}.collect-payment-body .form-error-text{color:#dc2626;margin-top:2px;font-size:11px}.collect-payment-body .form-field>input,.collect-payment-body .form-field .autocomplete-control,.collect-payment-amount{background:#fff;border:1px solid #e2e8f0;border-radius:10px;width:100%;min-height:42px}.collect-payment-body .form-field>input{box-sizing:border-box;height:42px;padding:0 12px;display:block}.collect-payment-body .form-field .autocomplete-control{gap:8px;height:42px;padding:0 12px}.collect-payment-method-ac .autocomplete-icon{color:var(--brand-dark)}.collect-payment-body .form-field .autocomplete-control input{height:40px;min-height:40px;box-shadow:none;background:0 0;border:none;padding:0}.collect-payment-amount{box-sizing:border-box;border-color:var(--brand);align-items:stretch;gap:0;padding:0;display:flex;overflow:hidden}.collect-payment-amount:focus-within{border-color:var(--brand-dark);box-shadow:0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent)}.collect-payment-amount-prefix{color:#64748b;background:#f8fafc;border-right:1px solid #e2e8f0;flex-shrink:0;justify-content:center;align-items:center;min-width:40px;padding:0 10px;font-size:14px;font-weight:700;display:inline-flex}.collect-payment-amount-input{color:#0f172a;flex:1;min-width:0;font-size:14px;font-weight:650;height:40px!important;min-height:40px!important;box-shadow:none!important;background:0 0!important;border:none!important;padding:0 12px!important}.collect-payment-footer{border-top:1px solid #e5e7eb;gap:10px;padding:14px 18px 16px}.pending-payments-kpis{margin-bottom:14px}.pending-payments-table-wrap{overflow:auto}.pending-payments-table .col-actions{white-space:nowrap}.pending-payments-table .table-actions{gap:6px;display:flex}.status-badge.payment-credit{color:#c2410c;background:#ffedd5}.table-pagination{justify-content:flex-end;align-items:center;gap:12px;margin-top:12px;display:flex}.rp-page{flex-direction:column;gap:14px;min-width:0;display:flex}.rp-header-actions{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.rp-date-wrap{position:relative}.rp-date-btn{border:1px solid var(--border);background:var(--surface);color:var(--text);white-space:nowrap;border-radius:8px;align-items:center;gap:8px;padding:8px 12px;font-size:12.5px;font-weight:500;display:inline-flex}.rp-date-btn:hover{border-color:var(--border-strong);background:var(--bg)}.rp-date-panel{z-index:30;border:1px solid var(--border);background:var(--surface);min-width:220px;box-shadow:var(--shadow-md);border-radius:10px;flex-direction:column;gap:10px;padding:12px;display:flex;position:absolute;top:calc(100% + 6px);right:0}.rp-date-panel label{color:var(--text-muted);flex-direction:column;gap:4px;font-size:11px;font-weight:600;display:flex}.rp-export-btn{white-space:nowrap;align-items:center;gap:6px;display:inline-flex}.rp-filter-bar{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow-sm);flex-wrap:wrap;align-items:center;gap:10px;padding:12px 14px;display:flex}.rp-search{border:1px solid var(--border);min-width:180px;height:36px;color:var(--text-muted);background:#fafafa;border-radius:8px;flex:220px;align-items:center;gap:8px;padding:0 10px;display:flex}.rp-search input{min-width:0;color:var(--text);background:0 0;border:none;flex:1;font-size:12.5px}.rp-search input:focus{outline:none}.rp-select{border:1px solid var(--border);background:var(--surface);height:36px;color:var(--text);cursor:pointer;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='%2364748b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-position:right 8px center;background-repeat:no-repeat;border-radius:8px;padding:0 28px 0 10px;font-size:12.5px}.rp-reset-btn{white-space:nowrap;align-items:center;gap:6px;display:inline-flex}.rp-category-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;display:grid}.rp-category-card{border:1px solid var(--border);background:var(--surface);text-align:left;border-radius:10px;align-items:flex-start;gap:12px;min-width:0;padding:14px;transition:border-color .15s,box-shadow .15s;display:flex}.rp-category-card:hover{box-shadow:var(--shadow-sm);border-color:#cbd5e1}.rp-category-icon{border-radius:8px;flex-shrink:0;place-items:center;width:36px;height:36px;display:grid}.rp-category-body{flex:1;min-width:0}.rp-category-body strong{color:var(--text);font-size:13px;font-weight:650;line-height:1.3;display:block}.rp-category-body p{color:var(--text-muted);margin:4px 0 6px;font-size:11.5px;line-height:1.45}.rp-category-body em{font-size:11.5px;font-style:normal;font-weight:600}.rp-category-arrow{color:#94a3b8;flex-shrink:0;margin-top:2px}.rp-panel{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow-sm);overflow:hidden}.rp-panel-head{border-bottom:1px solid var(--border);padding:12px 14px}.rp-panel-head h2{color:var(--text);margin:0;font-size:14px;font-weight:700}.rp-table-wrap{max-width:100%;overflow-x:auto}.rp-table{border-collapse:collapse;table-layout:fixed;width:100%;font-size:12px}.rp-table th{text-align:center;white-space:normal;text-overflow:unset;word-break:break-word;vertical-align:middle;padding:10px 12px;font-size:12px;font-weight:700;line-height:1.35;overflow:visible}.rp-table td{border-bottom:1px solid var(--border-light);color:var(--text-secondary);vertical-align:middle;padding:12px;font-size:13px}.rp-table th:first-child,.rp-table td:first-child{width:14%}.rp-table th:nth-child(2),.rp-table td:nth-child(2){width:11%}.rp-table th:nth-child(3),.rp-table td:nth-child(3){width:8%}.rp-table th:nth-child(4),.rp-table td:nth-child(4){width:22%}.rp-table th:nth-child(5),.rp-table td:nth-child(5){width:13%}.rp-table th:nth-child(6),.rp-table td:nth-child(6){width:10%}.rp-table th:nth-child(7),.rp-table td:nth-child(7){width:7%}.rp-table th:nth-child(8),.rp-table td:nth-child(8){width:8%}.rp-table tbody tr:hover{background:#fafafa}.rp-name{font-weight:600}.rp-desc{text-overflow:ellipsis;white-space:nowrap;color:var(--text-secondary);overflow:hidden}.rp-nowrap{white-space:nowrap;color:var(--text-secondary);font-size:11.5px}.rp-empty{text-align:center;color:var(--text-muted);padding:24px 12px!important}.rp-badge{white-space:nowrap;border-radius:999px;align-items:center;padding:3px 8px;font-size:10.5px;font-weight:600;display:inline-flex}.rp-badge-format.is-pdf{color:#b91c1c;background:#fee2e2}.rp-badge-format.is-excel{color:#15803d;background:#dcfce7}.rp-row-actions{align-items:center;gap:4px;display:inline-flex;position:relative}.rp-action-menu{z-index:20;border:1px solid var(--border);background:var(--surface);min-width:120px;box-shadow:var(--shadow-md);border-radius:8px;padding:4px;position:absolute;top:calc(100% + 4px);right:0}.rp-action-menu button{text-align:center;width:100%;color:var(--text);background:0 0;border:none;border-radius:6px;padding:7px 10px;font-size:12px;display:block}.rp-action-menu button:hover{background:#f8fafc}.rp-table-footer{border-top:1px solid var(--border);color:var(--text-muted);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:10px 14px;font-size:12px;display:flex}.rp-pagination{align-items:center;gap:6px;display:flex}.rp-page-size{min-width:110px;height:32px;font-size:12px}.rp-page-num{background:var(--brand);color:#fff;border-radius:6px;place-items:center;min-width:28px;height:28px;font-size:12px;font-weight:600;display:inline-grid}.rp-quick-panel{margin-bottom:4px}.rp-quick-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;padding:12px 14px 14px;display:grid}.rp-quick-card{border:1px solid var(--border);background:var(--surface);color:var(--text);text-align:left;border-radius:10px;align-items:center;gap:10px;min-width:0;padding:12px;font-size:12px;font-weight:600;display:flex}.rp-quick-card:hover{background:#fafafa;border-color:#cbd5e1}.rp-quick-icon{flex-shrink:0;place-items:center;display:grid}@media (width<=1280px){.rp-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rp-quick-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width<=768px){.rp-category-grid{grid-template-columns:1fr}.rp-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rp-filter-bar{flex-direction:column;align-items:stretch}.rp-search{flex-basis:auto}.rp-select,.rp-reset-btn{width:100%}}.srep-filter-card{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow-sm);padding:10px 12px}.srep-filter-grid{-webkit-overflow-scrolling:touch;flex-wrap:nowrap;align-items:flex-end;gap:8px 10px;display:flex;overflow-x:auto}.srep-field{flex-direction:column;flex:1 0 0;gap:4px;min-width:110px;display:flex}.srep-field>span{color:var(--text-secondary);white-space:nowrap;font-size:11px;font-weight:600}.main-column:has(.srep-page){height:100dvh;max-height:100dvh;overflow:hidden}.page-content:has(.srep-page){flex:1;min-height:0;overflow:hidden}.srep-page{flex-direction:column;flex:auto;gap:14px;min-width:0;min-height:0;display:flex;overflow:hidden}.po-page.srep-page{flex:auto;min-height:0;overflow:hidden}.srep-title-icon{border-radius:var(--radius-sm);background:var(--brand-muted);width:36px;height:36px;color:var(--brand-dark);flex-shrink:0;place-items:center;display:inline-grid}.srep-header-actions{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.srep-date-wrap{position:relative}.srep-date-btn,.srep-filter-date{border:1px solid var(--border);background:var(--surface);width:100%;color:var(--text);text-align:center;border-radius:8px;align-items:center;gap:8px;padding:0 12px;font-size:12px;font-weight:500;display:inline-flex}.srep-date-btn{white-space:nowrap;width:auto;min-height:36px}.srep-date-btn:hover,.srep-filter-date:hover{border-color:var(--border-strong);background:var(--bg)}.srep-date-panel{z-index:40;border:1px solid var(--border);background:var(--surface);min-width:220px;box-shadow:var(--shadow-md);border-radius:10px;flex-direction:column;gap:10px;padding:12px;display:flex;position:absolute;top:calc(100% + 6px);right:0}.srep-date-panel.is-filter{left:0;right:auto}.srep-date-panel label{color:var(--text-muted);flex-direction:column;gap:4px;font-size:11px;font-weight:600;display:flex}.srep-export-btn{white-space:nowrap;align-items:center;gap:6px;display:inline-flex}.srep-field>span em{color:var(--danger);font-style:normal}.srep-field select,.srep-filter-date{height:32px;min-height:32px}.srep-field select{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--bg);color:var(--text);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='%2364748b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-position:right 8px center;background-repeat:no-repeat;padding:0 28px 0 10px;font-size:12px}.srep-field select:focus{border-color:var(--brand);box-shadow:var(--focus-ring);outline:none}.srep-filter-actions{flex:none;justify-content:flex-end;align-items:flex-end;gap:8px;display:flex}.srep-filter-actions .btn{white-space:nowrap;align-items:center;gap:6px;display:inline-flex}.srep-kpi-grid{-webkit-overflow-scrolling:touch;flex-wrap:nowrap;gap:8px;display:flex;overflow-x:auto}.srep-kpi-card{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);min-width:0;box-shadow:var(--shadow-sm);flex:1 0 0;align-items:center;gap:8px;padding:8px 10px;display:flex}.srep-kpi-icon{border-radius:8px;flex-shrink:0;place-items:center;width:28px;height:28px;display:inline-grid}.srep-kpi-icon.tone-teal{background:var(--brand-soft);color:var(--brand-dark)}.srep-kpi-icon.tone-blue{background:var(--partial-bg);color:var(--partial)}.srep-kpi-icon.tone-purple{color:#7c3aed;background:#f3e8ff}.srep-kpi-icon.tone-orange{background:var(--warning-bg);color:var(--warning)}.srep-kpi-icon.tone-pink{background:var(--cancelled-bg);color:var(--cancelled)}.srep-kpi-icon.tone-indigo{background:var(--partial-bg);color:var(--partial)}.srep-kpi-icon.tone-amber{background:var(--pending-bg);color:var(--pending)}.srep-kpi-icon.tone-rose{background:var(--cancelled-bg);color:var(--cancelled)}.srep-kpi-icon.tone-green{background:var(--received-bg);color:var(--received)}.srep-kpi-icon.tone-red{background:var(--cancelled-bg);color:var(--cancelled)}.srep-kpi-copy{gap:0;min-width:0;display:grid}.srep-kpi-label{color:var(--text-muted);font-size:11px;font-weight:500;line-height:1.15}.srep-kpi-value{color:var(--text);letter-spacing:-.03em;word-break:break-word;font-size:1.05rem;font-weight:700;line-height:1.1}.srep-kpi-trend{color:#059669;align-items:center;gap:3px;margin-top:1px;font-size:9px;font-weight:600;line-height:1.15;display:inline-flex}.srep-kpi-trend.is-down{color:#dc2626}.srep-kpi-subtext{color:var(--text-muted);font-size:10px;line-height:1.15}.srep-table-card{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow-sm);flex-direction:column;min-height:0;display:flex;overflow:hidden}.srep-table-head{border-bottom:1px solid var(--border);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;display:flex}.srep-table-title{align-items:baseline;gap:8px;min-width:0;display:flex}.srep-table-title h2{color:var(--text);margin:0;font-size:14px;font-weight:700}.srep-table-title span{color:var(--text-muted);font-size:12px;font-weight:500}.srep-table-tools{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.srep-menu-wrap{position:relative}.srep-popover{z-index:30;border:1px solid var(--border);background:var(--surface);min-width:220px;box-shadow:var(--shadow-md);border-radius:10px;padding:6px;position:absolute;top:calc(100% + 6px);right:0}.srep-popover-item{color:var(--text);border-radius:6px;align-items:center;gap:8px;padding:8px 10px;font-size:12.5px;display:flex}.srep-popover-item:hover{background:var(--brand-muted)}.srep-popover-action{text-align:center;width:100%;color:var(--text);background:0 0;border:none;border-radius:6px;padding:8px 10px;font-size:12.5px;display:block}.srep-popover-action:hover,.srep-popover-action.is-active{background:var(--brand-muted);color:var(--brand-dark);font-weight:600}.srep-table-wrap{max-width:100%;overflow:auto}.srep-table{border-collapse:collapse;table-layout:auto;width:100%;min-width:1320px;font-size:13px}.srep-table th{text-align:center;white-space:normal;text-overflow:unset;word-break:break-word;vertical-align:middle;border-bottom:1px solid #ffffff1f;border-right:1px solid #ffffff1f;padding:10px 12px;font-size:12px;font-weight:700;line-height:1.35;overflow:visible}.srep-table td{border-bottom:1px solid var(--border-light);color:var(--text-secondary);vertical-align:middle;padding:12px;font-size:13px}.srep-col-index{width:42px;min-width:42px}.srep-col-date{min-width:84px}.srep-col-invoiceNo{min-width:124px}.srep-col-customer{min-width:112px}.srep-col-customerType{min-width:92px}.srep-col-items{text-align:center;width:56px;min-width:56px}.srep-col-grossAmount{min-width:108px}.srep-col-discount{min-width:96px}.srep-col-netAmount{min-width:108px}.srep-col-paymentMethod{min-width:92px}.srep-col-patientCreditAmount{min-width:136px}.srep-col-salesPerson{min-width:104px}.srep-col-branch{min-width:112px}.srep-col-action{width:56px;min-width:56px}.srep-table th.srep-col-items,.srep-table td.srep-col-items,.srep-table th.srep-col-grossAmount,.srep-table th.srep-col-discount,.srep-table th.srep-col-netAmount,.srep-table th.srep-col-patientCreditAmount{text-align:center}.srep-table tbody tr:hover:not(.srep-group-row){background:var(--bg)}.srep-group-row td{background:var(--brand-muted);color:var(--brand-dark);font-size:12px;font-weight:700}.srep-invoice-link{color:var(--brand);font-weight:600;font-size:inherit;cursor:pointer;text-underline-offset:2px;background:0 0;border:none;padding:0;text-decoration:underline}.srep-num{text-align:center;font-variant-numeric:tabular-nums;white-space:nowrap}.srep-nowrap{white-space:nowrap}.srep-empty{text-align:center;color:var(--text-muted);padding:24px 12px!important}.srep-pagination{margin:0}.srep-pagination-right{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.srep-page-size select{border:1px solid var(--border);background:var(--surface);border-radius:8px;min-width:110px;height:32px;padding:0 8px;font-size:12px}.srep-ellipsis{min-width:28px;height:32px;color:var(--text-muted);place-items:center;font-weight:700;display:inline-grid}.srep-footnote{color:var(--text-muted);margin:0 0 8px;font-size:12px}.main-column:has(.prep-page){height:100dvh;max-height:100dvh;overflow:hidden}.page-content:has(.prep-page){flex:1;min-height:0;overflow:hidden}.prep-title-icon{border-radius:var(--radius-sm);background:var(--brand-muted);width:36px;height:36px;color:var(--brand-dark);flex-shrink:0;place-items:center;display:inline-grid}.prep-doc-link{color:var(--brand);font-weight:600;font-size:inherit;cursor:pointer;text-underline-offset:2px;white-space:nowrap;background:0 0;border:none;padding:0;text-decoration:underline}.prep-table-wrap{overflow:auto}.prep-table{min-width:1560px;font-size:11px}.prep-table th{white-space:normal;text-overflow:unset;word-break:break-word;vertical-align:middle;padding:10px 12px;font-size:12px;line-height:1.35;overflow:visible}.prep-table td{padding:8px}.prep-table .status-badge{gap:4px;padding:2px 8px;font-size:10.5px}.prep-table .status-badge:before{width:5px;height:5px}.prep-col-index{width:36px;min-width:36px}.prep-col-poNo{min-width:108px}.prep-col-poType{min-width:78px}.prep-col-poDate{min-width:74px}.prep-col-vendorPharmacy{min-width:118px}.prep-col-poSource{min-width:64px}.prep-col-grnNo{min-width:108px}.prep-col-grnDate{min-width:74px}.prep-col-poAmount,.prep-col-grnAmount,.prep-col-pendingAmount{min-width:92px}.prep-col-returnAmount{min-width:88px}.prep-col-returnCreditUsed{min-width:104px}.prep-col-vendorCredit{min-width:92px}.prep-col-poStatus,.prep-col-grnStatus{min-width:96px}.prep-col-branch{min-width:100px}.prep-col-action{width:48px;min-width:48px}.prep-table th.prep-col-poAmount,.prep-table th.prep-col-grnAmount,.prep-table th.prep-col-pendingAmount,.prep-table th.prep-col-returnAmount,.prep-table th.prep-col-returnCreditUsed,.prep-table th.prep-col-vendorCredit{text-align:center}.prep-columns-popover{min-width:260px;max-height:320px;overflow-y:auto}.prep-rows-label{color:var(--text-muted);margin-right:6px;font-size:12px}.srep-page-size{align-items:center;gap:6px;display:inline-flex}.prep-info-bar{border-radius:var(--radius);background:var(--brand-muted);border:1px solid var(--brand-soft);color:var(--brand-dark);align-items:center;gap:8px;margin:0 0 8px;padding:10px 14px;font-size:12px;line-height:1.4;display:flex}.prep-info-bar svg{flex-shrink:0}.main-column:has(.irep-page){height:100dvh;max-height:100dvh;overflow:hidden}.page-content:has(.irep-page){flex:1;min-height:0;overflow:hidden}.irep-title-icon{border-radius:var(--radius-sm);background:var(--brand-muted);width:36px;height:36px;color:var(--brand-dark);flex-shrink:0;place-items:center;display:inline-grid}.irep-doc-link{color:var(--brand);font-weight:600;font-size:inherit;cursor:pointer;text-underline-offset:2px;white-space:nowrap;background:0 0;border:none;padding:0;text-decoration:underline}.irep-table-wrap{overflow:auto}.irep-table{min-width:1480px;font-size:11px}.irep-table th{white-space:normal;text-overflow:unset;word-break:break-word;vertical-align:middle;padding:10px 12px;font-size:12px;line-height:1.35;overflow:visible}.irep-table td{padding:8px}.irep-col-index{width:36px;min-width:36px}.irep-col-medicineCode{min-width:96px}.irep-col-medicineName{min-width:120px}.irep-col-category{min-width:88px}.irep-col-unit{min-width:56px}.irep-col-batchNo{min-width:96px}.irep-col-mfgDate,.irep-col-expDate{min-width:74px}.irep-col-totalQty{min-width:88px}.irep-col-availableQty,.irep-col-reservedQty{min-width:96px}.irep-col-expiredQty{min-width:88px}.irep-col-stockValue,.irep-col-status{min-width:92px}.irep-col-branch{min-width:100px}.irep-col-action{width:48px;min-width:48px}.irep-table th.irep-col-totalQty,.irep-table th.irep-col-availableQty,.irep-table th.irep-col-reservedQty,.irep-table th.irep-col-expiredQty,.irep-table th.irep-col-stockValue{text-align:center}.irep-status{white-space:nowrap;border-radius:999px;align-items:center;padding:2px 8px;font-size:10.5px;font-weight:600;display:inline-flex}.irep-status.in-stock{color:#059669;background:#ecfdf5}.irep-status.low-stock{color:#ea580c;background:#fff7ed}.irep-status.out-of-stock{color:#dc2626;background:#fef2f2}.irep-status.expiring-soon{color:#ca8a04;background:#fefce8}.irep-status.expired{color:#e11d48;background:#fff1f2}.irep-columns-popover{min-width:240px;max-height:320px;overflow-y:auto}.irep-rows-label{color:var(--text-muted);margin-right:6px;font-size:12px}.irep-summary-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;display:grid}.irep-summary-panel{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow-sm);min-width:0;padding:14px 16px}.irep-summary-panel h3{color:var(--text);margin:0 0 10px;font-size:13px;font-weight:700}.irep-summary-body{gap:8px;display:grid}.irep-summary-row{justify-content:space-between;align-items:center;gap:10px;font-size:12px;display:flex}.irep-summary-label{color:var(--text-secondary);font-weight:500}.irep-summary-value{color:var(--text);font-variant-numeric:tabular-nums;font-weight:650}.irep-summary-profit{color:#059669}.irep-category-row{grid-template-columns:24px 1fr auto;align-items:center;gap:8px;font-size:12px;display:grid}.irep-category-rank{color:var(--text-muted);font-weight:700}.irep-category-name{color:var(--text-secondary);text-overflow:ellipsis;white-space:nowrap;min-width:0;font-weight:500;overflow:hidden}.irep-category-value{color:var(--text);font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:650}@media (width<=1400px){.irep-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=768px){.irep-summary-grid{grid-template-columns:1fr}}.main-column:has(.frep-page){height:100dvh;max-height:100dvh;overflow:hidden}.page-content:has(.frep-page){flex:1;min-height:0;overflow:hidden}.frep-title-icon{border-radius:var(--radius-sm);background:var(--brand-muted);width:36px;height:36px;color:var(--brand-dark);flex-shrink:0;place-items:center;display:inline-grid}.srep-kpi-icon.tone-green{color:#059669;background:#ecfdf5}.frep-doc-link{color:var(--brand);font-weight:600;font-size:inherit;cursor:pointer;text-underline-offset:2px;white-space:nowrap;background:0 0;border:none;padding:0;text-decoration:underline}.frep-table-wrap{overflow:auto}.frep-table{min-width:1680px;font-size:11px}.frep-table th{white-space:normal;text-overflow:unset;word-break:break-word;vertical-align:middle;padding:10px 12px;font-size:12px;line-height:1.35;overflow:visible}.frep-table td{padding:8px}.frep-col-index{width:36px;min-width:36px}.frep-col-date{min-width:74px}.frep-col-invoiceRef{min-width:118px}.frep-col-type{min-width:72px}.frep-col-description{min-width:120px}.frep-col-totalRevenue,.frep-col-cogsPurchase,.frep-col-grossProfit{min-width:96px}.frep-col-expenses{min-width:88px}.frep-col-netProfit,.frep-col-paymentIn,.frep-col-paymentOut{min-width:96px}.frep-col-netCashFlow{min-width:104px}.frep-col-status{min-width:88px}.frep-table th.frep-col-totalRevenue,.frep-table th.frep-col-cogsPurchase,.frep-table th.frep-col-grossProfit,.frep-table th.frep-col-expenses,.frep-table th.frep-col-netProfit,.frep-table th.frep-col-paymentIn,.frep-table th.frep-col-paymentOut,.frep-table th.frep-col-netCashFlow{text-align:center}.frep-table td .frep-amount{text-align:center;font-variant-numeric:tabular-nums;display:block}.frep-amount.is-negative{color:#dc2626;font-weight:650}.frep-type{white-space:nowrap;border-radius:6px;align-items:center;padding:2px 7px;font-size:10.5px;font-weight:600;display:inline-flex}.frep-type-sale{color:#059669;background:#ecfdf5}.frep-type-purchase{color:#2563eb;background:#eff6ff}.frep-type-receipt{color:#16a34a;background:#f0fdf4}.frep-type-expense{color:#e11d48;background:#fff1f2}.frep-type-payment{color:#ea580c;background:#fff7ed}.frep-status{white-space:nowrap;border-radius:999px;align-items:center;padding:2px 8px;font-size:10.5px;font-weight:600;display:inline-flex}.frep-status.received{color:#059669;background:#ecfdf5}.frep-status.pending{color:#ea580c;background:#fff7ed}.frep-status.cancelled{color:#dc2626;background:#fef2f2}.frep-columns-popover{min-width:240px;max-height:320px;overflow-y:auto}.frep-rows-label{color:var(--text-muted);margin-right:6px;font-size:12px}.frep-summary-negative{color:#dc2626!important}.main-column:has(.rrep-page){height:100dvh;max-height:100dvh;overflow:hidden}.page-content:has(.rrep-page){flex:1;min-height:0;overflow:hidden}.rrep-title-icon{border-radius:var(--radius-sm);background:var(--brand-muted);width:36px;height:36px;color:var(--brand-dark);flex-shrink:0;place-items:center;display:inline-grid}.rrep-kpi-card .srep-kpi-copy{gap:0}.rrep-kpi-secondary{color:#334155;font-size:11px;font-weight:700;line-height:1.1}.rrep-doc-link{color:var(--brand);font-weight:600;font-size:inherit;cursor:pointer;text-underline-offset:2px;white-space:nowrap;background:0 0;border:none;padding:0;text-decoration:underline}.rrep-table-wrap{overflow:auto}.rrep-table{min-width:1540px;font-size:11px}.rrep-table th{white-space:normal;text-overflow:unset;word-break:break-word;vertical-align:middle;padding:10px 12px;font-size:12px;line-height:1.35;overflow:visible}.rrep-table td{padding:8px}.rrep-col-index{width:36px;min-width:36px}.rrep-col-returnNo{min-width:118px}.rrep-col-returnDate{min-width:84px}.rrep-col-returnType{min-width:96px}.rrep-col-source{min-width:72px}.rrep-col-vendorCustomer{min-width:128px}.rrep-col-items{width:56px;min-width:56px}.rrep-col-returnAmount{min-width:96px}.rrep-col-returnCreditUsed,.rrep-col-netReturnAmount{min-width:104px}.rrep-col-status{min-width:84px}.rrep-col-processedBy{min-width:96px}.rrep-col-branch{min-width:100px}.rrep-col-action{width:48px;min-width:48px}.rrep-table th.rrep-col-items,.rrep-table th.rrep-col-returnAmount,.rrep-table th.rrep-col-returnCreditUsed,.rrep-table th.rrep-col-netReturnAmount,.rrep-table td.rrep-col-items,.rrep-table td.rrep-col-returnAmount,.rrep-table td.rrep-col-returnCreditUsed,.rrep-table td.rrep-col-netReturnAmount{text-align:center}.rrep-type{white-space:nowrap;border-radius:6px;align-items:center;padding:2px 7px;font-size:10.5px;font-weight:600;display:inline-flex}.rrep-type-sales{color:#db2777;background:#fdf2f8}.rrep-type-purchase{color:#4f46e5;background:#eef2ff}.rrep-status{white-space:nowrap;border-radius:999px;align-items:center;padding:2px 8px;font-size:10.5px;font-weight:600;display:inline-flex}.rrep-status.approved{color:#059669;background:#ecfdf5}.rrep-status.pending{color:#ea580c;background:#fff7ed}.rrep-status.rejected{color:#dc2626;background:#fef2f2}.rrep-columns-popover{min-width:240px;max-height:320px;overflow-y:auto}.rrep-rows-label{color:var(--text-muted);margin-right:6px;font-size:12px}.rrep-summary-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;display:grid}.rrep-summary-panel,.rrep-donut-panel{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow-sm);min-width:0;padding:14px 16px}.rrep-summary-panel h3,.rrep-donut-panel h3{color:var(--text);margin:0 0 10px;font-size:13px;font-weight:700}.rrep-donut-body{grid-template-columns:minmax(110px,.95fr) minmax(0,1fr);align-items:center;gap:8px;min-height:148px;display:grid}.rrep-donut-chart{min-width:0;height:148px;position:relative}.rrep-donut-center{text-align:center;pointer-events:none;place-content:center;display:grid;position:absolute;inset:0}.rrep-donut-center strong{color:#0f172a;font-size:16px;font-weight:800}.rrep-donut-center span{color:#64748b;font-size:10px;font-weight:650}.rrep-donut-legend{gap:8px;margin:0;padding:0;list-style:none;display:grid}.rrep-donut-legend li{grid-template-columns:10px minmax(0,1fr);align-items:start;gap:8px;display:grid}.rrep-legend-dot{border-radius:99px;width:8px;height:8px;margin-top:4px}.rrep-legend-copy{flex-direction:column;gap:2px;min-width:0;display:flex}.rrep-legend-copy strong{color:var(--text);font-size:12px;font-weight:650}.rrep-legend-copy small{color:var(--text-secondary);font-size:11px}.rrep-ranked-list{gap:8px;display:grid}.rrep-ranked-row{grid-template-columns:22px 1fr auto;align-items:center;gap:8px;font-size:12px;display:grid}.rrep-ranked-index{color:var(--text-muted);font-weight:700}.rrep-ranked-label{color:var(--text-secondary);text-overflow:ellipsis;white-space:nowrap;min-width:0;font-weight:500;overflow:hidden}.rrep-ranked-value,.rrep-ranked-meta{color:var(--text);font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:650}.rrep-empty{color:var(--text-muted);margin:0;padding:12px 0;font-size:12px}.rrep-detail-modal{width:min(640px,100vw - 32px)}.rrep-detail-meta,.rrep-detail-amounts{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.rrep-detail-meta>div,.rrep-detail-amounts>div{flex-direction:column;gap:4px;display:flex}.rrep-detail-meta span,.rrep-detail-amounts span{color:var(--text-muted);font-size:11px;font-weight:600}.rrep-detail-meta strong,.rrep-detail-amounts strong{color:var(--text);font-size:13px}.rrep-detail-amounts{border-top:1px solid var(--border);margin-top:16px;padding-top:16px}@media (width<=1400px){.rrep-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=768px){.rrep-summary-grid,.rrep-donut-body{grid-template-columns:1fr}}.main-column:has(.grep-page){height:100dvh;max-height:100dvh;overflow:hidden}.page-content:has(.grep-page){flex:1;min-height:0;overflow:hidden}.grep-title-icon{border-radius:var(--radius-sm);background:var(--brand-muted);width:36px;height:36px;color:var(--brand-dark);flex-shrink:0;place-items:center;display:inline-grid}.grep-doc-link{color:var(--brand);font-weight:600;font-size:inherit;cursor:pointer;text-underline-offset:2px;white-space:nowrap;background:0 0;border:none;padding:0;text-decoration:underline}.grep-table-wrap{overflow:auto}.grep-table{min-width:1680px;font-size:11px}.grep-table th{white-space:normal;text-overflow:unset;word-break:break-word;vertical-align:middle;padding:10px 12px;font-size:12px;line-height:1.35;overflow:visible}.grep-table td{padding:8px}.grep-col-index{width:36px;min-width:36px}.grep-col-grnNo{min-width:108px}.grep-col-grnDate{min-width:84px}.grep-col-poNo{min-width:108px}.grep-col-poType{min-width:92px}.grep-col-vendorSupplier{min-width:128px}.grep-col-branch{min-width:100px}.grep-col-receivedBy{min-width:96px}.grep-col-totalItems{width:72px;min-width:72px}.grep-col-totalQty,.grep-col-grnAmount,.grep-col-paidAmount,.grep-col-pendingAmount{min-width:96px}.grep-col-paymentStatus{min-width:88px}.grep-col-grnStatus{min-width:104px}.grep-col-action{width:48px;min-width:48px}.grep-table th.grep-col-totalItems,.grep-table th.grep-col-totalQty,.grep-table th.grep-col-grnAmount,.grep-table th.grep-col-paidAmount,.grep-table th.grep-col-pendingAmount,.grep-table td.grep-col-totalItems,.grep-table td.grep-col-totalQty,.grep-table td.grep-col-grnAmount,.grep-table td.grep-col-paidAmount,.grep-table td.grep-col-pendingAmount{text-align:center}.grep-grn-status,.grep-pay-status{white-space:nowrap;border-radius:999px;align-items:center;padding:2px 8px;font-size:10.5px;font-weight:600;display:inline-flex}.grep-grn-status.received,.grep-pay-status.paid{color:#059669;background:#ecfdf5}.grep-grn-status.partial,.grep-pay-status.partial{color:#ea580c;background:#fff7ed}.grep-grn-status.cancelled,.grep-pay-status.unpaid{color:#dc2626;background:#fef2f2}.grep-grn-status.pending{color:#d97706;background:#fffbeb}.grep-columns-popover{min-width:260px;max-height:320px;overflow-y:auto}.grep-rows-label{color:var(--text-muted);margin-right:6px;font-size:12px}.grep-summary-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;display:grid}.grep-summary-panel{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow-sm);min-width:0;padding:14px 16px}.grep-summary-panel h3{color:var(--text);margin:0 0 10px;font-size:13px;font-weight:700}.grep-ranked-list{gap:8px;display:grid}.grep-ranked-row{grid-template-columns:22px 1fr auto;align-items:center;gap:8px;font-size:12px;display:grid}.grep-ranked-index{color:var(--text-muted);font-weight:700}.grep-ranked-label{color:var(--text-secondary);text-overflow:ellipsis;white-space:nowrap;min-width:0;font-weight:500;overflow:hidden}.grep-ranked-value{color:var(--text);font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:650}.grep-ranked-total{border-top:1px solid var(--border);color:var(--text-secondary);justify-content:space-between;align-items:center;margin-top:8px;padding-top:8px;font-size:12px;font-weight:600;display:flex}.grep-ranked-total strong{color:var(--text);font-weight:750}.grep-trend-panel{min-height:220px}.grep-trend-chart{min-width:0;height:170px}.grep-empty{color:var(--text-muted);margin:0;padding:12px 0;font-size:12px}.grep-detail-modal{width:min(680px,100vw - 32px)}.grep-detail-meta,.grep-detail-amounts{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.grep-detail-meta>div,.grep-detail-amounts>div{flex-direction:column;gap:4px;display:flex}.grep-detail-meta span,.grep-detail-amounts span{color:var(--text-muted);font-size:11px;font-weight:600}.grep-detail-meta strong,.grep-detail-amounts strong{color:var(--text);font-size:13px}.grep-detail-amounts{border-top:1px solid var(--border);margin-top:16px;padding-top:16px}@media (width<=1400px){.grep-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=768px){.grep-summary-grid{grid-template-columns:1fr}}.main-column:has(.payrep-page){height:100dvh;max-height:100dvh;overflow:hidden}.page-content:has(.payrep-page){flex:1;min-height:0;overflow:hidden}.payrep-title-icon{border-radius:var(--radius-sm);background:var(--brand-muted);width:36px;height:36px;color:var(--brand-dark);flex-shrink:0;place-items:center;display:inline-grid}.payrep-doc-link{color:var(--brand);font-weight:600;font-size:inherit;cursor:pointer;text-underline-offset:2px;white-space:nowrap;background:0 0;border:none;padding:0;text-decoration:underline}.payrep-table-wrap{overflow:auto}.payrep-table{min-width:1960px;font-size:11px}.payrep-table th{white-space:normal;text-overflow:unset;word-break:break-word;vertical-align:middle;padding:10px 12px;font-size:12px;line-height:1.35;overflow:visible}.payrep-table td{padding:8px}.payrep-col-index{width:36px;min-width:36px}.payrep-col-date{min-width:74px}.payrep-col-referenceNo{min-width:108px}.payrep-col-referenceType{min-width:104px}.payrep-col-party{min-width:128px}.payrep-col-paymentType{min-width:88px}.payrep-col-paymentMode{min-width:76px}.payrep-col-paymentIn,.payrep-col-paymentOut,.payrep-col-netAmount{min-width:96px}.payrep-col-vendorCreditUsed,.payrep-col-patientCreditUsed{min-width:104px}.payrep-col-vendorCreditAvailable,.payrep-col-patientCreditAvailable{min-width:112px}.payrep-col-status{min-width:72px}.payrep-col-branch{min-width:100px}.payrep-col-counter{min-width:96px}.payrep-col-action{width:48px;min-width:48px}.payrep-table th.payrep-col-paymentIn,.payrep-table th.payrep-col-paymentOut,.payrep-table th.payrep-col-netAmount,.payrep-table th.payrep-col-vendorCreditUsed,.payrep-table th.payrep-col-patientCreditUsed,.payrep-table th.payrep-col-vendorCreditAvailable,.payrep-table th.payrep-col-patientCreditAvailable{text-align:center}.payrep-table td .payrep-amount{text-align:center;font-variant-numeric:tabular-nums;display:block}.payrep-negative{color:#dc2626;font-weight:650}.payrep-positive{color:#059669;font-weight:650}.payrep-type{white-space:nowrap;border-radius:6px;align-items:center;padding:2px 7px;font-size:10.5px;font-weight:600;display:inline-flex}.payrep-type-in{color:#059669;background:#ecfdf5}.payrep-type-out{color:#dc2626;background:#fef2f2}.payrep-status{white-space:nowrap;border-radius:999px;align-items:center;padding:2px 8px;font-size:10.5px;font-weight:600;display:inline-flex}.payrep-status.paid{color:#059669;background:#ecfdf5}.payrep-status.partial,.payrep-status.pending{color:#ea580c;background:#fff7ed}.payrep-status.cancelled{color:#dc2626;background:#fef2f2}.payrep-columns-popover{min-width:280px;max-height:360px;overflow-y:auto}.payrep-rows-label{color:var(--text-muted);margin-right:6px;font-size:12px}.payrep-summary-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;display:grid}.payrep-summary-panel,.payrep-donut-panel{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow-sm);min-width:0;padding:14px 16px}.payrep-summary-panel h3,.payrep-donut-panel h3{color:var(--text);margin:0 0 10px;font-size:13px;font-weight:700}.payrep-donut-body{grid-template-columns:minmax(110px,.95fr) minmax(0,1fr);align-items:center;gap:8px;min-height:148px;display:grid}.payrep-donut-chart{min-width:0;height:148px;position:relative}.payrep-donut-center{text-align:center;pointer-events:none;place-content:center;padding:0 8px;display:grid;position:absolute;inset:0}.payrep-donut-center strong{color:#0f172a;font-size:12px;font-weight:800;line-height:1.2}.payrep-donut-center span{color:#64748b;font-size:10px;font-weight:650}.payrep-donut-legend{gap:8px;margin:0;padding:0;list-style:none;display:grid}.payrep-donut-legend li{grid-template-columns:10px minmax(0,1fr);align-items:start;gap:8px;display:grid}.payrep-legend-dot{border-radius:99px;width:8px;height:8px;margin-top:4px}.payrep-legend-copy{flex-direction:column;gap:2px;min-width:0;display:flex}.payrep-legend-copy strong{color:var(--text);font-size:12px;font-weight:650}.payrep-legend-copy small{color:var(--text-secondary);font-size:11px}.payrep-ranked-list{gap:8px;display:grid}.payrep-ranked-row{grid-template-columns:22px 1fr auto;align-items:center;gap:8px;font-size:12px;display:grid}.payrep-ranked-index{color:var(--text-muted);font-weight:700}.payrep-ranked-label{color:var(--text-secondary);text-overflow:ellipsis;white-space:nowrap;min-width:0;font-weight:500;overflow:hidden}.payrep-ranked-value{color:var(--text);font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:650}.payrep-ranked-total{border-top:1px solid var(--border);color:var(--text-secondary);justify-content:space-between;align-items:center;margin-top:8px;padding-top:8px;font-size:12px;font-weight:600;display:flex}.payrep-ranked-total strong{color:var(--text);font-weight:750}.payrep-empty{color:var(--text-muted);margin:0;padding:12px 0;font-size:12px}.payrep-detail-modal{width:min(720px,100vw - 32px)}.payrep-detail-meta,.payrep-detail-amounts{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.payrep-detail-meta>div,.payrep-detail-amounts>div{flex-direction:column;gap:4px;display:flex}.payrep-detail-meta span,.payrep-detail-amounts span{color:var(--text-muted);font-size:11px;font-weight:600}.payrep-detail-meta strong,.payrep-detail-amounts strong{color:var(--text);font-size:13px}.payrep-detail-amounts{border-top:1px solid var(--border);margin-top:16px;padding-top:16px}@media (width<=1400px){.payrep-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=768px){.payrep-summary-grid,.payrep-donut-body{grid-template-columns:1fr}}.main-column:has(.erep-page){overflow:hidden}.page-content:has(.erep-page){overflow:hidden}.erep-title-icon{border-radius:var(--radius-sm);background:var(--brand-muted);width:36px;height:36px;color:var(--brand-dark);flex-shrink:0;place-items:center;display:inline-grid}.erep-table-wrap{overflow:auto}.erep-table{table-layout:fixed;min-width:100%}.erep-table th{white-space:normal;text-overflow:unset;word-break:break-word;vertical-align:middle;padding:10px 12px;font-size:12px;line-height:1.35;overflow:visible}.erep-table td{text-overflow:ellipsis;padding:7px 6px;font-size:11.5px;overflow:hidden}.erep-col-index{width:32px;min-width:32px}.erep-col-medicineName{min-width:108px}.erep-col-medicineCode{min-width:78px}.erep-col-batchNo{min-width:88px}.erep-col-manufacturer{min-width:96px}.erep-col-category{min-width:68px}.erep-col-packSize{min-width:88px}.erep-col-mfgDate,.erep-col-expiryDate{min-width:72px}.erep-col-daysToExpiry{text-align:center;min-width:80px}.erep-col-expiryStatus{min-width:88px}.erep-col-availableQty,.erep-col-unitCost{text-align:center;min-width:88px}.erep-col-totalValue{text-align:center;min-width:96px}.erep-col-location{min-width:96px}.erep-col-branch{min-width:88px}.erep-col-action{width:44px;min-width:44px}.erep-table th.erep-col-availableQty,.erep-table th.erep-col-unitCost,.erep-table th.erep-col-totalValue,.erep-table th.erep-col-daysToExpiry,.erep-table th.erep-col-daysToExpiry{text-align:center}.erep-days{font-weight:700}.erep-days.is-expired{color:#dc2626}.erep-days.is-soon{color:#ea580c}.erep-status{white-space:nowrap;border-radius:999px;justify-content:center;align-items:center;padding:2px 7px;font-size:10px;font-weight:700;display:inline-flex}.erep-status.expired{color:#dc2626;background:#fee2e2}.erep-status.soon{color:#ea580c;background:#ffedd5}.erep-status.medium{color:#2563eb;background:#dbeafe}.erep-status.low{color:#059669;background:#d1fae5}.erep-columns-popover{min-width:220px;max-height:320px;overflow-y:auto}.erep-rows-label{color:#64748b;font-size:12px}.erep-summary-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;display:grid}.erep-summary-panel,.erep-trend-panel{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow-sm);min-height:280px;padding:14px 16px}.erep-summary-panel h3,.erep-trend-panel h3{color:#0f172a;margin:0 0 12px;font-size:13px;font-weight:700}.erep-ranked-list{flex-direction:column;gap:8px;display:flex}.erep-ranked-row{grid-template-columns:18px 1fr auto;align-items:center;gap:8px;font-size:12px;display:grid}.erep-ranked-index{color:#64748b;font-weight:700}.erep-ranked-label{text-overflow:ellipsis;white-space:nowrap;color:#334155;overflow:hidden}.erep-ranked-value{color:#0f172a;white-space:nowrap;font-weight:700}.erep-ranked-total{border-top:1px solid var(--border);color:#64748b;justify-content:space-between;align-items:center;margin-top:8px;padding-top:10px;font-size:12px;display:flex}.erep-ranked-total strong{color:#0f172a;font-size:13px}.erep-trend-chart{height:210px}.erep-empty{text-align:center;color:#64748b;margin:0;padding:24px 0;font-size:13px}.erep-detail-modal{max-width:560px}.erep-detail-meta,.erep-detail-amounts{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;display:grid}.erep-detail-meta>div,.erep-detail-amounts>div{flex-direction:column;gap:4px;display:flex}.erep-detail-meta span,.erep-detail-amounts span{color:#64748b;font-size:12px}.erep-detail-meta strong,.erep-detail-amounts strong{color:#0f172a;font-size:13px}.erep-detail-amounts{border-top:1px solid var(--border);margin-top:16px;padding-top:16px}@media (width<=1400px){.erep-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=768px){.erep-summary-grid{grid-template-columns:1fr}}.main-column:has(.strep-page){overflow:hidden}.page-content:has(.strep-page){overflow:hidden}.strep-title-icon{border-radius:var(--radius-sm);background:var(--brand-muted);width:36px;height:36px;color:var(--brand-dark);flex-shrink:0;place-items:center;display:inline-grid}.strep-table-wrap{overflow:auto}.strep-table{table-layout:fixed;min-width:100%}.strep-table th{white-space:normal;text-overflow:unset;word-break:break-word;vertical-align:middle;padding:10px 12px;font-size:12px;line-height:1.35;overflow:visible}.strep-table td{text-overflow:ellipsis;padding:7px 6px;font-size:11.5px;overflow:hidden}.strep-col-index{width:32px;min-width:32px}.strep-col-medicineName{min-width:108px}.strep-col-medicineCode{min-width:78px}.strep-col-category{min-width:72px}.strep-col-batchNo{min-width:88px}.strep-col-mfgDate,.strep-col-expiryDate{min-width:72px}.strep-col-location{min-width:96px}.strep-col-stockType{min-width:76px}.strep-col-totalStock{text-align:center;min-width:88px}.strep-col-reservedStock,.strep-col-reorderLevel,.strep-col-stockValue{text-align:center;min-width:96px}.strep-col-status{min-width:76px}.strep-col-lastStockUpdate{min-width:128px}.strep-col-action{width:44px;min-width:44px}.strep-table th.strep-col-totalStock,.strep-table th.strep-col-reservedStock,.strep-table th.strep-col-reorderLevel,.strep-table th.strep-col-stockValue{text-align:center}.strep-status{white-space:nowrap;border-radius:999px;justify-content:center;align-items:center;padding:2px 7px;font-size:10px;font-weight:700;display:inline-flex}.strep-status.in-stock{color:#059669;background:#d1fae5}.strep-status.low-stock{color:#ea580c;background:#ffedd5}.strep-status.out-of-stock{color:#e11d48;background:#ffe4e6}.strep-status.expired{color:#dc2626;background:#fee2e2}.strep-columns-popover{min-width:220px;max-height:320px;overflow-y:auto}.strep-rows-label{color:#64748b;font-size:12px}.strep-summary-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;display:grid}.strep-summary-grid .rrep-summary-panel{min-height:280px}.strep-summary-panel,.strep-donut-panel,.strep-location-panel,.strep-alert-panel{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow-sm);min-height:280px;padding:14px 16px}.strep-summary-panel h3,.strep-donut-panel h3,.strep-location-panel h3,.strep-alert-panel h3{color:#0f172a;margin:0 0 12px;font-size:13px;font-weight:700}.strep-donut-body{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:12px;display:grid}.strep-donut-chart{height:180px;position:relative}.strep-donut-center{text-align:center;pointer-events:none;place-content:center;display:grid;position:absolute;inset:0}.strep-donut-center strong{color:#0f172a;font-size:16px}.strep-donut-center span{color:#64748b;font-size:11px}.strep-donut-legend{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.strep-donut-legend li{align-items:center;gap:8px;display:flex}.strep-legend-dot{border-radius:999px;flex-shrink:0;width:8px;height:8px}.strep-legend-copy{flex-direction:column;gap:1px;display:flex}.strep-legend-copy strong{color:#334155;font-size:12px}.strep-legend-copy small{color:#64748b;font-size:11px}.strep-location-chart{height:200px}.strep-location-total{border-top:1px solid var(--border);color:#64748b;justify-content:space-between;align-items:center;margin-top:10px;padding-top:10px;font-size:12px;display:flex}.strep-location-total strong{color:#0f172a;font-size:13px}.strep-alert-table{flex-direction:column;gap:8px;display:flex}.strep-alert-head,.strep-alert-row{grid-template-columns:1fr 88px 88px;align-items:center;gap:8px;font-size:11.5px;display:grid}.strep-alert-head{color:#64748b;border-bottom:1px solid var(--border);padding-bottom:6px;font-weight:650}.strep-alert-head span:nth-child(n+2),.strep-alert-qty,.strep-alert-reorder{text-align:right}.strep-alert-medicine{text-overflow:ellipsis;white-space:nowrap;color:#334155;overflow:hidden}.strep-alert-qty{color:#ea580c;font-weight:700}.strep-alert-reorder{color:#64748b}.strep-alert-link{color:#0f766e;cursor:pointer;background:0 0;border:none;align-items:center;gap:6px;margin-top:12px;padding:0;font-size:12px;font-weight:700;display:inline-flex}.strep-alert-link:hover{text-decoration:underline}.strep-empty{text-align:center;color:#64748b;margin:0;padding:24px 0;font-size:13px}.strep-detail-modal{max-width:560px}.strep-detail-meta,.strep-detail-amounts{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;display:grid}.strep-detail-meta>div,.strep-detail-amounts>div{flex-direction:column;gap:4px;display:flex}.strep-detail-wide{grid-column:1/-1}.strep-detail-meta span,.strep-detail-amounts span{color:#64748b;font-size:12px}.strep-detail-meta strong,.strep-detail-amounts strong{color:#0f172a;font-size:13px}.strep-detail-amounts{border-top:1px solid var(--border);margin-top:16px;padding-top:16px}@media (width<=1400px){.strep-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.strep-donut-body{grid-template-columns:1fr}}@media (width<=768px){.strep-summary-grid{grid-template-columns:1fr}}.prep-table,.irep-table,.frep-table,.rrep-table,.grep-table,.payrep-table,.erep-table,.strep-table,.rp-table{font-size:13px}.prep-table td,.irep-table td,.frep-table td,.rrep-table td,.grep-table td,.payrep-table td,.erep-table td,.strep-table td,.rp-table td{border-bottom:1px solid var(--border-light);color:var(--text-secondary);padding:12px 10px;font-size:13px}.prep-table tbody tr:hover,.irep-table tbody tr:hover,.frep-table tbody tr:hover,.rrep-table tbody tr:hover,.grep-table tbody tr:hover,.payrep-table tbody tr:hover,.erep-table tbody tr:hover,.strep-table tbody tr:hover,.rp-table tbody tr:hover{background:var(--bg)}.irep-summary-panel,.frep-summary-panel,.rrep-summary-panel,.rrep-donut-panel,.grep-summary-panel,.grep-donut-panel,.payrep-summary-panel,.payrep-donut-panel,.erep-summary-panel,.erep-trend-panel,.strep-summary-panel,.strep-donut-panel,.strep-location-panel,.strep-alert-panel,.rp-card{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow-sm)}.irep-summary-panel h3,.frep-summary-panel h3,.rrep-summary-panel h3,.rrep-donut-panel h3,.grep-summary-panel h3,.grep-donut-panel h3,.payrep-summary-panel h3,.payrep-donut-panel h3,.erep-summary-panel h3,.erep-trend-panel h3,.strep-summary-panel h3,.strep-donut-panel h3,.strep-location-panel h3,.strep-alert-panel h3{color:var(--text);font-weight:700}.strep-alert-link{color:var(--brand-dark)}.strep-alert-link:hover{color:var(--brand)}.srep-pagination .page-numbers button.active{background:var(--brand);border-color:var(--brand);color:#fff}.srep-table thead th,.prep-table thead th,.irep-table thead th,.frep-table thead th,.rrep-table thead th,.grep-table thead th,.payrep-table thead th,.erep-table thead th,.strep-table thead th,.rp-table thead th{-webkit-text-fill-color:#fff;word-break:break-word;-webkit-hyphens:manual;hyphens:manual;text-transform:none;letter-spacing:normal;color:#fff!important;white-space:normal!important;text-overflow:unset!important;vertical-align:middle!important;font-size:12px!important;font-weight:700!important;line-height:1.35!important;overflow:visible!important}.srep-page .srep-table thead th,.srep-page .srep-table tbody td,.srep-page .srep-table tfoot td,.srep-page .srep-table .srep-num,.srep-page .srep-table .srep-center,.srep-page .srep-table th[class*=-col-],.srep-page .srep-table td[class*=-col-],.srep-page .srep-table .igrep-subhead,.srep-page .srep-table .igrep-totals-label{text-align:center!important}.srep-page .srep-table td .app-tooltip-anchor{vertical-align:bottom;text-align:center;max-width:100%;display:inline-block}:root{--table-page-chrome:280px;--table-sticky-header-z:2;--table-sticky-corner-z:5}[class*=-table-wrap]>table>thead>tr>th,[class*=-table-wrap] table>thead>tr>th,.vendor-page-table-stack>table>thead>tr>th,.modal-body>table>thead>tr>th,.modal-body table.view-po-items-table>thead>tr>th,.modal-body table.view-ro-items-table>thead>tr>th,.modal-body table.billing-others-table>thead>tr>th,.view-po-items-wrap>table>thead>tr>th,.view-ro-items-wrap>table>thead>tr>th,.ds-table>thead>tr>th,.ds-view-table>thead>tr>th,.pending-payments-table>thead>tr>th,.data-table>thead>tr>th{z-index:var(--table-sticky-header-z);position:sticky;top:0}[class*=-table-wrap] thead th[class*=sticky],[class*=-table-wrap] thead th[class*=sh-col-sticky],[class*=-table-wrap] thead th[class*=grn-col-sticky],[class*=-table-wrap] thead th[class*=facility-col-sticky],[class*=-table-wrap] thead th[class*=vendor-po-col-sticky],[class*=-table-wrap] thead th[class*=po-col-sticky],[class*=-table-wrap] thead th.is-sticky-num,[class*=-table-wrap] thead th.is-sticky-batch,[class*=-table-wrap] thead th.is-sticky-med,[class*=-table-wrap] thead th.is-sticky-date,[class*=-table-wrap] thead th.is-sticky-total{z-index:var(--table-sticky-corner-z)}[class*=-table-wrap]:not(.sm-adj-preview-table-wrap):not(.issue-stock-table-wrap){-webkit-overflow-scrolling:touch;overflow:auto}.sd-table-wrap,.pd-table-wrap,.phd-table-wrap{overflow:auto hidden}.po-page>.table-section,.medicine-page>.table-section,.po-page>.smgmt-table-card,.po-page>.sm-panel,.po-page>.pt-split,.medicine-page>.pt-split,.po-page>.sh-table-card,.medicine-page>.sh-table-card,.po-page>.srep-table-card,.srep-page>.srep-table-card,.po-page>.ds-table-card,.po-page>.ul-card,.medicine-page>.ul-card,.po-page>.table-card,.medicine-page>.table-card{flex:auto;min-height:0}.po-page>.pt-split,.medicine-page>.pt-split{align-items:stretch}.pt-split>.table-section{flex:auto;height:100%;min-height:0}.po-page>.app-page-header,.medicine-page>.app-page-header,.po-page>.filter-toolbar,.medicine-page>.filter-toolbar,.po-page>.medicine-filter-toolbar,.medicine-page>.medicine-filter-toolbar,.po-page>.stock-filter-toolbar,.po-page>.smgmt-kpi-grid,.po-page>.smgmt-filter-bar,.po-page>.medicine-stats-row,.medicine-page>.medicine-stats-row,.po-page>.sh-kpi-grid,.po-page>.recent-activity-section,.po-page>.rp-filter-card,.po-page>.rp-kpi-grid,.po-page>.srep-filter-card,.po-page>.srep-kpi-grid,.po-page>.ds-toolbar,.po-page>.ds-info-banner,.medicine-page>.ul-access-bar,.table-section>.table-toolbar,.table-section>.stock-summary-cards,.table-section>.stock-bulk-bar,.smgmt-table-card>.sm-overview-header,.srep-table-card>.srep-table-head,.ul-card>.ul-toolbar,.ul-card>.rl-toolbar,.ul-card>.pt-toolbar,.ul-card>.ura-toolbar,.ul-card>.prms-toolbar,.ul-card>.mp-toolbar,.ul-card>.ul-access-bar,.ds-table-card>.ds-table-toolbar{flex:none}.mp-layout{flex:auto;align-items:stretch;min-height:0}.mp-layout>.ul-card{min-height:0;overflow:hidden}.medicine-page>.rl-about-card,.medicine-page>.mp-stats,.po-page>.sd-kpi-grid,.po-page>.pending-payments-kpis{flex:none}.medicine-page>.mp-layout{flex:auto;min-height:0}.pending-payments-page>.table-card.pending-payments-table-wrap{-webkit-overflow-scrolling:touch;flex:auto;min-height:0;overflow:auto}.pending-payments-page>.table-pagination{flex:none}.ul-card{flex-direction:column;min-height:0;display:flex}.ds-page{flex:auto;min-height:0;overflow:hidden}.ds-table-card{flex-direction:column;flex:auto;min-height:0;padding:0;display:flex;overflow:hidden}.ds-table-card>.ds-table-footer{flex:none;margin-top:auto;padding:12px 14px}.table-section .po-table-wrap,.table-section .medicine-table-wrap,.table-section .vendor-table-wrap,.table-section .category-table-wrap,.table-section .pack-table-wrap,.table-section .facility-table-wrap,.stock-table-section .stock-table-wrap,.stock-table-section .po-table-wrap,.sm-table-wrap,.smgmt-table-card .sm-table-wrap,.sh-table-card .sh-table-wrap,.pt-split .po-table-wrap,.rp-table-wrap,.srep-table-card .srep-table-wrap,.srep-table-card .prep-table-wrap,.srep-table-card .irep-table-wrap,.srep-table-card .frep-table-wrap,.srep-table-card .rrep-table-wrap,.srep-table-card .grep-table-wrap,.srep-table-card .payrep-table-wrap,.srep-table-card .erep-table-wrap,.srep-table-card .strep-table-wrap,.ul-card .ul-table-wrap,.ul-card .rl-table-wrap,.ul-card .rt-table-wrap,.ul-card .mp-table-wrap,.ul-card .pt-table-wrap,.ul-card .ura-table-wrap,.ul-card .prms-table-wrap,.ul-card .arm-role-table-wrap,.ds-table-wrap,.table-card .pending-payments-table-wrap,.table-card>.po-table-wrap{-webkit-overflow-scrolling:touch;flex:auto;min-height:0;overflow:auto}.po-table-wrap{overflow:auto}.table-section .pagination,.table-section .pagination-redesign,.table-section .table-footer,.table-section .stock-table-footer,.sm-pagination,.smgmt-pagination,.sh-table-card .pagination,.srep-table-card .pagination,.srep-table-card .srep-pagination,.rp-table-card .pagination,.ul-card .ul-pagination,.ul-card .rl-pagination,.ul-card .mp-pagination,.ul-card .pt-pagination,.ul-card .ura-pagination,.ul-card .prms-pagination,.ds-table-card .ds-table-footer,.table-card .table-pagination{flex:none;margin-top:auto}.smgmt-table-card{flex-direction:column;display:flex;overflow:hidden}.srep-page .srep-table-card{flex:auto;min-height:0}.srep-page .srep-table-wrap,.srep-page .strep-table-wrap,.srep-page .prep-table-wrap,.srep-page .irep-table-wrap,.srep-page .frep-table-wrap,.srep-page .rrep-table-wrap,.srep-page .grep-table-wrap,.srep-page .payrep-table-wrap,.srep-page .erep-table-wrap{-webkit-overflow-scrolling:touch;flex:auto;min-height:0;overflow:auto}.srep-page .srep-footnote,.srep-page .prep-info-bar{flex:none}.srep-table-wrap,.strep-table-wrap,.prep-table-wrap,.irep-table-wrap,.frep-table-wrap,.rrep-table-wrap,.grep-table-wrap,.payrep-table-wrap,.erep-table-wrap{flex:auto;min-height:220px;overflow:auto}:is(.page-content:has(.srep-page),.page-content:has(.sd-page),.page-content:has(.pd-page),.page-content:has(.ns-page),.page-content:has(.cuw-page)){overflow-x:hidden}.page-content:has(.phd-page){min-height:0;height:calc(100dvh - var(--topbar-h));max-height:calc(100dvh - var(--topbar-h));box-sizing:border-box;padding-top:10px;padding-bottom:16px;overflow:hidden auto}.main-column:has(.phd-page){height:100dvh;max-height:100dvh;overflow:hidden}.phd-page{--phd-teal:#0f8f7f;--phd-teal-soft:#e7f6f3;--phd-blue:#3b82f6;--phd-pink:#ec4899;--phd-purple:#8b5cf6;--phd-orange:#f59e0b;--phd-amber:#d97706;--phd-green:#16a34a;--phd-red:#ef4444;--phd-navy:#1e3a5f;--phd-border:#e6ebf0;--phd-text:#0f172a;--phd-muted:#64748b;width:100%;min-width:0;height:auto;min-height:auto;color:var(--phd-text);flex-direction:column;flex:none;gap:8px;display:flex;overflow:visible}.phd-page.is-loading .phd-kpi-card,.phd-page.is-loading .phd-inventory-card{opacity:.72}.phd-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;display:flex}.phd-header-copy{min-width:0}.phd-greeting{color:var(--phd-muted);margin:0 0 2px;font-size:12.5px;font-weight:500}.phd-header h1{letter-spacing:-.03em;color:#0b1f33;margin:0;font-size:24px;font-weight:750;line-height:1.15}.phd-subtitle{color:var(--phd-muted);margin:2px 0 0;font-size:12.5px}.phd-header-actions{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.phd-date-control{border:1px solid var(--phd-border);min-height:38px;color:var(--phd-muted);background:#fff;border-radius:10px;align-items:center;gap:8px;padding:4px 12px 4px 10px;display:inline-flex;position:relative}.phd-date-control .app-date-input{width:auto}.phd-date-control .app-date-input-field{box-shadow:none;color:#334155;background:0 0;border:none;min-height:28px;padding:0 4px;font-size:12.5px;font-weight:600}.phd-date-sep{color:#94a3b8;font-weight:600}.phd-date-range{color:#334155;white-space:nowrap;border-left:1px solid var(--phd-border);margin-left:2px;padding-left:4px;font-size:12.5px;font-weight:650}.phd-header-buttons{flex-direction:row;align-items:center;gap:8px;display:flex}.phd-header-buttons .btn{white-space:nowrap;min-height:36px}.phd-header-buttons .btn-primary{background:var(--phd-teal)}.phd-header-buttons .btn-primary:hover{background:#0c7a6c}.phd-spin{animation:.8s linear infinite phd-spin}@keyframes phd-spin{to{transform:rotate(360deg)}}.phd-card{border:1px solid var(--phd-border);background:#fff;border-radius:12px;box-shadow:0 1px 2px #0f172a08}.phd-section-head,.phd-card-header{justify-content:space-between;align-items:center;gap:12px;padding:10px 14px 0;display:flex}.phd-quick-actions .phd-section-head,.phd-inventory .phd-section-head{padding-bottom:8px}.phd-section-head h2,.phd-card-header h2{color:#0f172a;margin:0;font-size:14px;font-weight:700}.phd-link,.phd-inline-link{color:var(--phd-teal);font-size:12.5px;font-weight:650;text-decoration:none}.phd-link:hover,.phd-inline-link:hover{text-decoration:underline}.phd-quick-grid{grid-template-columns:repeat(9,minmax(0,1fr));gap:8px;padding:0 14px 10px;display:grid}.phd-quick-btn{border:1px solid var(--phd-border);color:#0f172a;text-align:center;background:#fff;border-radius:10px;flex-direction:column;justify-content:center;align-items:center;gap:6px;min-height:62px;padding:8px 6px;font-size:12px;font-weight:650;text-decoration:none;transition:border-color .15s,box-shadow .15s;display:flex}.phd-quick-btn:hover{border-color:#c9d4de;box-shadow:0 1px 4px #0f172a0f}.phd-quick-icon{border-radius:8px;justify-content:center;align-items:center;width:30px;height:30px;display:inline-flex}.phd-quick-btn.tone-teal .phd-quick-icon,.phd-kpi-card.tone-teal .phd-kpi-icon,.phd-inventory-card.tone-teal .phd-kpi-icon{background:var(--phd-teal-soft);color:var(--phd-teal)}.phd-quick-btn.tone-blue .phd-quick-icon,.phd-kpi-card.tone-blue .phd-kpi-icon,.phd-inventory-card.tone-blue .phd-kpi-icon{color:var(--phd-blue);background:#e8f1ff}.phd-quick-btn.tone-pink .phd-quick-icon,.phd-kpi-card.tone-pink .phd-kpi-icon,.phd-inventory-card.tone-pink .phd-kpi-icon{color:var(--phd-pink);background:#fce7f3}.phd-quick-btn.tone-purple .phd-quick-icon,.phd-kpi-card.tone-purple .phd-kpi-icon,.phd-inventory-card.tone-purple .phd-kpi-icon{color:var(--phd-purple);background:#f3e8ff}.phd-quick-btn.tone-orange .phd-quick-icon,.phd-kpi-card.tone-orange .phd-kpi-icon,.phd-inventory-card.tone-orange .phd-kpi-icon{color:var(--phd-orange);background:#fff4e5}.phd-quick-btn.tone-amber .phd-quick-icon,.phd-kpi-card.tone-amber .phd-kpi-icon,.phd-inventory-card.tone-amber .phd-kpi-icon{color:var(--phd-amber);background:#fef3c7}.phd-quick-btn.tone-green .phd-quick-icon,.phd-kpi-card.tone-green .phd-kpi-icon,.phd-inventory-card.tone-green .phd-kpi-icon{color:var(--phd-green);background:#ecfdf5}.phd-quick-btn.tone-navy .phd-quick-icon,.phd-kpi-card.tone-navy .phd-kpi-icon,.phd-inventory-card.tone-navy .phd-kpi-icon{color:var(--phd-navy);background:#e8eef7}.phd-quick-btn.tone-red .phd-quick-icon,.phd-kpi-card.tone-red .phd-kpi-icon,.phd-inventory-card.tone-red .phd-kpi-icon{color:var(--phd-red);background:#fee2e2}.phd-kpi-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;display:grid}.phd-kpi-card,.phd-inventory-card{border:1px solid var(--phd-border);background:#fff;border-radius:12px;flex-direction:column;gap:4px;min-width:0;padding:10px 10px 8px;display:flex;box-shadow:0 1px 2px #0f172a08}.phd-kpi-top{align-items:center;gap:8px;min-width:0;display:flex}.phd-kpi-icon{border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;width:28px;height:28px;display:inline-flex}.phd-kpi-label{color:var(--phd-muted);white-space:nowrap;text-overflow:ellipsis;font-size:12px;font-weight:600;overflow:hidden}.phd-kpi-value{letter-spacing:-.02em;color:#0b1f33;font-size:16px;font-weight:750;line-height:1.2}.phd-trend{font-size:11.5px;font-weight:650}.phd-trend.is-up{color:#15803d}.phd-trend.is-down{color:#dc2626}.phd-trend.is-flat{color:var(--phd-muted)}.phd-analytics-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.phd-chart-card{flex-direction:column;min-width:0;min-height:220px;display:flex}.phd-chart-card .phd-card-header{padding-bottom:4px}.phd-select{appearance:none;border:1px solid var(--phd-border);color:#334155;background:#fff 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='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") right 8px center no-repeat;border-radius:8px;padding:5px 26px 5px 10px;font-size:12px;font-weight:600}.phd-chart-wrap{flex:auto;min-height:170px;padding:0 8px 8px}.phd-payments-body{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:center;gap:8px;min-height:170px;padding:0 12px 10px;display:grid}.phd-donut-wrap{min-width:0;height:160px}.phd-payment-legend{gap:10px;margin:0;padding:0;list-style:none;display:grid}.phd-payment-legend li{align-items:flex-start;gap:10px;display:flex}.phd-legend-swatch{border-radius:999px;flex-shrink:0;width:10px;height:10px;margin-top:4px}.phd-payment-legend strong{color:#0f172a;font-size:12.5px;display:block}.phd-payment-legend p{color:#0b1f33;margin:2px 0 0;font-size:12.5px;font-weight:700}.phd-payment-legend small{color:var(--phd-muted);font-size:11.5px;font-weight:600}.phd-inventory-grid{grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;padding:0 14px 14px;display:grid}.phd-inventory-card .phd-kpi-value{font-size:16px}.phd-recent-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;display:grid}.phd-table-card{flex-direction:column;min-width:0;display:flex}.phd-table-card .phd-card-header{padding-bottom:8px}.phd-table-wrap{padding:0 8px 8px;overflow:auto}.phd-table{border-collapse:collapse;width:100%;min-width:260px}.phd-table th,.phd-table td{text-align:center;color:#475569;white-space:nowrap;border-bottom:1px solid #eef2f7;padding:8px;font-size:12px}.phd-table th{color:#64748b;letter-spacing:.02em;font-size:11px;font-weight:700}.phd-table td.num,.phd-table th.num{text-align:center;font-variant-numeric:tabular-nums}.phd-table tfoot td{color:#0f172a;border-bottom:none;padding-top:10px;font-weight:750}.phd-outstanding-row td{background:#fdf2f8;color:#be185d!important}.phd-type-pill{border-radius:999px;align-items:center;padding:2px 8px;font-size:11px;font-weight:650;display:inline-flex}.phd-type-pill.is-vendor{color:#0f8f7f;background:#e7f6f3}.phd-type-pill.is-internal{color:#c2410c;background:#fff4e5}@media (width<=1400px){.phd-quick-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.phd-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.phd-inventory-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.phd-recent-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=1100px){.phd-analytics-row{grid-template-columns:1fr}}@media (width<=768px){.phd-header h1{font-size:22px}.phd-quick-grid,.phd-kpi-grid,.phd-inventory-grid,.phd-recent-grid{grid-template-columns:1fr 1fr}.phd-payments-body{grid-template-columns:1fr}}.ds-page{flex-direction:column;flex:auto;gap:14px;min-height:0;display:flex;overflow:hidden}.ds-table-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;flex-direction:column;flex:auto;min-height:0;padding:0;display:flex;overflow:hidden}.ds-table-card>.ds-table-wrap{-webkit-overflow-scrolling:touch;flex:auto;min-height:0;overflow:auto}.ds-table-card>.ds-table-footer{border-top:1px solid #eef2f6;flex:none;margin-top:auto;padding:12px 14px}.ds-search{color:#64748b;background:#fff;border:1px solid #d1d5db;border-radius:8px;flex:260px;align-items:center;gap:8px;min-width:0;min-height:38px;padding:0 12px;display:flex}.ds-search input{color:#0f172a;background:0 0;border:0;outline:none;flex:1;min-width:0;font-size:13px}.ds-patient-type-select.filter-autocomplete{flex:0 140px;width:140px;min-width:140px;max-width:180px}.ds-patient-type-select.filter-autocomplete .autocomplete-control{background:var(--surface-muted,#fafafa);border:1px solid var(--border);border-radius:8px;height:38px;min-height:38px;padding:0 10px}.ds-patient-type-select.filter-autocomplete .autocomplete-control:focus-within{border-color:var(--brand);box-shadow:0 0 0 3px #0d94881f}.ds-patient-type-select.filter-autocomplete .autocomplete-control input{height:36px;color:var(--text);font-size:13px}.ds-patient-type-select.filter-autocomplete .autocomplete-control input::placeholder{color:var(--text-secondary);opacity:1}.ds-dates-filter{position:relative}.ds-dates-filter .vendor-date-range-trigger{min-height:38px}.ds-filters-trigger{display:flex;position:relative}.ds-filters-panel{z-index:20;background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:14px;position:absolute;top:calc(100% + 8px);right:0;box-shadow:0 8px 24px #0f172a14}.ds-filters-panel-grid{grid-template-columns:minmax(200px,280px);gap:12px;display:grid}.ds-field{color:#64748b;flex-direction:column;gap:6px;font-size:12px;font-weight:600;display:flex}.ds-field select{color:#0f172a;background:#fff;border:1px solid #d1d5db;border-radius:8px;height:36px;padding:0 10px;font-size:13px}.ds-table-wrap{overflow:auto}.ds-table{table-layout:fixed;border-collapse:collapse;width:100%;font-size:13px}.ds-table th,.ds-table td{text-align:center;vertical-align:middle;overflow-wrap:break-word;border-bottom:1px solid #eef2f6;width:12.5%;padding:12px}.ds-table th{color:#fff;letter-spacing:.03em;white-space:nowrap;background:#0f766e;font-size:11px;font-weight:700}.ds-table tbody tr:hover{background:#f8fafc}.billing-kpi{flex-direction:column;gap:12px;display:flex}.billing-kpi-methods{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;display:grid}.billing-method-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;grid-template-columns:auto 1fr auto 1fr;align-items:center;gap:10px;padding:14px;display:grid;position:relative;box-shadow:0 1px 2px #0f172a0a}.billing-method-card.has-hover-detail{cursor:default}.billing-others-popover{z-index:40;background:#fff;border:1px solid #e5e7eb;border-radius:12px;min-width:280px;padding:12px;display:none;position:absolute;top:calc(100% + 8px);left:0;right:0;box-shadow:0 12px 28px #0f172a24}.billing-method-card.has-hover-detail:hover .billing-others-popover,.billing-method-card.has-hover-detail:focus-within .billing-others-popover{display:block}.billing-others-empty{color:#64748b;margin:0;font-size:12px}.billing-others-table{border-collapse:collapse;width:100%;font-size:12px}.billing-others-table th,.billing-others-table td{text-align:center;border-bottom:1px solid #f1f5f9;padding:7px 6px}.billing-others-table th{letter-spacing:.03em;color:#64748b;font-size:10px;font-weight:700}.billing-others-table td.amt{color:#059669;font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:700}.billing-others-table td.ref{color:#dc2626;font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:700}.billing-others-table tbody tr:last-child td{border-bottom:none}.billing-method-icon{border-radius:10px;justify-content:center;align-items:center;width:36px;height:36px;display:inline-flex}.billing-method-icon.tone-cash{color:#059669;background:#ecfdf5}.billing-method-icon.tone-upi{color:#7c3aed;background:#f5f3ff}.billing-method-icon.tone-card{color:#2563eb;background:#eff6ff}.billing-method-icon.tone-others{color:#ea580c;background:#fff7ed}.billing-method-icon.tone-gst{color:#0f766e;background:#f0fdfa}.billing-method-side{flex-direction:column;gap:2px;min-width:0;display:flex}.billing-method-label{color:#64748b;font-size:12px;font-weight:600}.billing-method-amount{color:#059669;font-variant-numeric:tabular-nums;font-size:16px;font-weight:750}.billing-method-refund{color:#dc2626;font-variant-numeric:tabular-nums;font-size:16px;font-weight:750}.billing-method-divider{background:#e5e7eb;width:1px;height:34px}.billing-kpi-totals{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;display:grid}.billing-total-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;justify-content:space-between;align-items:flex-start;gap:10px;padding:14px;display:flex;box-shadow:0 1px 2px #0f172a0a}.billing-total-copy{flex-direction:column;gap:6px;min-width:0;display:flex}.billing-total-label{color:#64748b;font-size:12px;font-weight:600}.billing-total-value{color:#0f172a;font-variant-numeric:tabular-nums;font-size:20px;font-weight:800;line-height:1.15}.billing-total-icon{border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;width:34px;height:34px;display:inline-flex}.billing-total-icon.tone-sales{color:#059669;background:#ecfdf5}.billing-total-icon.tone-unpaid{color:#ea580c;background:#fff7ed}.billing-total-icon.tone-paid{color:#2563eb;background:#eff6ff}.billing-total-icon.tone-refund{color:#7c3aed;background:#f5f3ff}.billing-total-icon.tone-net{color:#059669;background:#ecfdf5}@media (width<=1100px){.billing-kpi-methods{grid-template-columns:repeat(2,minmax(0,1fr))}.billing-kpi-totals{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width<=700px){.billing-kpi-methods,.billing-kpi-totals{grid-template-columns:1fr}}.ds-mono{font-variant-numeric:tabular-nums;color:#0f172a;font-weight:650}.ds-draft-link{color:#0f766e;font:inherit;cursor:pointer;text-underline-offset:2px;background:0 0;border:0;padding:0;font-weight:700;text-decoration:underline}.ds-draft-link:hover{color:#115e59}.ds-created-on{white-space:nowrap;flex-direction:column;align-items:center;gap:2px;line-height:1.35;display:flex}.ds-created-by{color:#64748b;font-size:12px}.ds-patient{flex-direction:column;align-items:center;gap:2px;display:flex}.ds-patient strong{color:#0f172a;font-weight:650}.ds-patient span{color:#64748b;font-size:12px}.ds-status-pill{color:#1d4ed8;align-items:center;gap:6px;font-size:12px;font-weight:650;display:inline-flex}.ds-status-pill .ds-status-dot{background:#2563eb;border-radius:50%;width:7px;height:7px}.ds-actions{white-space:nowrap;justify-content:center;align-items:center;gap:8px;display:flex}.ds-create-sale-btn{color:#fff;background:#0f766e;border-color:#0f766e;height:30px;padding:0 12px;font-size:12px;font-weight:700}.ds-create-sale-btn:hover:not(:disabled){background:#0d9488;border-color:#0d9488}.ds-actions .icon-btn.danger{color:#dc2626}.ds-empty{text-align:center;color:#64748b;padding:28px 12px!important}.ds-table-footer{color:#64748b;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin-top:0;font-size:12.5px;display:flex}.ds-pagination{align-items:center;gap:8px;display:flex}.ds-pagination label{align-items:center;gap:6px;display:inline-flex}.ds-pagination select{border:1px solid #d1d5db;border-radius:8px;height:32px;padding:0 8px}.ds-page-num{text-align:center;color:#0f172a;min-width:28px;font-weight:700}.ds-info-banner{color:#1e40af;background:#eff6ff;border:1px solid #bfdbfe;border-radius:10px;align-items:flex-start;gap:10px;padding:12px 14px;font-size:13px;display:flex}.ds-info-banner p{margin:0}.ds-view-modal{width:min(920px,100vw - 32px)}.ds-view-modal .modal-header{padding:22px 24px}.ds-view-modal .modal-title-icon{border-radius:14px;width:52px;height:52px}.ds-view-modal .modal-header h2{font-size:26px;font-weight:800}.ds-view-modal .modal-subtitle{color:var(--text-muted);margin-top:4px;font-size:14px}.ds-view-close{background:var(--surface-muted,#f1f5f9);border-radius:10px;width:40px;height:40px}.ds-view-modal .modal-body{padding:20px 24px 8px}.ds-view-summary{background:var(--surface-muted,#f8fafc);border:1px solid var(--border-light);border-radius:12px;flex-wrap:wrap;gap:16px;margin-bottom:20px;padding:18px 20px;display:flex}.ds-view-summary-item{border-right:1px solid var(--border-light);flex:180px;align-items:center;gap:12px;min-width:0;padding-right:16px;display:flex}.ds-view-summary-item:last-child{border-right:0;padding-right:0}.ds-view-summary-icon{border-radius:50%;flex-shrink:0;place-items:center;width:44px;height:44px;display:grid}.ds-view-summary-icon.tone-teal{color:#0f8f7f;background:#dcf5f0}.ds-view-summary-icon.tone-blue{color:#2563eb;background:#dbeafe}.ds-view-summary-icon.tone-violet{color:#7c3aed;background:#ede9fe}.ds-view-summary-icon.tone-amber{color:#c2410c;background:#ffedd5}.ds-view-summary-text{flex-direction:column;gap:4px;min-width:0;display:flex}.ds-view-summary-text>span:first-child{color:var(--text-muted);font-size:12px}.ds-view-summary-text>strong{color:var(--text);text-overflow:ellipsis;white-space:nowrap;font-size:16px;font-weight:700;overflow:hidden}.ds-view-status-badge{width:fit-content}.ds-view-section-title{color:var(--text);margin:0 0 12px;font-size:17px;font-weight:700}.ds-view-table-wrap{border:1px solid var(--border-light);border-radius:10px;overflow:auto}.ds-view-table{border-collapse:collapse;width:100%;font-size:13px}.ds-view-table th,.ds-view-table td{text-align:center;white-space:nowrap;border-bottom:1px solid #eef2f6;padding:12px}.ds-view-table th{background:var(--brand-dark);color:#fff;font-size:11px}.ds-view-table tbody tr:last-child td{border-bottom:0}.ds-view-col-index{width:44px;color:var(--text-muted)}.ds-view-table-empty{text-align:center;color:var(--text-muted);white-space:normal;padding:24px 12px}.ds-view-totals{background:var(--brand-muted);border:1px solid var(--brand-soft);border-radius:12px;justify-content:space-between;align-items:center;gap:16px;margin-top:16px;padding:16px 20px;display:flex}.ds-view-totals-item{align-items:center;gap:12px;display:flex}.ds-view-totals-item.is-amount{text-align:right}.ds-view-totals-icon{background:var(--brand-soft);width:40px;height:40px;color:var(--brand-dark);border-radius:50%;flex-shrink:0;place-items:center;display:grid}.ds-view-totals-text{flex-direction:column;gap:4px;display:flex}.ds-view-totals-item.is-amount .ds-view-totals-text{align-items:flex-end}.ds-view-totals-text>span:first-child{color:var(--text-muted);font-size:12px}.ds-view-totals-text>strong{color:var(--text);font-size:18px;font-weight:800}.ds-view-totals-item.is-amount .ds-view-totals-text>strong{color:var(--brand-dark)}.ds-view-totals-divider{background:var(--brand-soft);align-self:stretch;width:1px}.ds-view-remarks{color:#475569;margin:12px 0 0;font-size:13px}.ds-view-remarks span{color:#0f172a;font-weight:700}@media (width<=900px){.ds-patient-type-select,.ds-dates-filter{flex:140px}.ds-dates-filter .vendor-date-range,.ds-dates-filter .vendor-date-range-trigger{width:100%}.ds-filters-panel-grid{grid-template-columns:1fr}.ds-view-modal .modal-header{padding:16px 18px}.ds-view-modal .modal-title-icon{width:42px;height:42px}.ds-view-modal .modal-header h2{font-size:20px}.ds-view-modal .modal-body{padding:16px 18px 8px}.ds-view-summary{grid-template-columns:1fr 1fr;gap:16px 12px;display:grid}.ds-view-summary-item{border-right:0;padding-right:0}.ds-view-totals{flex-wrap:wrap}.ds-view-totals-divider{display:none}}@media (width<=520px){.ds-view-summary{grid-template-columns:1fr}.ds-view-totals-item.is-amount{text-align:center;width:100%}.ds-view-totals-item.is-amount .ds-view-totals-text{align-items:flex-start}}.page-content:has(.vendor-details-page){padding-bottom:24px;overflow:hidden}.vendor-details-page{width:100%;min-width:0;max-width:100%;height:100%;min-height:0;min-height:calc(100dvh - var(--topbar-h) - 48px);flex-direction:column;flex:auto;gap:16px;display:flex;overflow:hidden}.vendor-details-page>.vendor-page-breadcrumbs,.vendor-details-page>.vendor-page-header,.vendor-details-page>.vendor-page-tabs{flex:none}.vendor-details-po-panel,.vendor-details-returns-panel,.vendor-details-payments-panel,.vendor-details-grns-panel{flex-direction:column;flex:auto;gap:16px;min-width:0;min-height:0;display:flex}.vendor-details-po-panel>.vendor-page-toolbar,.vendor-details-returns-panel>.vendor-page-toolbar,.vendor-details-payments-panel>.vendor-page-toolbar,.vendor-details-grns-panel>.vendor-page-toolbar{flex:none}.vendor-details-page>.vendor-page-placeholder{flex:auto;min-height:180px}.vendor-page-breadcrumbs{margin-bottom:0}.vendor-page-header{flex-wrap:nowrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.vendor-page-header-left{flex-shrink:0;align-items:center;gap:12px;min-width:0;display:flex}.vendor-page-back-btn{border:1px solid var(--border);background:var(--surface);width:36px;height:36px;color:var(--text);cursor:pointer;box-shadow:var(--shadow-sm);border-radius:999px;flex-shrink:0;place-items:center;display:grid}.vendor-page-back-btn:hover{border-color:var(--brand);color:var(--brand)}.vendor-page-title-block{flex-wrap:wrap;align-items:center;gap:10px;min-width:0;display:flex}.vendor-page-title{color:var(--text);margin:0;font-size:22px;font-weight:700;line-height:1.2}.vendor-page-header-actions{flex-wrap:nowrap;flex-shrink:0;align-items:center;gap:10px;display:flex}.vendor-page-tabs{border-bottom:1px solid var(--border);align-items:stretch;gap:4px;display:flex;overflow-x:auto}.vendor-page-tab{color:var(--text-muted);cursor:pointer;white-space:nowrap;background:0 0;border:0;border-bottom:2px solid #0000;align-items:center;gap:8px;margin-bottom:-1px;padding:12px 14px;font-size:13px;font-weight:600;display:inline-flex}.vendor-page-tab:hover{color:var(--text)}.vendor-page-tab.is-active{color:var(--brand);border-bottom-color:var(--brand)}.vendor-page-stats{grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;display:grid}.vendor-page-stats--payable{grid-template-columns:repeat(4,minmax(0,1fr))}.vendor-page-stats--header{flex:auto;gap:8px;min-width:0}.vendor-page-stats--returns-header{align-items:stretch;gap:8px;display:flex}.vendor-page-stats--returns-header .vendor-page-stat-card{flex:1 1 0;min-width:0}.vendor-returns-export-btn{white-space:nowrap;flex:none;align-self:center;height:38px}.vendor-page-stat-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-sm);align-items:flex-start;gap:12px;min-width:0;padding:14px;display:flex}.vendor-page-stats--header .vendor-page-stat-card{align-items:center;gap:8px;padding:8px 10px}.vendor-page-stat-icon{border-radius:999px;flex-shrink:0;place-items:center;width:40px;height:40px;display:grid}.vendor-page-stats--header .vendor-page-stat-icon{width:28px;height:28px}.vendor-page-stat-icon.tone-teal{background:var(--brand-soft);color:var(--brand)}.vendor-page-stat-icon.tone-red{background:var(--cancelled-bg,#fee2e2);color:var(--cancelled,#dc2626)}.vendor-page-stat-icon.tone-amber{background:var(--partial-bg,#ffedd5);color:var(--partial,#ea580c)}.vendor-page-stat-icon.tone-green{background:var(--received-bg,#d1fae5);color:var(--received,#059669)}.vendor-page-stat-icon.tone-blue{color:#2563eb;background:#2563eb1f}.vendor-page-stat-icon.tone-purple{color:#7c3aed;background:#7c3aed1f}.vendor-page-stat-icon.tone-rose{color:#b91c1c;background:#fee2e2}.vendor-page-stat-body{flex-direction:column;gap:2px;min-width:0;display:flex}.vendor-page-stat-title{color:var(--text-muted);font-size:12px;font-weight:500}.vendor-page-stats--header .vendor-page-stat-title{white-space:nowrap;text-overflow:ellipsis;font-size:10px;line-height:1.2;overflow:hidden}.vendor-page-stat-value{color:var(--text);font-size:20px;font-weight:700;line-height:1.2}.vendor-page-stats--header .vendor-page-stat-value{white-space:nowrap;font-size:15px}.vendor-page-stat-sub{color:var(--text-muted);font-size:11px}.vendor-page-stats--header .vendor-page-stat-sub{white-space:nowrap;font-size:10px}.vendor-page-stats--header .vendor-page-stat-body{min-width:0;overflow:hidden}.vendor-page-toolbar{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.vendor-page-search{flex:240px;min-width:200px}.vendor-page-date{flex:0 150px;min-width:140px}.vendor-page-date.vendor-page-date--datetime{flex:0 180px;min-width:168px}.vendor-page-toolbar .vendor-page-date.app-date-input,.vendor-page-toolbar .vendor-page-date{width:auto;min-width:150px}.vendor-page-toolbar .vendor-page-date.vendor-page-date--datetime{min-width:168px}.vendor-page-toolbar .vendor-page-date .app-date-input-field{border:1px solid var(--border);background:var(--surface-muted,#fafafa);min-width:150px;height:38px;color:var(--text);box-sizing:border-box;border-radius:8px;font-size:13px;padding:0 40px 0 12px!important}.vendor-page-toolbar .vendor-page-date.vendor-page-date--datetime .app-date-input-field{min-width:168px}.vendor-page-toolbar .vendor-page-date .app-date-input-field:focus{border-color:var(--brand);outline:none}.vendor-page-size-select.filter-autocomplete{flex:0 0 88px;width:88px;min-width:88px;max-width:100px}.vendor-page-toolbar .filter-autocomplete,.vendor-details-po-panel .filter-autocomplete,.vendor-details-grns-panel .filter-autocomplete,.vendor-details-returns-panel .filter-autocomplete,.vendor-details-payments-panel .filter-autocomplete{flex:0 170px;width:170px;min-width:150px;max-width:220px}.vendor-page-toolbar .filter-autocomplete .autocomplete-control,.vendor-details-po-panel .filter-autocomplete .autocomplete-control,.vendor-details-grns-panel .filter-autocomplete .autocomplete-control,.vendor-details-returns-panel .filter-autocomplete .autocomplete-control,.vendor-details-payments-panel .filter-autocomplete .autocomplete-control{background:var(--surface-muted,#fafafa);border:1px solid var(--border);border-radius:8px;height:38px;min-height:38px;padding:0 10px}.vendor-page-toolbar .filter-autocomplete .autocomplete-control:focus-within,.vendor-details-po-panel .filter-autocomplete .autocomplete-control:focus-within,.vendor-details-grns-panel .filter-autocomplete .autocomplete-control:focus-within,.vendor-details-returns-panel .filter-autocomplete .autocomplete-control:focus-within,.vendor-details-payments-panel .filter-autocomplete .autocomplete-control:focus-within{border-color:var(--brand);box-shadow:0 0 0 3px #0d94881f}.vendor-page-toolbar .filter-autocomplete .autocomplete-control input,.vendor-details-po-panel .filter-autocomplete .autocomplete-control input,.vendor-details-grns-panel .filter-autocomplete .autocomplete-control input,.vendor-details-returns-panel .filter-autocomplete .autocomplete-control input,.vendor-details-payments-panel .filter-autocomplete .autocomplete-control input{height:36px;color:var(--text);font-size:13px}.vendor-page-toolbar .filter-autocomplete .autocomplete-control input::placeholder,.vendor-details-po-panel .filter-autocomplete .autocomplete-control input::placeholder,.vendor-details-grns-panel .filter-autocomplete .autocomplete-control input::placeholder,.vendor-details-returns-panel .filter-autocomplete .autocomplete-control input::placeholder,.vendor-details-payments-panel .filter-autocomplete .autocomplete-control input::placeholder{color:var(--text-muted)}.vendor-date-range{flex:none;max-width:220px;position:relative}.vendor-date-range-trigger{justify-content:flex-start;width:100%;max-width:220px}.vendor-date-range-trigger span{text-overflow:ellipsis;white-space:nowrap;text-align:center;flex:auto;min-width:0;overflow:hidden}.vendor-date-range-panel{z-index:40;box-sizing:border-box;background:var(--surface);border:1px solid var(--border);width:max-content;min-width:min(280px,100vw - 16px);max-width:min(320px,100vw - 16px);box-shadow:var(--shadow-sm,0 8px 24px #0f172a1f);border-radius:10px;gap:10px;padding:12px;display:grid;position:absolute;top:calc(100% + 6px);left:0}.vendor-date-range-panel--fixed{margin:0;position:fixed}.vendor-date-range-field{min-width:0}.vendor-date-range-field>span{color:var(--text);font-size:11.5px;font-weight:600}.vendor-date-range-field .app-date-input-field{border:1px solid var(--border);box-sizing:border-box;background:#fafafa;border-radius:8px;height:38px;font-size:13px;padding:0 40px 0 12px!important}.vendor-date-range-field .app-date-input-field:focus{border-color:var(--brand);outline:none}.vendor-date-range-error{margin:0;font-size:12px}.vendor-date-range-actions{justify-content:flex-end;display:flex}.vendor-page-tool-btn{flex-shrink:0}.vendor-page-table-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);min-height:0;box-shadow:var(--shadow-sm);flex-direction:column;flex:auto;display:flex;overflow:hidden}.vendor-page-table-card .po-table-wrap{-webkit-overflow-scrolling:touch;flex:auto;min-height:0;overflow:auto}.vendor-page-table-card .po-table{width:max-content;min-width:100%}.vendor-page-table-card .pagination,.vendor-page-table-card .pagination-redesign{background:var(--surface);border-top:1px solid var(--border);z-index:1;flex:none;margin-top:0;position:relative}.vendor-page-po-table td{border-bottom-color:var(--border);color:var(--text)}.vendor-page-po-table tbody tr:hover{background:var(--surface-muted,#00000005)}.vendor-page-po-table{--vendor-po-sticky-actions-width:196px;--vendor-po-sticky-receipts-width:96px}.vendor-page-po-table th.vendor-po-col-sticky-left,.vendor-page-po-table td.vendor-po-col-sticky-left{z-index:2;background:var(--surface,#fff);min-width:140px;position:sticky;left:0;box-shadow:4px 0 10px -4px #0f172a24}.vendor-page-po-table thead th.vendor-po-col-sticky-left{z-index:var(--table-sticky-corner-z,5);box-shadow:4px 0 10px -4px #0f172a2e;background:var(--brand-dark)!important}.vendor-page-po-table th.vendor-po-col-sticky-right-actions,.vendor-page-po-table td.vendor-po-col-sticky-right-actions{z-index:2;background:var(--surface,#fff);min-width:var(--vendor-po-sticky-actions-width);width:var(--vendor-po-sticky-actions-width);border-left:1px solid var(--border,#e5e7eb);position:sticky;right:0}.vendor-page-po-table thead th.vendor-po-col-sticky-right-actions{z-index:var(--table-sticky-corner-z,5);border-left-color:#ffffff1f;background:var(--brand-dark)!important}.vendor-page-po-table th.vendor-po-col-sticky-right-receipts,.vendor-page-po-table td.vendor-po-col-sticky-right-receipts{right:var(--vendor-po-sticky-actions-width);z-index:2;background:var(--surface,#fff);min-width:var(--vendor-po-sticky-receipts-width);width:var(--vendor-po-sticky-receipts-width);position:sticky;box-shadow:-4px 0 10px -4px #0f172a24}.vendor-page-po-table thead th.vendor-po-col-sticky-right-receipts{z-index:var(--table-sticky-corner-z,5);background:var(--brand-dark)!important}.vendor-page-po-table tbody tr:hover td.vendor-po-col-sticky-left,.vendor-page-po-table tbody tr:hover td.vendor-po-col-sticky-right-actions,.vendor-page-po-table tbody tr:hover td.vendor-po-col-sticky-right-receipts{background:var(--surface-muted,#fafafa)}.vendor-returns-table .vendor-page-placeholder-row td.vendor-po-col-sticky-left,.vendor-returns-table .vendor-page-placeholder-row td.vendor-po-col-sticky-right-actions{background:var(--surface,#fff)}.vendor-page-empty-cell{text-align:center;color:var(--text-muted);padding:28px 16px!important}.vendor-page-table-stack{--vendor-table-thead-height:2.75rem;position:relative}.vendor-page-tbody-overlay{bottom:0;left:0;right:0;top:var(--vendor-table-thead-height);pointer-events:none;z-index:1;color:var(--text-muted);text-align:center;justify-content:center;align-items:center;padding:0 16px;font-size:13px;display:flex;position:absolute}.vendor-page-placeholder-row{pointer-events:none}.vendor-page-placeholder-row:hover{background:0 0!important}.vendor-page-placeholder-row td{border-top:none!important;border-bottom:none!important}.vendor-page-placeholder-fill{visibility:hidden;width:0;height:30px;display:block;overflow:hidden}.vendor-page-amount{font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:600}.vendor-page-pay-badge{white-space:nowrap;background:0 0;border:1px solid;border-radius:999px;align-items:center;padding:3px 10px;font-size:12px;font-weight:600;display:inline-flex}.vendor-page-pay-badge.is-paid{color:#059669;background:#05966914}.vendor-page-pay-badge.is-partial{color:#ea580c;background:#ea580c14}.vendor-page-pay-badge.is-unpaid{color:#dc2626;background:#dc262614}.vendor-page-placeholder{text-align:center;background:var(--surface);border:1px dashed var(--border);border-radius:var(--radius);min-height:220px;color:var(--text-muted);flex-direction:column;justify-content:center;align-items:center;gap:6px;padding:32px 16px;display:flex}.vendor-page-placeholder p{color:var(--text);margin:0;font-size:14px;font-weight:600}.vendor-page-placeholder span{font-size:12px}.vendor-name-link{font:inherit;color:var(--brand);cursor:pointer;text-align:left;background:0 0;border:0;margin:0;padding:0;font-weight:700}.vendor-name-link:hover{text-decoration:underline}@media (width<=1400px){.vendor-page-header{flex-wrap:wrap}.vendor-page-stats--header{flex:100%;order:3}}@media (width<=1280px){.vendor-page-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.vendor-page-stats--payable{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=900px){.vendor-page-stats,.vendor-page-stats--payable{grid-template-columns:repeat(2,minmax(0,1fr))}.vendor-page-header-actions{width:auto;margin-left:auto}.vendor-page-header-actions .btn{flex:0 auto}}@media (width<=640px){.vendor-page-stats{grid-template-columns:1fr}.vendor-page-title{font-size:18px}.vendor-page-header-actions{width:100%}.vendor-page-header-actions .btn{flex:auto}}table th,table thead th{text-transform:none}.vendor-returns-stats{flex:none;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;display:grid}.vendor-returns-stat-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-sm);align-items:center;gap:12px;min-width:0;padding:14px;display:flex}.vendor-returns-stat-icon{border-radius:10px;flex-shrink:0;place-items:center;width:36px;height:36px;display:grid}.vendor-returns-stat-icon.tone-rose{color:#e11d48;background:#e11d481f}.vendor-returns-stat-icon.tone-gray{background:color-mix(in srgb, var(--text-muted) 14%, transparent);color:var(--text-muted)}.vendor-returns-stat-icon.tone-amber{background:var(--partial-bg,#ffedd5);color:var(--partial,#ea580c)}.vendor-returns-stat-icon.tone-green{background:var(--received-bg,#d1fae5);color:var(--received,#059669)}.vendor-returns-stat-icon.tone-red{background:var(--cancelled-bg,#fee2e2);color:var(--cancelled,#dc2626)}.vendor-returns-stat-icon.tone-teal{background:var(--brand-soft,color-mix(in srgb, var(--brand) 14%, transparent));color:var(--brand)}.vendor-returns-stat-body{flex-direction:column;gap:2px;min-width:0;display:flex}.vendor-returns-stat-title{color:var(--text-muted);font-size:12px;font-weight:500;line-height:1.2}.vendor-returns-stat-value{color:var(--text);white-space:nowrap;font-size:18px;font-weight:700;line-height:1.2}.vendor-returns-datetime{flex-direction:column;gap:2px;line-height:1.25;display:flex}.vendor-returns-datetime span:last-child{color:var(--text-muted);font-size:12px}.vendor-returns-status-badge{white-space:nowrap;border-radius:999px;align-items:center;padding:3px 10px;font-size:12px;font-weight:600;display:inline-flex}.vendor-returns-status-badge.is-completed,.vendor-returns-status-badge.is-approved{color:#059669;background:#0596691f}.vendor-returns-status-badge.is-pending{color:#ea580c;background:#ea580c1f}.vendor-returns-status-badge.is-draft{background:color-mix(in srgb, var(--text-muted) 14%, transparent);color:var(--text-muted)}.vendor-returns-status-badge.is-cancelled{color:#dc2626;background:#dc26261f}.vendor-returns-settle-badge{white-space:nowrap;border-radius:999px;align-items:center;padding:3px 10px;font-size:12px;font-weight:600;display:inline-flex}.vendor-returns-settle-badge.is-refund{color:#2563eb;background:#2563eb1f}.vendor-returns-settle-badge.is-credit{color:#7c3aed;background:#7c3aed1f}.vendor-returns-settle-badge.is-exchange{color:#0284c7;background:#0284c71f}@media (width<=1280px){.vendor-returns-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=900px){.vendor-returns-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=640px){.vendor-returns-stats{grid-template-columns:1fr}}.vendor-payments-stats{flex:none;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;display:grid}.vendor-payments-stat-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-sm);align-items:flex-start;gap:12px;min-width:0;padding:14px;display:flex}.vendor-payments-stat-icon{border-radius:10px;flex-shrink:0;place-items:center;width:36px;height:36px;display:grid}.vendor-payments-stat-icon.tone-teal{background:var(--brand-soft,color-mix(in srgb, var(--brand) 14%, transparent));color:var(--brand)}.vendor-payments-stat-icon.tone-green{background:var(--received-bg,#d1fae5);color:var(--received,#059669)}.vendor-payments-stat-icon.tone-amber{background:var(--partial-bg,#ffedd5);color:var(--partial,#ea580c)}.vendor-payments-stat-icon.tone-purple{color:#7c3aed;background:#7c3aed1f}.vendor-payments-stat-icon.tone-blue{color:#2563eb;background:#2563eb1f}.vendor-payments-stat-icon.tone-red{background:var(--cancelled-bg,#fee2e2);color:var(--cancelled,#dc2626)}.vendor-payments-stat-body{flex-direction:column;gap:2px;min-width:0;display:flex}.vendor-payments-stat-title{color:var(--text-muted);font-size:12px;font-weight:500;line-height:1.2}.vendor-payments-stat-value{color:var(--text);white-space:nowrap;font-size:18px;font-weight:700;line-height:1.2}.vendor-payments-stat-sub{color:var(--text-muted);font-size:11px}.vendor-payments-method-badge,.vendor-payments-status-badge{white-space:nowrap;border-radius:999px;align-items:center;padding:3px 10px;font-size:12px;font-weight:600;display:inline-flex}.vendor-payments-method-badge.is-upi{color:#7c3aed;background:#7c3aed1f}.vendor-payments-method-badge.is-bank-transfer{color:#2563eb;background:#2563eb1f}.vendor-payments-method-badge.is-cash{color:#059669;background:#0596691f}.vendor-payments-method-badge.is-card{color:#d97706;background:#d977061f}.vendor-payments-status-badge.is-paid,.vendor-payments-status-badge.is-success{color:#059669;background:#0596691f}.vendor-payments-status-badge.is-partial-paid,.vendor-payments-status-badge.is-partial{color:#ea580c;background:#ea580c1f}.vendor-payments-status-badge.is-unpaid{color:#d97706;background:#d977061f}.vendor-payments-status-badge.is-failed,.vendor-payments-status-badge.is-cancelled{color:#dc2626;background:#dc26261f}.vendor-payments-table .vendor-page-amount{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.vendor-payments-table th.vp-col-sticky-left,.vendor-payments-table td.vp-col-sticky-left{z-index:3;background:#fff;position:sticky}.vendor-payments-table th.vp-col-sticky-left{z-index:5;background:var(--brand-dark)!important}.vendor-payments-table th.vp-col-sticky-right,.vendor-payments-table td.vp-col-sticky-right{z-index:3;background:#fff;position:sticky;right:0}.vendor-payments-table th.vp-col-sticky-right{z-index:5;box-shadow:-4px 0 10px -4px #0f172a2e;background:var(--brand-dark)!important}.vendor-payments-table td.vp-col-sticky-right{box-shadow:-4px 0 10px -4px #0f172a24}.vendor-payments-table .vp-col-payment-no{width:148px;min-width:148px;left:0}.vendor-payments-table .vp-col-payment-date{width:124px;min-width:124px;left:148px;box-shadow:4px 0 10px -4px #0f172a29}.vendor-payments-table .vp-col-actions{width:118px;min-width:118px}.vendor-payments-table tbody tr:hover td.vp-col-sticky-left,.vendor-payments-table tbody tr:hover td.vp-col-sticky-right{background:var(--surface-muted,#00000005)}.vendor-payments-table .vendor-page-placeholder-row td.vp-col-sticky-left,.vendor-payments-table .vendor-page-placeholder-row td.vp-col-sticky-right{background:#fff}@media (width<=1280px){.vendor-payments-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width<=900px){.vendor-payments-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=640px){.vendor-payments-stats{grid-template-columns:1fr}}.vendor-details-page>.vendor-grns-stats{flex:none;margin-top:4px;margin-bottom:4px}.vendor-grns-stats{flex:none;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;display:grid}.vendor-grns-stat-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-sm);align-items:flex-start;gap:12px;min-width:0;padding:14px;display:flex}.vendor-grns-stat-icon{border-radius:10px;flex-shrink:0;place-items:center;width:36px;height:36px;display:grid}.vendor-grns-stat-icon.tone-teal{background:var(--brand-soft,color-mix(in srgb, var(--brand) 14%, transparent));color:var(--brand)}.vendor-grns-stat-icon.tone-amber{background:var(--partial-bg,#ffedd5);color:var(--partial,#ea580c)}.vendor-grns-stat-icon.tone-blue{color:#2563eb;background:#2563eb1f}.vendor-grns-stat-icon.tone-green{background:var(--received-bg,#d1fae5);color:var(--received,#059669)}.vendor-grns-stat-icon.tone-red{background:var(--cancelled-bg,#fee2e2);color:var(--cancelled,#dc2626)}.vendor-grns-stat-body{flex-direction:column;gap:2px;min-width:0;display:flex}.vendor-grns-stat-title{color:var(--text-muted);font-size:12px;font-weight:500;line-height:1.2}.vendor-grns-stat-value{color:var(--text);white-space:nowrap;font-size:18px;font-weight:700;line-height:1.2}.vendor-grns-stat-sub{color:var(--text-muted);font-size:11px}.vendor-grns-status-badge{white-space:nowrap;border-radius:999px;align-items:center;padding:3px 10px;font-size:12px;font-weight:600;display:inline-flex}.vendor-grns-status-badge.is-approved{color:#059669;background:#0596691f}.vendor-grns-status-badge.is-submitted{color:#2563eb;background:#2563eb1f}.vendor-grns-status-badge.is-draft{color:#d97706;background:#d977061f}.vendor-grns-status-badge.is-cancelled{color:#dc2626;background:#dc26261f}.vendor-grns-table .vendor-page-amount{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}@media (width<=1280px){.vendor-grns-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width<=900px){.vendor-grns-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=640px){.vendor-grns-stats{grid-template-columns:1fr}}.modal-dialog.pay-outstanding-modal{width:min(560px,100%);max-width:560px}.pay-outstanding-overlay{z-index:1200}.pay-outstanding-modal{background:var(--surface);border:1px solid var(--border);width:min(560px,100vw - 32px);max-height:calc(100vh - 48px);box-shadow:var(--shadow-lg,0 20px 50px #0f172a2e);border-radius:14px;flex-direction:column;display:flex;overflow:hidden}.pay-outstanding-header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;display:flex}.pay-outstanding-header h2{color:var(--text);margin:0;font-size:16px;font-weight:700}.pay-outstanding-body{flex-direction:column;gap:12px;padding:12px 16px;display:flex;overflow:auto}.pay-outstanding-summary-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.pay-outstanding-summary-card{border:1px solid var(--border);background:var(--surface);border-radius:10px;align-items:center;gap:10px;padding:10px 12px;display:flex}.pay-outstanding-summary-icon{border-radius:999px;flex-shrink:0;place-items:center;width:36px;height:36px;display:grid}.pay-outstanding-summary-icon.tone-blue{color:#2563eb;background:#2563eb1f}.pay-outstanding-summary-icon.tone-purple{color:#7c3aed;background:#7c3aed1f}.pay-outstanding-summary-icon.tone-green{color:#059669;background:#0596691f}.pay-outstanding-summary-label{color:var(--text-muted);margin-bottom:2px;font-size:12px;display:block}.pay-outstanding-summary-value{color:var(--text);font-size:18px;font-weight:700;display:block}.pay-outstanding-section h3{color:var(--text);margin:0 0 10px;font-size:14px;font-weight:700}.pay-outstanding-table-wrap{border:1px solid var(--border);border-radius:10px;overflow:auto hidden}.pay-outstanding-table{border-collapse:collapse;width:max(100%,920px);font-size:13px}.pay-outstanding-table th,.pay-outstanding-table td{border-bottom:1px solid var(--border);text-align:center;white-space:nowrap;vertical-align:top;padding:10px 12px}.pay-outstanding-table .pay-outstanding-medicine{white-space:normal;min-width:140px;max-width:220px}.pay-outstanding-table th{background:color-mix(in srgb, var(--brand) 8%, transparent);color:var(--text);font-weight:600}.pay-outstanding-table .is-num{text-align:center;font-variant-numeric:tabular-nums}.pay-outstanding-table tfoot td{background:color-mix(in srgb, var(--text-muted) 6%, transparent);border-bottom:none;font-weight:700}.pay-outstanding-table .is-due{color:#dc2626}.pay-outstanding-form{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px;display:grid}.pay-outstanding-field{flex-direction:column;gap:6px;min-width:0;display:flex}.pay-outstanding-field>span,.pay-outstanding-field-label{color:var(--text);font-size:12px;font-weight:600}.pay-outstanding-field-label{align-items:center;gap:6px;display:inline-flex}.pay-outstanding-field em{color:#dc2626;font-style:normal}.pay-outstanding-field>input,.pay-outstanding-field>select{border:1px solid var(--border);background:var(--surface);height:38px;color:var(--text);font:inherit;border-radius:8px;padding:0 12px}.pay-outstanding-field .autocomplete{width:100%;min-width:0}.pay-outstanding-field .autocomplete-control{border:1px solid var(--border);background:var(--surface);box-sizing:border-box;border-radius:8px;width:100%;height:38px;min-height:38px}.pay-outstanding-field .autocomplete-control:focus-within{border-color:var(--brand-dark);box-shadow:0 0 0 3px #0f766e1f}.pay-outstanding-field .autocomplete-control input{height:auto;min-height:0;padding:0;box-shadow:none!important;background:0 0!important;border:none!important}.pay-outstanding-field .autocomplete-control input:focus{outline:none;box-shadow:none!important}.pay-outstanding-field>input.has-error,.pay-outstanding-field>select.has-error,.pay-outstanding-field .autocomplete.has-error .autocomplete-control{border-color:#dc2626;box-shadow:0 0 0 3px #dc26261a}.pay-outstanding-loading,.pay-outstanding-error{margin:0;font-size:14px}.pay-outstanding-error{color:#dc2626}.pay-outstanding-field small.is-available{color:#059669;font-size:12px}.pay-outstanding-field small.is-error{color:#dc2626;font-size:12px}.pay-outstanding-payment-summary{background:#05966914;border:1px solid #0596693d;border-radius:10px;padding:10px 12px}.pay-outstanding-payment-summary h4{color:#047857;margin:0 0 8px;font-size:13px}.pay-outstanding-payment-math{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;display:flex}.pay-outstanding-payment-math>div{flex-direction:column;gap:2px;display:flex}.pay-outstanding-payment-math span{color:var(--text-muted);font-size:11px}.pay-outstanding-payment-math strong{color:var(--text);font-size:14px}.pay-outstanding-payment-math .is-amount strong{color:#059669;font-size:16px}.pay-outstanding-op{color:var(--text-muted);font-size:18px;font-weight:700}.pay-outstanding-footer{border-top:1px solid var(--border);justify-content:flex-end;gap:10px;padding:12px 16px;display:flex}@media (width<=560px){.pay-outstanding-summary-cards,.pay-outstanding-form{grid-template-columns:1fr}}.page-content:has(.medicine-details-page){padding-bottom:24px;overflow:hidden}.medicine-details-page{width:100%;min-width:0;max-width:100%;height:100%;min-height:0;min-height:calc(100dvh - var(--topbar-h) - 48px);flex-direction:column;flex:auto;gap:16px;display:flex;overflow:hidden}.medicine-details-page>.medicine-details-breadcrumb-bar,.medicine-details-page>.medicine-details-header,.medicine-details-page>.vendor-page-tabs,.medicine-details-page>.form-error-text{flex:none}.medicine-details-breadcrumb-bar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.medicine-details-breadcrumb-bar .vendor-page-breadcrumbs{flex:auto;min-width:0;margin-bottom:0}.medicine-details-back-btn{white-space:nowrap;flex:none}.medicine-details-header{grid-template-columns:minmax(0,1fr) minmax(0,2.2fr);align-items:start;gap:12px;display:grid}.medicine-details-header-main{min-width:0}.medicine-details-title-block{flex-direction:column;gap:6px;min-width:0;display:flex}.medicine-details-title-row{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.medicine-details-title-row .vendor-page-back-btn{margin-right:2px}.medicine-details-title{color:var(--text);margin:0;font-size:22px;font-weight:700;line-height:1.2}.medicine-details-edit-icon{color:var(--text-muted);flex-shrink:0}.medicine-details-subtitle{color:var(--text-muted);margin:0;font-size:13px}.medicine-details-header-cards{grid-template-columns:repeat(6,minmax(100px,1fr));min-width:0}.medicine-details-header-cards.is-stock-summary{grid-template-columns:repeat(6,minmax(100px,1fr))}.medicine-details-po-panel,.medicine-details-sales-panel,.medicine-details-stock-panel{flex-direction:column;flex:auto;gap:16px;min-width:0;min-height:0;display:flex;overflow:hidden}.medicine-details-summary-panel{flex-direction:column;flex:auto;gap:16px;min-width:0;min-height:0;display:flex;overflow:auto}.medicine-details-po-panel>.vendor-page-stats,.medicine-details-po-panel>.vendor-page-toolbar,.medicine-details-po-panel>.form-error-text,.medicine-details-sales-panel>.vendor-page-stats,.medicine-details-sales-panel>.vendor-page-toolbar,.medicine-details-sales-panel>.form-error-text,.medicine-details-stock-panel>.vendor-page-stats,.medicine-details-stock-panel>.vendor-page-toolbar,.medicine-details-stock-panel>.form-error-text{flex:none}.medicine-details-stock-stats{grid-template-columns:repeat(6,minmax(0,1fr))}.medicine-details-stock-table th{white-space:nowrap}.medicine-details-bottom-summary{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-sm);flex:none;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;padding:16px;display:grid}.medicine-details-bottom-summary-item{flex-direction:column;gap:6px;min-width:0;display:flex}.medicine-details-bottom-summary-item span{color:var(--text-muted);font-size:12px;font-weight:600}.medicine-details-bottom-summary-item strong{color:var(--text);font-size:15px;font-weight:700;line-height:1.2}.medicine-details-page .vendor-page-table-card{flex-direction:column;flex:auto;min-height:0;display:flex}.medicine-details-page .vendor-page-table-card .po-table-wrap{-webkit-overflow-scrolling:touch;flex:auto;min-height:280px;overflow:auto}.medicine-details-page .vendor-page-table-card .pagination,.medicine-details-page .vendor-page-table-card .pagination-redesign{flex:none;margin-top:auto}.medicine-details-page .vendor-page-table-card .table-empty{text-align:center;color:var(--text-muted);font-size:13px;padding:48px 16px!important}.medicine-details-tab-stats{grid-template-columns:repeat(5,minmax(0,1fr))}.medicine-details-sales-stats{grid-template-columns:repeat(6,minmax(0,1fr))}.medicine-details-sales-toolbar{flex-wrap:wrap}.medicine-sale-type-badge{white-space:nowrap;border-radius:999px;justify-content:center;align-items:center;padding:4px 10px;font-size:12px;font-weight:600;line-height:1.2;display:inline-flex}.medicine-sale-type-badge.is-walk-in{color:#059669;background:#ecfdf5}.medicine-sale-type-badge.is-regular{color:#2563eb;background:#dbeafe}.medicine-sale-type-badge.is-opd{color:#7c3aed;background:#ede9fe}.medicine-sale-type-badge.is-ip{color:#ea580c;background:#ffedd5}.medicine-details-batch-cell{flex-direction:column;gap:2px;min-width:120px;display:flex}.medicine-details-batch-cell strong{color:var(--text);font-weight:600}.medicine-details-batch-cell span{color:var(--text-muted);font-size:12px}.medicine-details-row-actions{align-items:center;gap:4px;display:inline-flex}.medicine-details-po-table{--med-po-sticky-actions-width:112px}.medicine-details-po-table th.med-po-col-sticky-left,.medicine-details-po-table td.med-po-col-sticky-left{z-index:2;background:var(--surface,#fff);min-width:148px;position:sticky;left:0;box-shadow:4px 0 10px -4px #0f172a24}.medicine-details-po-table thead th.med-po-col-sticky-left{z-index:var(--table-sticky-corner-z,5);box-shadow:4px 0 10px -4px #0f172a2e;background:var(--brand-dark)!important}.medicine-details-po-table th.med-po-col-sticky-right-actions,.medicine-details-po-table td.med-po-col-sticky-right-actions{z-index:2;background:var(--surface,#fff);min-width:var(--med-po-sticky-actions-width);width:var(--med-po-sticky-actions-width);border-left:1px solid var(--border,#e5e7eb);position:sticky;right:0}.medicine-details-po-table thead th.med-po-col-sticky-right-actions{z-index:var(--table-sticky-corner-z,5);border-left-color:#ffffff1f;background:var(--brand-dark)!important}.medicine-details-po-table tbody tr:hover td.med-po-col-sticky-left,.medicine-details-po-table tbody tr:hover td.med-po-col-sticky-right-actions{background:#fafafa}.medicine-details-po-table th,.medicine-details-sales-table th{white-space:nowrap}.medicine-details-source-cell{flex-direction:column;align-items:flex-start;gap:4px;display:flex}.medicine-details-source-cell strong{color:var(--brand-dark);font-weight:600}.medicine-details-source-badge{color:#0f766e;background:#ccfbf1;border:1px solid #99f6e4;border-radius:999px;align-items:center;padding:2px 8px;font-size:10.5px;font-weight:700;line-height:1.2;display:inline-flex}.status-badge.exchange_return{color:#0f766e;background:#ccfbf1;border:1px solid #99f6e4}.grn-link{color:#059669;font-weight:600}.medicine-details-summary-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;display:grid}.medicine-details-summary-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-sm);flex-direction:column;gap:6px;padding:16px;display:flex}.medicine-details-summary-title{color:var(--text-muted);font-size:12px;font-weight:600}.medicine-details-summary-value{color:var(--text);font-size:20px;font-weight:700;line-height:1.2}.medicine-details-summary-sub{color:var(--text-muted);font-size:12px}@media (width<=1400px){.medicine-details-header-cards,.medicine-details-header-cards.is-stock-summary{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width<=1200px){.medicine-details-header{grid-template-columns:1fr}.medicine-details-header-cards,.medicine-details-header-cards.is-stock-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.medicine-details-tab-stats,.medicine-details-sales-stats,.medicine-details-stock-stats,.medicine-details-bottom-summary,.medicine-details-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=640px){.medicine-details-header-cards,.medicine-details-header-cards.is-stock-summary,.medicine-details-tab-stats,.medicine-details-sales-stats,.medicine-details-stock-stats,.medicine-details-summary-grid,.medicine-details-bottom-summary{grid-template-columns:1fr}}.igrep-table-wrap{flex:auto;max-width:100%;min-height:0;overflow:auto}.igrep-table{border-collapse:separate;border-spacing:0;min-width:2800px;font-size:11px}.igrep-table tbody tr.igrep-spacer-row td{font-size:0;line-height:0;background:0 0!important;border:0!important;padding:0!important}.igrep-table thead th,.igrep-page .igrep-table.grep-table thead th,.igrep-page .igrep-table.srep-table thead th{z-index:var(--table-sticky-header-z);vertical-align:middle;text-align:center;-webkit-text-fill-color:#fff;padding:8px 10px;position:sticky;top:0;overflow:hidden;white-space:nowrap!important;word-break:normal!important;text-overflow:unset!important;background:var(--brand-dark)!important;color:#fff!important;line-height:1.3!important}.igrep-table td{white-space:nowrap;background-color:#fff;padding:8px 10px}.igrep-col-index{text-align:center;width:48px;min-width:48px;max-width:48px}.igrep-col-medicineName{width:160px;min-width:160px;max-width:160px}.igrep-col-manufacturer,.igrep-col-vendorName{min-width:140px}.igrep-page .igrep-table.grep-table thead th.is-sticky-num,.igrep-page .igrep-table.grep-table thead th.is-sticky-batch,.igrep-page .igrep-table.grep-table thead th.is-sticky-med,.igrep-page .igrep-table.grep-table thead th.is-sticky-total,.igrep-page .igrep-table.srep-table thead th.is-sticky-num,.igrep-page .igrep-table.srep-table thead th.is-sticky-batch,.igrep-page .igrep-table.srep-table thead th.is-sticky-med,.igrep-page .igrep-table.srep-table thead th.is-sticky-total,.igrep-table thead th.is-sticky-num,.igrep-table thead th.is-sticky-batch,.igrep-table thead th.is-sticky-med,.igrep-table thead th.is-sticky-total{z-index:var(--table-sticky-corner-z);-webkit-text-fill-color:#fff;position:sticky;overflow:hidden;background:var(--brand-dark)!important;color:#fff!important}.igrep-table td.is-sticky-num,.igrep-table td.is-sticky-batch,.igrep-table td.is-sticky-med,.igrep-table td.is-sticky-total{z-index:4;background-clip:padding-box;position:sticky;background-color:#fff!important}.igrep-table .is-sticky-num{left:0}.igrep-table.has-sticky-batch .is-sticky-batch{width:110px;min-width:110px;max-width:110px;left:48px}.igrep-table.has-sticky-medicine:not(.has-sticky-batch) .is-sticky-med{width:160px;min-width:160px;max-width:160px;left:48px;box-shadow:4px 0 10px -4px #0f172a2e}.igrep-table.has-sticky-medicine.has-sticky-batch .is-sticky-med{width:160px;min-width:160px;max-width:160px;left:158px;box-shadow:4px 0 10px -4px #0f172a2e}.igrep-table:not(.has-sticky-medicine):not(.has-sticky-batch) .is-sticky-num{box-shadow:4px 0 10px -4px #0f172a2e}.igrep-table.has-sticky-medicine .is-sticky-num,.igrep-table.has-sticky-batch .is-sticky-num{box-shadow:none}.igrep-table.has-sticky-item-total .is-sticky-total{width:170px;min-width:170px;right:0;box-shadow:-4px 0 10px -4px #0f172a2e}.igrep-table tbody tr:hover td:not([class*=is-sticky]){background-color:var(--bg)}.igrep-table tbody tr:hover td.is-sticky-num,.igrep-table tbody tr:hover td.is-sticky-batch,.igrep-table tbody tr:hover td.is-sticky-med,.igrep-table tbody tr:hover td.is-sticky-total{background-color:var(--bg)!important}.igrep-table tfoot tr.igrep-totals-row td{z-index:3;color:#14532d;white-space:nowrap;border-top:1px solid #86efac;font-weight:700;position:sticky;bottom:0;box-shadow:0 -2px 6px #0f172a0f;background:#dcfce7!important}.igrep-page .igrep-table.grep-table tfoot tr.igrep-totals-row td.is-sticky-num,.igrep-page .igrep-table.grep-table tfoot tr.igrep-totals-row td.is-sticky-batch,.igrep-page .igrep-table.grep-table tfoot tr.igrep-totals-row td.is-sticky-med,.igrep-page .igrep-table.grep-table tfoot tr.igrep-totals-row td.is-sticky-total,.igrep-page .igrep-table.srep-table tfoot tr.igrep-totals-row td.is-sticky-num,.igrep-page .igrep-table.srep-table tfoot tr.igrep-totals-row td.is-sticky-batch,.igrep-page .igrep-table.srep-table tfoot tr.igrep-totals-row td.is-sticky-med,.igrep-page .igrep-table.srep-table tfoot tr.igrep-totals-row td.is-sticky-total,.igrep-table tfoot tr.igrep-totals-row td.is-sticky-num,.igrep-table tfoot tr.igrep-totals-row td.is-sticky-batch,.igrep-table tfoot tr.igrep-totals-row td.is-sticky-med,.igrep-table tfoot tr.igrep-totals-row td.is-sticky-total{z-index:6;-webkit-text-fill-color:#14532d;color:#14532d!important;background:#dcfce7!important}.igrep-table tfoot tr.igrep-totals-row td.igrep-totals-label{text-align:center;font-weight:800}.igrep-col-category,.igrep-col-medicineCode,.igrep-col-hsn,.igrep-col-batchNumber,.igrep-col-expiryDate,.igrep-col-poNumber,.igrep-col-grnNo,.igrep-col-grnDate,.igrep-col-packType{min-width:100px}.igrep-col-stockEx,.igrep-col-sale,.igrep-col-subTotal,.igrep-col-itemTotal{min-width:150px}.igrep-table th.igrep-col-itemTotal,.igrep-page .igrep-table.grep-table thead th.igrep-col-itemTotal,.igrep-page .igrep-table.srep-table thead th.igrep-col-itemTotal,.igrep-table th.igrep-col-stockEx,.igrep-page .igrep-table.grep-table thead th.igrep-col-stockEx,.igrep-page .igrep-table.srep-table thead th.igrep-col-stockEx{vertical-align:middle;white-space:normal!important;word-break:normal!important;line-height:1.25!important}.igrep-col-receive,.igrep-col-free,.igrep-col-rate,.igrep-col-mrp,.igrep-col-selling,.igrep-col-discount{min-width:120px}.igrep-table td.srep-num,.igrep-table th.igrep-col-receivePacks,.igrep-table th.igrep-col-receiveUnits,.igrep-table th.igrep-col-freePacks,.igrep-table th.igrep-col-freeUnits,.igrep-table th.igrep-col-ratePack,.igrep-table th.igrep-col-rateUnit,.igrep-table th.igrep-col-mrpPack,.igrep-table th.igrep-col-mrpUnit,.igrep-table th.igrep-col-sellingPack,.igrep-table th.igrep-col-sellingUnit,.igrep-table th.igrep-col-discountPercentage,.igrep-table th.igrep-col-discountAmount,.igrep-table th.igrep-col-stockEx,.igrep-table th.igrep-col-sale,.igrep-table th.igrep-col-tax,.igrep-table th.igrep-col-subTotal,.igrep-table th.igrep-col-itemTotal{text-align:center}.igrep-page .app-page-header-center{flex:auto;max-width:none}.igrep-page .igrep-header-filters{flex-wrap:nowrap;justify-content:flex-end;gap:8px;width:100%;max-width:none}.igrep-page .igrep-header-filters .app-page-header-search{flex:220px;min-width:180px;max-width:360px}.igrep-page .igrep-vendor-filter.filter-autocomplete,.igrep-page .igrep-date-range{flex:0 0 180px;width:180px;min-width:180px;max-width:180px}.igrep-page .igrep-date-range .vendor-date-range,.igrep-page .igrep-date-range .vendor-date-range-trigger{width:100%;max-width:180px}.igrep-page .igrep-vendor-filter .autocomplete-control{height:38px;min-height:38px}.igrep-page .igrep-columns-menu .btn{white-space:nowrap;min-height:38px}.igrep-page .igrep-table-card{z-index:0;flex-direction:column;gap:0;display:flex;position:relative}.igrep-page .igrep-table-card .pagination-redesign{margin-top:0;padding:6px 4px 2px}@media (width<=1100px){.igrep-page .igrep-header-filters{flex-wrap:wrap;justify-content:flex-start}.igrep-page .igrep-header-filters .app-page-header-search{flex:100%;max-width:none}}.bwsr-page .srep-center{text-align:center}.bwsr-page .bwsr-bill-type-filter .autocomplete-control{position:relative}.bwsr-page .bwsr-bill-type-filter .autocomplete-control input{text-align:center;padding-left:22px;padding-right:22px}.bwsr-page .bwsr-bill-type-filter .autocomplete-chevron{position:absolute;right:8px}.bwsr-bill-type-menu.autocomplete-menu .autocomplete-option{text-align:center;justify-content:center}.bwsr-bill-type-menu.autocomplete-menu .autocomplete-option-text{text-align:center;align-items:center;width:100%}.bwsr-bill-type-menu.autocomplete-menu .autocomplete-option-label{text-align:center;width:100%}.bwsr-page .igrep-table-wrap{width:100%;max-width:100%;overflow:auto}.bwsr-page table.bwsr-table.igrep-table.srep-table.grep-table,.bwsr-page table.bwsr-table{font-size:11px;table-layout:auto!important;width:max-content!important;min-width:100%!important;max-width:none!important}.bwsr-page table.bwsr-table thead th,.bwsr-page table.bwsr-table tbody td,.bwsr-page table.bwsr-table tfoot td{white-space:nowrap;text-overflow:clip;box-sizing:border-box;min-width:max-content;overflow:visible;width:auto!important;max-width:none!important;padding:6px 8px!important}.bwsr-page table.bwsr-table .igrep-col-index,.bwsr-page table.bwsr-table th.igrep-col-index,.bwsr-page table.bwsr-table td.igrep-col-index,.bwsr-page table.bwsr-table .is-sticky-num{width:auto!important;min-width:2.5rem!important;max-width:none!important;padding-left:6px!important;padding-right:6px!important}.bwsr-page table.bwsr-table td.igrep-col-patientName .app-tooltip-anchor{vertical-align:bottom;text-overflow:clip;white-space:nowrap;text-align:center;max-width:none;display:inline-block;overflow:visible}.bwsr-page table.bwsr-table th.igrep-col-discountPercentage,.bwsr-page table.bwsr-table td.igrep-col-discountPercentage,.bwsr-page table.bwsr-table th.igrep-col-cgstPercentage,.bwsr-page table.bwsr-table td.igrep-col-cgstPercentage,.bwsr-page table.bwsr-table th.igrep-col-sgstPercentage,.bwsr-page table.bwsr-table td.igrep-col-sgstPercentage,.bwsr-page table.bwsr-table th.igrep-col-igstPercentage,.bwsr-page table.bwsr-table td.igrep-col-igstPercentage{padding-left:4px!important;padding-right:4px!important}.bwsr-page table.bwsr-table th.igrep-subhead{font-size:10px;font-weight:700;padding:4px 6px!important}.bwsr-page table.bwsr-table .sh-badge{text-overflow:clip;max-width:none;padding:2px 6px;font-size:10px;overflow:visible}.sgst-page table.sgst-table td.igrep-col-pharmacy .app-tooltip-anchor{vertical-align:bottom;text-overflow:clip;white-space:nowrap;max-width:none;display:inline-block;overflow:visible}.sgst-page table.sgst-table thead th.is-sticky-date{z-index:var(--table-sticky-corner-z);-webkit-text-fill-color:#fff;position:sticky;overflow:hidden;background:var(--brand-dark)!important;color:#fff!important}.sgst-page table.sgst-table td.is-sticky-date{z-index:4;background-clip:padding-box;position:sticky;background-color:#fff!important}.sgst-page table.sgst-table.has-sticky-date .is-sticky-num{box-shadow:none;width:2.75rem!important;min-width:2.75rem!important;max-width:2.75rem!important}.sgst-page table.sgst-table.has-sticky-date .is-sticky-date{min-width:5.75rem;left:2.75rem;box-shadow:4px 0 10px -4px #0f172a2e}.sgst-page table.sgst-table tbody tr:hover td.is-sticky-date{background-color:var(--bg)!important}.sgst-page table.sgst-table tfoot tr.igrep-totals-row td.is-sticky-date{z-index:6;-webkit-text-fill-color:#14532d;color:#14532d!important;background:#dcfce7!important}.prep-page table.prep-table thead th.is-sticky-date,.prep-page table.prep-table thead th.is-sticky-vendor{z-index:var(--table-sticky-corner-z);-webkit-text-fill-color:#fff;position:sticky;overflow:hidden;background:var(--brand-dark)!important;color:#fff!important}.prep-page table.prep-table td.is-sticky-date,.prep-page table.prep-table td.is-sticky-vendor{z-index:4;background-clip:padding-box;position:sticky;background-color:#fff!important}.prep-page table.prep-table td.is-sticky-vendor{text-overflow:ellipsis;overflow:hidden}.prep-page table.prep-table td.is-sticky-vendor .app-tooltip-anchor,.prep-page table.prep-table td.is-sticky-vendor .app-tooltip-anchor span{text-overflow:ellipsis;white-space:nowrap;max-width:100%;display:block;overflow:hidden}.prep-page table.prep-table.has-sticky-date .is-sticky-num,.prep-page table.prep-table.has-sticky-vendor .is-sticky-num{box-shadow:none;width:2.75rem!important;min-width:2.75rem!important;max-width:2.75rem!important}.prep-page table.prep-table.has-sticky-date .is-sticky-date{box-shadow:none;left:2.75rem;width:9.5rem!important;min-width:9.5rem!important;max-width:9.5rem!important}.prep-page table.prep-table.has-sticky-date:not(.has-sticky-vendor) .is-sticky-date{box-shadow:4px 0 10px -4px #0f172a2e}.prep-page table.prep-table.has-sticky-vendor:not(.has-sticky-date) .is-sticky-vendor{left:2.75rem;box-shadow:4px 0 10px -4px #0f172a2e;width:12rem!important;min-width:12rem!important;max-width:12rem!important}.prep-page table.prep-table.has-sticky-date.has-sticky-vendor .is-sticky-vendor{left:12.25rem;box-shadow:4px 0 10px -4px #0f172a2e;width:12rem!important;min-width:12rem!important;max-width:12rem!important}.prep-page table.prep-table tbody tr:hover td.is-sticky-date,.prep-page table.prep-table tbody tr:hover td.is-sticky-vendor{background-color:var(--bg)!important}.prep-page table.prep-table tfoot tr.igrep-totals-row td.is-sticky-date,.prep-page table.prep-table tfoot tr.igrep-totals-row td.is-sticky-vendor{z-index:6;-webkit-text-fill-color:#14532d;color:#14532d!important;background:#dcfce7!important}.mwsr-page table.mwsr-table.igrep-table.srep-table.grep-table,.mwsr-page table.mwsr-table{table-layout:auto!important;width:max-content!important;min-width:0!important;max-width:max-content!important}.mwsr-page .igrep-table-wrap{width:100%;max-width:100%;overflow:auto}.mwsr-page table.mwsr-table thead th,.mwsr-page table.mwsr-table tbody td,.mwsr-page table.mwsr-table tfoot td{white-space:nowrap;box-sizing:border-box;width:auto;min-width:0;max-width:none;padding:8px}.mwsr-page table.mwsr-table .igrep-col-index,.mwsr-page table.mwsr-table th.igrep-col-index,.mwsr-page table.mwsr-table td.igrep-col-index,.mwsr-page table.mwsr-table .is-sticky-num{padding-left:8px;padding-right:8px;width:48px!important;min-width:48px!important;max-width:48px!important}.mwsr-page table.mwsr-table.has-sticky-batch .is-sticky-batch,.mwsr-page table.mwsr-table.has-sticky-batch th.igrep-col-batchNo,.mwsr-page table.mwsr-table.has-sticky-batch td.igrep-col-batchNo{width:110px!important;min-width:110px!important;max-width:110px!important}.mwsr-page table.mwsr-table.has-sticky-medicine .is-sticky-med,.mwsr-page table.mwsr-table.has-sticky-medicine th.igrep-col-medicineName,.mwsr-page table.mwsr-table.has-sticky-medicine td.igrep-col-medicineName{width:160px!important;min-width:160px!important;max-width:160px!important}.mwsr-page table.mwsr-table th.igrep-subhead{padding-left:6px;padding-right:6px;font-size:11px;font-weight:700}.mwsr-page table.mwsr-table th.igrep-col-cgstPercentage,.mwsr-page table.mwsr-table td.igrep-col-cgstPercentage,.mwsr-page table.mwsr-table th.igrep-col-sgstPercentage,.mwsr-page table.mwsr-table td.igrep-col-sgstPercentage,.mwsr-page table.mwsr-table th.igrep-col-igstPercentage,.mwsr-page table.mwsr-table td.igrep-col-igstPercentage{padding-left:6px;padding-right:6px}.mwsr-page table.mwsr-table td.igrep-col-medicineName,.mwsr-page table.mwsr-table th.igrep-col-medicineName,.mwsr-page table.mwsr-table td.igrep-col-manufacturer,.mwsr-page table.mwsr-table th.igrep-col-manufacturer,.mwsr-page table.mwsr-table td.igrep-col-patientName,.mwsr-page table.mwsr-table th.igrep-col-patientName{max-width:180px}.mwsr-page table.mwsr-table td.igrep-col-medicineName .app-tooltip-anchor,.mwsr-page table.mwsr-table td.igrep-col-manufacturer .app-tooltip-anchor,.mwsr-page table.mwsr-table td.igrep-col-patientName .app-tooltip-anchor{vertical-align:bottom;text-overflow:ellipsis;white-space:nowrap;text-align:center;max-width:180px;display:inline-block;overflow:hidden}.fms-page .fms-status{white-space:nowrap;border-radius:999px;align-items:center;padding:.15rem .5rem;font-size:.72rem;font-weight:600;line-height:1.2;display:inline-flex}.fms-page .fms-status-fast{color:#0f766e;background:#ccfbf1}.fms-page .fms-status-normal{color:#0369a1;background:#e0f2fe}.fms-page .fms-status-slow{color:#c2410c;background:#ffedd5}.fms-page .fms-status-non{color:#64748b;background:#f1f5f9}.fms-page tr.fms-row-fast-low td{background:#fff7ed}.fms-page tr.fms-row-fast-low td.igrep-col-movementStatus .fms-status-fast{color:#9a3412;background:#fed7aa}.fms-page table.fms-table th.igrep-col-medicineName,.fms-page table.fms-table td.igrep-col-medicineName{min-width:180px;max-width:220px}.fms-page table.fms-table th.igrep-col-avgDailySales,.fms-page table.fms-table td.igrep-col-avgDailySales,.fms-page table.fms-table th.igrep-col-daysOfStock,.fms-page table.fms-table td.igrep-col-daysOfStock,.fms-page table.fms-table th.igrep-col-openingQty,.fms-page table.fms-table td.igrep-col-openingQty,.fms-page table.fms-table th.igrep-col-purchasedQty,.fms-page table.fms-table td.igrep-col-purchasedQty,.fms-page table.fms-table th.igrep-col-netSoldQty,.fms-page table.fms-table td.igrep-col-netSoldQty,.fms-page table.fms-table th.igrep-col-closingQty,.fms-page table.fms-table td.igrep-col-closingQty,.fms-page table.fms-table th.igrep-col-index,.fms-page table.fms-table td.igrep-col-index{text-align:center}.app-shell table thead th,.app-shell table tbody td,.app-shell table tfoot th,.app-shell table tfoot td,.page-content table thead th,.page-content table tbody td,.page-content table tfoot th,.page-content table tfoot td,.modal-overlay table thead th,.modal-overlay table tbody td,.modal-overlay table tfoot th,.modal-overlay table tfoot td,.modal-dialog table thead th,.modal-dialog table tbody td,.modal-dialog table tfoot th,.modal-dialog table tfoot td,[role=dialog] table thead th,[role=dialog] table tbody td,[role=dialog] table tfoot th,[role=dialog] table tfoot td,.sm-adj-overlay table thead th,.sm-adj-overlay table tbody td,.sm-revision-overlay table thead th,.sm-revision-overlay table tbody td{vertical-align:middle;text-align:center!important}.app-shell table .num,.app-shell table .col-num,.app-shell table .amount-col,.app-shell table .amount-cell,.app-shell table .srep-num,.app-shell table .igrep-col,.app-shell table .grn-calc-value,.app-shell table .vendor-page-amount,.app-shell table .is-num,.app-shell table .is-money,.app-shell table .is-qty,.page-content table .num,.page-content table .col-num,.page-content table .amount-col,.page-content table .amount-cell,.page-content table .srep-num,.page-content table .igrep-col,.page-content table .grn-calc-value,.page-content table .vendor-page-amount,.page-content table .is-num,.page-content table .is-money,.page-content table .is-qty,.modal-overlay table .num,.modal-overlay table .col-num,.modal-overlay table .amount-col,.modal-overlay table .amount-cell,.modal-overlay table .srep-num,.modal-overlay table .igrep-col,.modal-overlay table .grn-calc-value,.modal-overlay table .vendor-page-amount,.modal-overlay table .is-num,.modal-overlay table .is-money,.modal-overlay table .is-qty,.modal-dialog table .num,.modal-dialog table .col-num,.modal-dialog table .amount-col,.modal-dialog table .amount-cell,[role=dialog] table .num,[role=dialog] table .col-num,[role=dialog] table .amount-col,[role=dialog] table .amount-cell{text-align:center!important}.app-shell table td input:not([type=checkbox]):not([type=radio]),.app-shell table td textarea,.app-shell table td select,.app-shell table td .table-input,.app-shell table td .table-input-num,.app-shell table td .ns-qty-input,.app-shell table td .number-input input,.app-shell table td .autocomplete-control input,.page-content table td input:not([type=checkbox]):not([type=radio]),.page-content table td textarea,.page-content table td select,.page-content table td .table-input,.page-content table td .table-input-num,.page-content table td .ns-qty-input,.page-content table td .number-input input,.page-content table td .autocomplete-control input,.modal-overlay table td input:not([type=checkbox]):not([type=radio]),.modal-overlay table td textarea,.modal-overlay table td select,.modal-overlay table td .table-input,.modal-overlay table td .table-input-num,.modal-overlay table td .number-input input,.modal-overlay table td .autocomplete-control input,.modal-dialog table td input:not([type=checkbox]):not([type=radio]),.modal-dialog table td textarea,.modal-dialog table td select,.modal-dialog table td .table-input,.modal-dialog table td .table-input-num,.modal-dialog table td .number-input input,.modal-dialog table td .autocomplete-control input,[role=dialog] table td input:not([type=checkbox]):not([type=radio]),[role=dialog] table td textarea,[role=dialog] table td select,[role=dialog] table td .table-input,[role=dialog] table td .table-input-num,[role=dialog] table td .number-input input,[role=dialog] table td .autocomplete-control input,.sm-adj-overlay table td input:not([type=checkbox]):not([type=radio]),.sm-adj-overlay table td textarea,.sm-adj-overlay table td select{text-align:left!important}
