/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial}}}@font-face{font-family:Cairo;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/cairo-arabic-400-normal-DN15VWMM.woff2)format("woff2"),url(/assets/cairo-arabic-400-normal-CAYwymWN.woff)format("woff");unicode-range:U+6??,U+750-77F,U+870-88E,U+890-891,U+897-8E1,U+8E3-8FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1}@font-face{font-family:Cairo;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/cairo-latin-ext-400-normal-xCL67Y2R.woff2)format("woff2"),url(/assets/cairo-latin-ext-400-normal-C_BIE9Qe.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Cairo;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/cairo-latin-400-normal-Dh7otpdh.woff2)format("woff2"),url(/assets/cairo-latin-400-normal-b1R3q6Pf.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Cairo;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/cairo-arabic-600-normal-rkrvveqO.woff2)format("woff2"),url(/assets/cairo-arabic-600-normal-B3EOalmC.woff)format("woff");unicode-range:U+6??,U+750-77F,U+870-88E,U+890-891,U+897-8E1,U+8E3-8FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1}@font-face{font-family:Cairo;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/cairo-latin-ext-600-normal-DuRnqffh.woff2)format("woff2"),url(/assets/cairo-latin-ext-600-normal-DAfLYaOC.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Cairo;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/cairo-latin-600-normal-mGS0uvCM.woff2)format("woff2"),url(/assets/cairo-latin-600-normal-buYOP1M3.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Cairo;font-style:normal;font-display:swap;font-weight:700;src:url(/assets/cairo-arabic-700-normal-D3nDedWX.woff2)format("woff2"),url(/assets/cairo-arabic-700-normal-CyOqhaeK.woff)format("woff");unicode-range:U+6??,U+750-77F,U+870-88E,U+890-891,U+897-8E1,U+8E3-8FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1}@font-face{font-family:Cairo;font-style:normal;font-display:swap;font-weight:700;src:url(/assets/cairo-latin-ext-700-normal-Cscux539.woff2)format("woff2"),url(/assets/cairo-latin-ext-700-normal-htXca11Z.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Cairo;font-style:normal;font-display:swap;font-weight:700;src:url(/assets/cairo-latin-700-normal-C3GYtKbV.woff2)format("woff2"),url(/assets/cairo-latin-700-normal-6fcUy4Rc.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Cairo;font-style:normal;font-display:swap;font-weight:800;src:url(/assets/cairo-arabic-800-normal-G1qvPr6G.woff2)format("woff2"),url(/assets/cairo-arabic-800-normal-CVTPwINa.woff)format("woff");unicode-range:U+6??,U+750-77F,U+870-88E,U+890-891,U+897-8E1,U+8E3-8FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1}@font-face{font-family:Cairo;font-style:normal;font-display:swap;font-weight:800;src:url(/assets/cairo-latin-ext-800-normal-ChnkP8hn.woff2)format("woff2"),url(/assets/cairo-latin-ext-800-normal-RObK5hVW.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Cairo;font-style:normal;font-display:swap;font-weight:800;src:url(/assets/cairo-latin-800-normal-BBdTpBXf.woff2)format("woff2"),url(/assets/cairo-latin-800-normal-ReWrxM5E.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@layer theme{:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.hidden{display:none}.rounded{border-radius:.25rem}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}}.auth-page{place-items:center;padding:32px 20px 42px;display:grid;position:relative}.auth-card{text-align:center;gap:17px;width:min(100%,420px);display:grid}.field-label{text-align:start;color:var(--body);gap:7px;font-size:13px;font-weight:700;display:grid}.field-wrap{display:block;position:relative}.text-field{border:1px solid var(--field-border);background:var(--field-background);width:100%;min-height:52px;color:var(--heading);border-radius:16px;outline:none;padding-block:12px;padding-inline:45px 15px}select.text-field{padding-inline-start:15px}.text-field:focus{border:1.5px solid var(--primary);box-shadow:0 0 0 3px var(--overlay)}.field-icon{color:var(--primary);position:absolute;inset-block-start:14px;inset-inline-start:16px}.password-wrap{position:relative}.password-toggle{width:34px;height:34px;color:var(--primary);background:0 0;border:0;position:absolute;inset-block-start:32px;inset-inline-end:11px}.field-error,.form-error{color:var(--error);text-align:start;font-size:12px;font-weight:600}.form-error{opacity:0;min-height:18px;transition:opacity .16s}.form-error.visible{opacity:1}.remember-row{align-items:center;gap:8px;font-size:13px;font-weight:700;display:flex}.remember-row input{width:17px;height:17px;accent-color:var(--primary)}.version{color:var(--muted);font-size:11px;position:absolute;inset-block-end:16px;inset-inline-start:20px}.success-beat{background:var(--page-start);z-index:4;place-content:center;justify-items:center;display:grid;position:fixed;inset:0}.success-beat span,.success-circle{background:var(--primary);width:64px;height:64px;color:var(--white);border-radius:50%;place-items:center;font-size:32px;display:grid}.success-beat p{color:var(--primary);font-weight:700}.register-page{padding:70px 20px 48px;position:relative}.register-card,.registration-success{background:var(--white);width:min(100%,620px);box-shadow:0 14px 50px var(--shadow);border-radius:22px;margin-inline:auto;padding:30px}.register-card>p,.registration-success p{text-align:center;line-height:1.8}.registration-fields{grid-template-columns:1fr 1fr;gap:16px;margin-block:24px;display:grid}.register-card .button{margin-block-start:12px}.dial-code{color:var(--primary);font-weight:600}.back-link{text-align:center;color:var(--primary);margin-block-start:16px;display:block}.registration-success{text-align:center;justify-items:center;gap:18px;display:grid}.registration-success .button{max-width:300px}.home-page{padding:24px}.home-page header{justify-content:space-between;max-width:850px;margin-inline:auto;display:flex}.home-page .language-switcher{position:static}.home-page header .button{width:auto;padding-inline:22px}.home-card{background:var(--white);text-align:center;max-width:620px;box-shadow:0 14px 50px var(--shadow);border-radius:22px;margin:70px auto 0;padding:34px}.home-card dl{text-align:start;gap:12px;display:grid}.home-card dl div{border:1px solid var(--field-border);border-radius:12px;padding:12px}.home-card dt{color:var(--primary);font-size:12px;font-weight:700}.home-card dd{color:var(--heading);margin:2px 0 0;font-weight:700}@media (width<=620px){.registration-fields{grid-template-columns:1fr}.register-card,.registration-success{padding:24px 18px}.language-switcher{inset-block-start:14px;inset-inline-end:14px}}.tenant-shell{grid-template-columns:var(--sidebar-size) minmax(0, 1fr);min-height:100vh;color:var(--text);background:#f7f9fc;display:grid}.sidebar{scrollbar-width:thin;scrollbar-color:var(--primary) var(--primary-soft);background:var(--sidebar-background);border-inline-end:1px solid var(--sidebar-border);height:100vh;box-shadow:var(--sidebar-shadow);z-index:30;flex-direction:column;display:flex;position:sticky;inset-block-start:0;overflow-y:auto}.sidebar::-webkit-scrollbar-track{background:var(--primary-soft)}.sidebar::-webkit-scrollbar-thumb{background:var(--primary)}.sidebar-brand{border-block-end:1px solid var(--border);align-items:center;gap:11px;padding:20px 18px;display:flex}.sidebar-brand img{object-fit:contain;width:48px;height:48px}.sidebar-brand div{min-width:0;display:grid}.sidebar-brand strong,.sidebar-brand span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.sidebar-brand strong{color:var(--text-strong);font-weight:900}.sidebar-brand span{color:var(--text-muted);font-size:.78rem}.sidebar-nav{gap:5px;padding:14px 12px;display:grid}.nav-item{width:100%;color:var(--text);cursor:pointer;border:0;background:0 0;border-inline-start:3px solid #0000;border-radius:7px;justify-content:space-between;align-items:center;padding:8px 9px;text-decoration:none;display:flex}.nav-content{align-items:center;gap:10px;min-width:0;display:flex}.nav-icon{width:34px;height:34px;color:var(--primary);background:var(--primary-soft);border-radius:8px;flex:0 0 34px;place-items:center;display:grid}.nav-label{text-overflow:ellipsis;white-space:nowrap;font-weight:900;overflow:hidden}.nav-item.active{color:var(--text-strong);background:var(--primary-soft);border-inline-start-color:var(--primary);box-shadow:inset 0 0 0 1px var(--primary-alpha-16)}.nav-item.active .nav-icon{color:var(--surface);background:var(--primary);box-shadow:0 8px 16px var(--primary-alpha-24)}.chevron{transition:rotate .16s}.nav-group.open .chevron{rotate:180deg}.nav-panel{gap:3px;padding-block:4px;display:grid}.nav-subitem{color:var(--subitem-text);border-radius:7px;margin-inline-start:45px;padding:8px 12px;font-size:.84rem;font-weight:900;text-decoration:none;position:relative}.nav-subitem>span{background:var(--field-border-shell);border-radius:50%;width:6px;height:6px;position:absolute;inset-block-start:50%;inset-inline-start:-12px}.nav-subitem:hover{background:var(--nav-hover)}.nav-subitem.active{color:var(--primary-strong);background:var(--nav-active-sub)}.nav-subitem.active>span{background:var(--primary)}.sidebar-user{border-block-start:1px solid var(--user-rule);gap:9px;margin-block-start:auto;padding:14px;display:grid}.user-card{border:1px solid var(--user-border);background:var(--user-surface);border-radius:8px;padding:10px 12px;display:grid}.user-card strong{font-weight:800}.user-card span{color:var(--user-role);font-size:.8rem}.sidebar-user button{border:1px solid var(--field-border-shell);width:100%;color:var(--primary-strong);background:var(--surface);cursor:pointer;border-radius:8px;justify-content:center;align-items:center;gap:8px;padding:9px;display:flex}.workspace{min-width:0;overflow-x:hidden}.shell-header{border-block-end:1px solid var(--border);background:var(--surface);align-items:center;gap:18px;min-height:76px;padding:10px 22px;display:flex}.page-copy{min-width:150px;margin-inline-end:auto}.page-copy h1{margin:0;font-size:1.25rem}.page-copy p{color:var(--text-muted);margin:1px 0 0;font-size:.78rem}.branch-scope{color:var(--text-muted);gap:2px;font-size:.72rem;display:grid}.branch-scope select{border:1px solid var(--field-border-shell);min-width:155px;color:var(--text-strong);background:var(--surface-soft);border-radius:8px;padding:6px 9px}.header-actions{align-items:center;gap:10px;display:flex}.header-actions .language-switcher{position:static}.header-user{line-height:1.3;display:grid}.header-user span{color:var(--text-muted);font-size:.72rem}.header-logout{border:1px solid var(--field-border-shell);color:var(--primary-strong);background:var(--surface);border-radius:8px;padding:8px 11px}.menu-toggle{display:none}.shell-content{min-width:0;padding:0}.content-panel{min-height:calc(100vh - 77px);box-shadow:none;background:#fff;border:1px solid #dce6f1;border-radius:0;margin:0;padding:8px}.coming-soon{text-align:center}.branch-grid{grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px;display:grid}.branch-card{border:1px solid var(--border);background:var(--surface-soft);border-radius:10px;gap:5px;padding:16px;display:grid}.branch-card span,.branch-card small{color:var(--text-muted)}.cashier-page{background:var(--shell-page);place-items:center;min-height:100vh;padding:22px;display:grid}.cashier-page .content-panel{text-align:center;max-width:520px}.sidebar-scrim{display:none}@media (width<=980px){:root{font-size:16px}.tenant-shell{display:block}.sidebar{width:min(var(--sidebar-size), 86vw);margin-inline-start:min(calc(var(--sidebar-size) * -1), -86vw);transition:margin-inline-start .18s;position:fixed;inset-block:0;inset-inline-start:0}.sidebar.mobile-open{margin-inline-start:0}.sidebar-scrim{background:var(--scrim);z-index:20;border:0;display:block;position:fixed;inset:0}.menu-toggle{border:1px solid var(--border);color:var(--primary);background:var(--surface-soft);border-radius:8px;place-items:center;padding:8px;display:grid}.shell-header{flex-wrap:wrap}.branch-scope{flex:100%;order:3}.branch-scope select{width:100%}.header-user{display:none}.shell-content{padding:0 14px 14px}}.branch-toolbar{justify-content:space-between;gap:12px;margin-block-end:18px;display:flex}.branch-list-toolbar{background:#f7fbff;border:1px solid #d5e1ef;border-radius:8px;justify-content:space-between;align-items:center;gap:14px;margin-block-end:10px;padding:4px 8px;display:flex}.branch-search{flex:1;max-width:420px;position:relative}.branch-search input{box-sizing:border-box;background:#fff;border:1px solid #cbdcec;border-radius:7px;width:100%;height:50px;padding:0 42px 0 14px}.branch-search button{color:#2775ba;cursor:pointer;background:0 0;border:0;font-size:1rem;position:absolute;inset-block-start:50%;inset-inline-end:7px;transform:translateY(-50%)}.branch-list-actions{gap:0;display:flex}.branch-list-actions button{color:#12345c;min-height:50px;font:inherit;cursor:pointer;background:#fff;border:1px solid #cbdcec;padding:0 22px;font-weight:850}.branch-refresh i{margin-inline-end:3px;font-size:.95em}.branch-list-actions .create-branch{color:#fff;background:#3679bd;border-color:#3679bd;border-radius:6px 0 0 6px}.branch-list-actions .branch-refresh{border-radius:0 6px 6px 0}.branches-table-wrap{border-color:#dce6f1;border-radius:0}.branches-table{direction:rtl;min-width:720px}.branches-table th{color:#1f344f;background:#f3f8fd;border-bottom:3px solid #2673b8;padding:6px 12px;font-size:.84rem}.branches-table td{color:#1f344f;border-bottom-color:#e2ebf4;padding:4px 12px;font-size:.84rem;font-weight:750}.branch-row-actions{flex-direction:row-reverse;align-items:center;gap:7px;display:flex}.branches-table th:last-child,.branches-table td:last-child{width:134px;min-width:134px;position:sticky;left:0}.branches-table th:last-child{z-index:2}.branches-table td:last-child{z-index:1;background:inherit}.branches-table th:nth-last-child(2),.branches-table td:nth-last-child(2){text-align:center;width:86px;min-width:86px}.branch-icon-button{color:#111827;cursor:pointer;background:#fff;border:1px solid #d8e6f3;border-radius:6px;place-items:center;width:32px;height:32px;font-size:.85rem;display:grid}.branch-icon-button i{pointer-events:none}.branch-status-switch:disabled{opacity:.55;cursor:not-allowed}.customer-form{width:min(960px,100%)}.customer-form fieldset{border:1px solid var(--border);border-radius:10px;grid-column:1/-1;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;margin:0;padding:14px 16px;display:grid}.customer-form legend{color:var(--primary-strong);padding-inline:4px;font-weight:900}.customer-form small{color:var(--text-muted);display:block}.customer-phone-warning{color:var(--primary-strong);grid-column:1/-1;margin:0;font-weight:800}.customer-filters,.statement-filters{flex-wrap:wrap;gap:10px;margin-block:12px;display:flex}.customer-filters select,.statement-filters input{border:1px solid var(--field-border-shell);background:var(--surface);border-radius:8px;min-height:38px;padding-inline:10px}.customer-balance{font-weight:900}.customer-balance.due{color:var(--error)}.customer-balance.credit{color:var(--primary-strong)}.customer-balance.settled{color:var(--text-muted)}.customer-statement{width:min(900px,100%)}.pos-devices-page .branch-toolbar h2{color:var(--text-strong);margin:0}.pos-device-form .pos-server-option{grid-column:1/-1;align-items:center;gap:8px;display:flex}.pos-device-form .pos-server-option input{width:auto}.pos-server-help{color:var(--text-muted);grid-column:1/-1;margin:0;font-weight:700}.sequence-owner{color:var(--primary-strong);margin-block-start:4px;font-weight:900;display:block}.pos-status{background:var(--primary-soft);border-radius:999px;padding:3px 8px;font-weight:900;display:inline-flex}.pos-status-active{color:var(--primary-strong)}.pos-status-pending{color:var(--subitem-text)}.pos-status-revoked,.pos-status-expired,.pairing-expired{color:var(--danger-hover)}.pairing-code-card{text-align:center}.pairing-code{color:var(--primary-strong);letter-spacing:.08em;margin-block:18px;font-size:clamp(1.5rem,6vw,2.5rem);display:block}.pairing-warning{border:1px solid var(--danger-hover);color:var(--danger-hover);border-radius:8px;padding:9px;font-weight:900}@media (width<=600px){.customer-form fieldset{grid-template-columns:1fr}}.branch-toolbar form{flex:1;gap:8px;max-width:520px;display:flex}.branch-toolbar input{border:1px solid var(--field-border-shell);border-radius:8px;flex:1;min-width:0;padding:9px 12px}.branch-toolbar button,.create-branch,.row-actions button,.branch-pagination button,.copy-company,.item-units-table button,.item-form .form-row button,.item-form .inline-add{border:1px solid var(--field-border-shell);color:var(--primary-strong);background:var(--surface-soft);cursor:pointer;border-radius:8px;padding:8px 12px}.branches-table-wrap{border:1px solid var(--border);border-radius:10px;max-width:100%;overflow-x:auto}.branches-table{border-collapse:collapse;width:100%;min-width:820px}.branches-table th,.branches-table td{text-align:start;border-block-end:1px solid var(--border);padding:12px 14px}.branches-table th{color:var(--text-strong);background:var(--primary-soft)}.row-actions{gap:6px;display:flex}.branch-pagination{justify-content:center;align-items:center;gap:12px;margin-block-start:18px;display:none}.branch-error{color:var(--danger-hover);background:var(--surface-soft);border:1px solid var(--danger-hover);border-radius:8px;padding:10px}.branch-form .branch-error{grid-column:1/-1}.modal-backdrop{z-index:50;background:var(--scrim);place-items:center;padding:18px;display:grid;position:fixed;inset:0}.branch-form,.confirm-card{border:1px solid var(--border);background:var(--surface);width:min(680px,100%);max-height:90vh;box-shadow:var(--sidebar-shadow);border-radius:12px;padding:22px;overflow-y:auto}.branch-form{scrollbar-color:#2673b8 #e7eef7;scrollbar-width:thin}.branch-form::-webkit-scrollbar{width:10px}.branch-form::-webkit-scrollbar-track{background:#e7eef7}.branch-form::-webkit-scrollbar-thumb{background:#2673b8;border:2px solid #e7eef7;border-radius:999px}.branch-form form{grid-template-columns:1fr 1fr;gap:12px;margin-block-start:14px;display:grid}.branch-form label{gap:5px;font-weight:700;display:grid}.branch-form input,.branch-form select{border:1px solid var(--field-border-shell);border-radius:8px;padding:9px 11px}.branch-entry-modal{color:#0f2e52;direction:rtl;border-color:#c8d5e5;border-radius:9px;width:min(1180px,100%);padding:0}.branch-form.branch-entry-modal.branch-details-modal{scrollbar-gutter:stable;overflow:hidden auto}.branch-details-modal>.branch-entry-head{z-index:3;background:#eaf3fb;position:sticky;top:0}.branch-entry-modal.branch-details-modal>form{max-height:none;overflow:visible}.branch-entry-head h2{margin:0;font-size:1.08rem;font-weight:900}.branch-entry-action{color:#2673b8;width:fit-content;font:inherit;cursor:pointer;background:0 0;border:0;padding:6px 0;font-weight:900}.branch-entry-head>:first-child{justify-self:start}.branch-entry-head>:last-child{justify-self:end}.branch-entry-modal form{grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:0;display:grid}.branch-entry-section{color:#0f2e52;background:#fff;border-bottom:2px solid #2673b8;grid-column:1/-1;align-items:center;min-height:40px;padding-inline:20px;font-weight:950;display:flex}.branch-entry-field{border-bottom:1px solid #d8e2ec;border-inline-start:1px solid #e1e8f1;grid-template-columns:minmax(90px,.8fr) minmax(120px,1.25fr);align-items:center;gap:12px;min-height:64px;padding:10px 18px;font-size:.9rem;font-weight:850!important;display:grid!important}.branch-entry-field input,.branch-entry-field textarea{box-sizing:border-box;color:#17365d;width:100%;font:inherit;background:#edf4ff;border:1px solid #c8daf1;border-radius:9px;padding:11px 13px;font-weight:750}.branch-entry-field textarea{resize:vertical;min-height:42px}.branch-field-error{color:#c0362c;grid-column:2;font-size:.78rem;font-weight:600}.user-entry-modal .field{border-bottom:1px solid #d8e2ec;border-inline-start:1px solid #e1e8f1;grid-template-columns:minmax(90px,.8fr) minmax(120px,1.25fr);align-items:center;gap:12px;min-height:64px;padding:10px 18px;font-size:.9rem;font-weight:850;display:grid}.user-entry-modal .field input,.user-entry-modal .field select{box-sizing:border-box;color:#17365d;width:100%;font:inherit;background:#edf4ff;border:1px solid #c8daf1;border-radius:9px;padding:11px 13px;font-weight:750}.user-entry-modal .field.wide{grid-column:1/-1}.user-entry-modal .branch-picker{border:0;background:#fff;border-bottom:1px solid #d8e2ec;border-radius:0;grid-column:1/-1;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:0;padding:0;display:grid}.user-entry-modal .branch-picker legend{box-sizing:border-box;color:#0f2e52;border-bottom:2px solid #2673b8;grid-column:1/-1;width:100%;padding:10px 20px;font-weight:900}.user-entry-modal .branch-picker .branch-option{color:#17365d;border-inline-start:1px solid #e1e8f1;align-items:center;gap:8px;min-height:56px;padding:0 18px;font-size:.88rem;font-weight:750;display:inline-flex}.user-entry-modal .branch-picker .branch-option input{accent-color:#2673b8;width:auto}.user-entry-modal .branch-picker>small{grid-column:1/-1;padding:8px 18px}.master-entry-modal form>label{border-bottom:1px solid #d8e2ec;border-inline-start:1px solid #e1e8f1;grid-template-columns:minmax(90px,.8fr) minmax(120px,1.25fr);align-items:center;gap:12px;min-height:64px;padding:10px 18px;font-size:.9rem;font-weight:850;display:grid}.master-entry-modal form>label input:not([type=checkbox]):not([type=radio]),.master-entry-modal form>label select{box-sizing:border-box;color:#17365d;width:100%;font:inherit;background:#edf4ff;border:1px solid #c8daf1;border-radius:9px;padding:11px 13px;font-weight:750}.master-entry-modal form>.checkbox-field{grid-template-columns:none;justify-content:flex-start;gap:8px;display:inline-flex}.master-entry-modal form>fieldset{border:0;border-bottom:2px solid #2673b8;flex-wrap:wrap;grid-column:1/-1;align-items:center;gap:12px 28px;margin:0;padding:12px 18px;display:flex}.master-entry-modal form>fieldset label{align-items:center;gap:7px;display:inline-flex}.user-entry-modal .field small{grid-column:2}.form-actions{grid-column:1/-1;gap:9px;display:flex}.form-actions .button{height:44px}.confirm-card{max-width:430px}.confirm-card .form-actions{margin-block-start:18px}@media (width<=620px){.branch-toolbar{flex-direction:column;align-items:stretch}.branch-toolbar form{max-width:none}.branch-form form{grid-template-columns:1fr}}.national-address{border:1px solid var(--border);border-radius:10px;grid-column:1/-1;grid-template-columns:repeat(3,1fr);gap:12px;padding:14px;display:grid}.national-address legend{color:var(--primary-strong);font-weight:900}.company-code{border:1px solid var(--sidebar-border);background:var(--primary-soft);border-radius:10px;justify-content:space-between;align-items:center;gap:14px;margin-block-end:18px;padding:14px 18px;display:flex}.company-code strong,.company-code-value{color:var(--primary-strong);letter-spacing:.18em;direction:ltr;font-size:1.6rem}@media (width<=620px){.national-address{grid-template-columns:1fr}}.organization-page form{gap:18px;max-width:900px;display:grid}.organization-page h2{color:var(--heading);margin:0;font-size:1.05rem}.field-grid{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px;display:grid}.field-grid .field.wide{grid-column:1/-1}.field-grid .field{color:var(--body);gap:6px;font-size:.86rem;font-weight:700;display:grid}.field-grid .field input{border:1px solid var(--field-border);background:var(--field-background);border-radius:10px;padding:10px 12px}.field-grid .field input:read-only{background:var(--page-end)}.logo-field{flex-wrap:wrap;align-items:center;gap:18px;display:flex}.logo-preview{border:1px dashed var(--field-border);background:var(--field-background);width:120px;height:120px;color:var(--muted);border-radius:12px;place-items:center;font-size:.8rem;display:grid;overflow:hidden}.logo-preview img{object-fit:contain;width:100%;height:100%;display:block}.category-thumbnail{object-fit:cover;border-radius:8px;block-size:48px;inline-size:48px}.logo-actions{gap:8px;font-size:.82rem;display:grid}.branch-logo{gap:8px;margin-block-end:14px;display:grid}.branch-logo h3{margin:0;font-size:.95rem}.muted-note,.save-ok{margin:0;font-size:.82rem}.muted-note{color:var(--muted)}.save-ok{color:#166534;font-weight:700}.branch-picker{border:1px solid var(--field-border);border-radius:10px;flex-wrap:wrap;gap:12px;padding:10px 12px;display:flex}.branch-picker legend{padding-inline:4px;font-size:.86rem;font-weight:700}.branch-option{align-items:center;gap:6px;font-size:.86rem;font-weight:600;display:inline-flex}.field select{border:1px solid var(--field-border);background:var(--field-background);border-radius:10px;padding:10px 12px}.field small{color:var(--muted);font-size:.76rem;font-weight:600}.pin-cell{border:1px solid var(--field-border);background:var(--field-background);cursor:pointer;border-radius:8px;align-items:center;gap:8px;padding:5px 9px;display:inline-flex}.pin-value{letter-spacing:2px;color:var(--primary-strong,#0f4e88);font-weight:800}.pin-masked{letter-spacing:3px;color:var(--muted)}.pin-cell small{color:var(--primary);font-weight:700}.form-problem{grid-column:1/-1;margin:0}.secret-cell-wrap{gap:4px;display:grid}.secret-problem{color:var(--error);max-width:220px;font-weight:600;display:block}.badge-pending,.badge-rejected{gap:2px;font-size:.82rem;font-weight:700;display:grid}.badge-pending{color:#92400e}.badge-rejected{color:var(--error)}.badge-rejected small{color:var(--muted);max-width:200px;font-weight:600}.item-form{width:min(1040px,100%)}.item-form fieldset{border:1px solid var(--border);border-radius:10px;grid-column:1/-1;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;margin:0;padding:14px 16px;display:grid}.item-form legend{color:var(--primary-strong);padding-inline:4px;font-weight:900}.item-units-table{border-collapse:collapse;width:100%;min-width:760px}.item-units-table th,.item-units-table td{text-align:start;padding:8px 10px}.item-units-table th{background:var(--primary-soft);color:var(--text-strong)}.item-units-table input,.item-units-table select{width:100%}.item-form .form-row{grid-column:1/-1;grid-template-columns:minmax(240px,2fr) minmax(140px,1fr) minmax(180px,1fr) auto;align-items:end;gap:10px;width:100%;display:grid}.item-form .inline-add{grid-column:1/-1;justify-self:start;width:auto}:is(.item-form,.stock-form,.sales-form) .inline-add{border-color:var(--primary);background:var(--primary);color:#fff;font-weight:800}:is(.item-form,.stock-form,.sales-form) .inline-add:hover{border-color:var(--primary-strong);background:var(--primary-strong)}:is(.item-form,.category-form,.stock-form,.sales-form) .modal-remove-action{color:var(--error);background:#fff5f5;border-color:#efb9b9;font-weight:800}:is(.item-form,.category-form,.stock-form,.sales-form) .modal-remove-action:hover{border-color:var(--error);background:var(--error);color:#fff}.item-form .branch-picker{flex-wrap:wrap;align-items:center;display:flex}.item-form .branch-option{align-items:center;display:inline-flex}.item-form .branch-picker>div input:not([type=checkbox]){width:120px}.item-units-wrap{grid-column:1/-1}.item-unit-warning{border:1px solid var(--field-border-shell);color:var(--primary-strong);background:var(--primary-soft);border-radius:8px;grid-column:1/-1;margin:0;padding:8px 10px;font-weight:700}.factor-expression{white-space:nowrap}.factor-expression input{width:76px;margin-inline:6px}.factor-output output{min-width:52px;margin-inline:6px;font-weight:800;display:inline-block}.stock-page{overflow-x:hidden}.stock-filters,.stock-adjustment-toolbar,.stock-actions,.stock-summary{flex-wrap:wrap;align-items:end;gap:10px;margin-block:12px;display:flex}.stock-filters input,.stock-filters select,.stock-adjustment-toolbar select{border:1px solid var(--field-border);background:var(--surface);min-width:150px;color:var(--text);border-radius:8px;padding:9px 11px}.stock-table{cursor:pointer}.status-badge{background:var(--primary-soft);color:var(--primary-strong);border-radius:999px;padding:3px 8px;font-weight:900;display:inline-flex}.status-cancelled,.status-closed_short{color:var(--danger-hover)}.stock-form fieldset,.stock-note{grid-column:1/-1}.stock-note textarea,.stock-confirm textarea{width:100%;min-height:70px}.stock-lines-wrap{grid-column:1/-1;width:100%}.stock-lines-table{border-collapse:collapse;width:100%;min-width:720px}.stock-lines-table th,.stock-lines-table td{text-align:start;border-block-end:1px solid var(--border);padding:8px 10px}.stock-lines-table th{background:var(--primary-soft);color:var(--text-strong)}.stock-lines-table input,.stock-lines-table select{width:100%;min-width:110px}.stock-form .inline-add{grid-column:1/-1;justify-self:start;width:auto}.stock-confirm{border:1px solid var(--border);background:var(--surface);width:min(520px,100%);box-shadow:var(--sidebar-shadow);border-radius:10px;padding:18px}.stock-incoming-panel{border-block-start:1px solid var(--border);margin-block-start:18px;padding-block-start:14px}.stock-incoming{gap:8px;display:grid}.stock-incoming button{justify-content:space-between;gap:12px;display:flex}.stock-positive{color:var(--primary-strong);font-weight:900}.stock-negative{color:var(--danger-hover);font-weight:900}.stock-count-hint{color:var(--text-muted)}.stock-unit-counts{grid-template-columns:1fr;gap:8px;min-width:280px;display:grid}.stock-unit-counts label{align-items:center;gap:8px;display:flex}.stock-unit-counts input{border:1px solid var(--field-border-shell);background:var(--surface);width:92px;min-width:92px;color:var(--text);border-radius:8px;padding:9px 11px}.stock-unit-counts span{color:var(--text-muted);white-space:nowrap}.stock-quantity-display,.stock-warehouse-quantity{display:block}.stock-quantity-display small{color:var(--text-muted);display:block}.stock-ledger{width:min(1100px,100%)}.sales-page{overflow-x:hidden}.sales-filters{margin-block-end:12px}.pos-sales-tabs{border:1px solid var(--field-border-shell);background:var(--surface-soft);border-radius:10px;gap:4px;margin-block-end:12px;padding:4px;display:inline-flex}.pos-sales-tabs button,.sales-detail-actions button{width:auto;color:var(--primary-strong);cursor:pointer;background:0 0;border:0;border-radius:7px;padding:8px 14px}.pos-sales-tabs button.active{color:var(--white);background:var(--primary)}.sales-filters select{border:1px solid var(--field-border-shell);background:var(--surface);border-radius:8px;min-width:180px;padding:9px 11px}.sales-list tbody tr{cursor:pointer}.sales-form{width:min(1180px,100%)}.sales-form>header,.sales-document-actions,.sales-customer-credit{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.sales-form fieldset,.sales-totals{border:1px solid var(--border);border-radius:10px;grid-column:1/-1;margin:0;padding:14px 16px}.sales-form fieldset{grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;display:grid}.sales-form legend{color:var(--primary-strong);padding-inline:4px;font-weight:900}.sales-table-wrap{grid-column:1/-1;width:100%;overflow-x:auto}.sales-lines-table{border-collapse:collapse;width:100%;min-width:980px}.sales-lines-table th,.sales-lines-table td{text-align:start;border-block-end:1px solid var(--border);padding:8px}.sales-lines-table th{background:var(--primary-soft)}.sales-lines-table input,.sales-lines-table select,.sales-form textarea,.sales-totals input{border:1px solid var(--field-border-shell);background:var(--surface);border-radius:8px;width:100%;padding:8px 9px}.sales-lines-table td:nth-child(5){gap:5px;display:grid}.sales-note,.sales-customer-credit,.sales-lines .inline-add{grid-column:1/-1}.sales-note textarea{min-height:70px}.sales-customer-credit{background:var(--primary-soft);border-radius:8px;padding:10px}.sales-totals{background:var(--surface);box-shadow:var(--sidebar-shadow);position:sticky;inset-block-end:0}.sales-discounts{grid-template-columns:repeat(2,minmax(160px,240px));gap:10px;display:grid}.sales-totals dl{gap:7px;margin:12px 0 0;display:grid}.sales-totals dl div{justify-content:space-between;gap:20px;display:flex}.sales-totals dd{margin:0;font-size:1.2rem;font-weight:900}.sales-grand-total{border-block-start:2px solid var(--primary);color:var(--primary-strong);padding-block-start:8px;font-size:1.25rem}.sales-document-actions{margin-block-start:12px}.sales-detail-actions{justify-content:flex-end}.status-expired{color:var(--danger-hover)}@media (width<=600px){.stock-filters>*,.stock-adjustment-toolbar>*{width:100%}.stock-lines-table{min-width:620px}.sales-form fieldset,.sales-discounts{grid-template-columns:1fr}}:root{--shell-page:#f3f6fb;--shell-tint-blue:#d9eefe;--shell-tint-green:#d8f7ef;--sidebar-background:#f8fbff;--sidebar-border:#cfe0f0;--sidebar-shadow:0 18px 42px -30px #1f344f80;--primary-strong:#0f4e88;--primary-soft:#eaf3fb;--text:#1d2a3a;--text-strong:#102338;--text-muted:#6b7280;--border:#dbe5f1;--field-border-shell:#c7d6e8;--surface:#fff;--surface-soft:#f8fbff;--nav-hover:#eef6ff;--nav-hover-text:#1f5f99;--nav-active-sub:#dceeff;--user-rule:#dce6f1;--user-surface:#f3f8fd;--user-border:#d7e6f5;--user-role:#6f829c;--subitem-text:#385673;--scrim:#10233861;--danger-hover:#ef4444;--primary-alpha-16:#2673b829;--primary-alpha-24:#2673b83d;--sidebar-size:300px;--page-start:#f8fbfe;--page-end:#f0f4fa;--primary:#2673b8;--heading:#243043;--body:#34445b;--field-border:#d9e2ec;--field-background:#fff;--error:#d84e4e;--muted:#c0c7d3;--control-border:#dce4ee;--white:#fff;--overlay:#226bb21f;--shadow:#24304314;color:var(--body);background:var(--page-end);font-family:Cairo,sans-serif;font-size:13.8px}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;margin:0}button,input,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}.auth-page,.register-page,.home-page,.app-loading{background:linear-gradient(to bottom, var(--page-start), var(--page-end));min-height:100vh}.language-switcher{border:1px solid var(--control-border);color:var(--primary);background:var(--white);border-radius:18px;align-items:center;gap:7px;padding:7px 12px;font-size:13px;font-weight:900;display:inline-flex;position:absolute;inset-block-start:22px;inset-inline-end:24px}.button{cursor:pointer;border-radius:16px;place-items:center;width:100%;font-weight:700;text-decoration:none;transition:transform .12s,opacity .12s;display:grid}.button:active{transform:scale(.99)}.button:disabled{opacity:.6;cursor:not-allowed}.button.primary{background:var(--primary);height:54px;color:var(--white);border:0;font-size:16px}.button.secondary{border:1px solid var(--primary);height:50px;color:var(--primary);background:0 0;font-size:15px}.brand-logo{object-fit:contain;margin-inline:auto;display:block}h1{color:var(--heading);margin:0 0 8px;font-size:28px;font-weight:800}.page-subtitle{color:var(--body);text-align:center;margin:0;font-size:16px;font-weight:700}.app-loading{color:var(--primary);place-items:center;font-weight:700;display:grid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}:root{font-family:Cairo,sans-serif;font-size:13.8px}.purchase-import-toolbar-button{border:1px solid var(--crm-primary,#3f78bd);min-height:46px;color:var(--crm-primary,#3f78bd);font:inherit;cursor:pointer;background:#fff;border-radius:8px;padding:0 18px;font-weight:700}.purchase-import-toolbar-button:hover{background:var(--crm-primary,#3f78bd);color:#fff}.purchase-import-toolbar-button i{margin-inline-end:8px}.purchase-import-backdrop{z-index:1300}.purchase-import-modal{width:min(1240px,100vw - 48px);height:min(860px,100vh - 40px);overflow:hidden}.purchase-import-upload{text-align:center;background:#f8fbff;border:1px dashed #a9c8ee;border-radius:12px;flex-direction:column;justify-content:center;align-items:center;gap:14px;min-height:430px;margin:22px;display:flex}.purchase-import-upload>i{color:#3f78bd;font-size:54px}.purchase-import-upload h3,.purchase-import-upload p{margin:0}.purchase-import-upload p{color:#677991}.purchase-import-file{color:#24456e;cursor:pointer;background:#fff;border:1px solid #c6d9f0;border-radius:8px;place-items:center;width:min(520px,100% - 32px);min-height:52px;font-weight:700;display:grid}.purchase-import-file input{opacity:0;width:1px;height:1px;position:absolute}.purchase-import-review{height:calc(100% - 74px);padding:18px 22px 22px;overflow:auto}.purchase-import-summary{background:#fff;border:1px solid #d3e1f1;border-radius:10px;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:14px;display:grid}.purchase-import-summary label{color:#1d3658;gap:7px;font-weight:700;display:grid}.purchase-import-summary input,.purchase-import-summary select,.purchase-import-lines input,.purchase-import-lines select{color:#183052;width:100%;min-height:44px;font:inherit;background:#eef4fc;border:1px solid #b9d1ee;border-radius:7px;padding:7px 10px}.purchase-import-alerts{margin:12px 0}.purchase-import-alerts p,.purchase-import-error{border-radius:7px;margin:7px 0;padding:10px 14px;font-weight:700}.purchase-import-alerts .is-warning{color:#8b6200;background:#fff7df}.purchase-import-alerts .is-danger,.purchase-import-error{color:#b52e2e;background:#fff0f0}.purchase-import-alerts .is-progress{color:#2366ad;background:#eaf3ff}.purchase-import-alerts .is-success{color:#147447;background:#e8f7ef}.purchase-import-lines{margin-top:12px}.purchase-import-lines td:first-child strong,.purchase-import-lines td:first-child small{display:block}.purchase-import-lines td:first-child small{color:#788aa1}.purchase-import-lines tr.purchase-import-not_found{background:#fff8f8}.purchase-import-lines tr.purchase-import-review{background:#fffdf5}.purchase-import-status{white-space:nowrap;border-radius:99px;padding:5px 9px;font-size:12px;font-weight:800;display:inline-flex}.purchase-import-status.matched{color:#147447;background:#e8f7ef}.purchase-import-status.review{color:#916300;background:#fff3d2}.purchase-import-status.not_found{color:#ae2929;background:#ffe6e6}.purchase-import-totals{border:1px solid #d3e1f1;border-radius:9px;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:14px;display:grid;overflow:hidden}.purchase-import-totals div{background:#fff;justify-content:space-between;padding:13px 16px;display:flex}.purchase-import-totals div+div{border-inline-start:1px solid #d3e1f1}.purchase-import-actions{justify-content:flex-end;gap:10px;margin-top:15px;display:flex}.purchase-import-actions>.button{flex:1 1 0;min-height:48px}.purchase-import-repair-button{color:#fff;background:#286eb8;border-color:#286eb8}@media (width<=850px){.purchase-import-modal{width:calc(100vw - 16px);height:calc(100vh - 16px)}.purchase-import-summary,.purchase-import-totals{grid-template-columns:1fr}.purchase-import-totals div+div{border-inline-start:0;border-top:1px solid #d3e1f1}}.content-panel.dashboard-panel.erp-dashboard{--dashboard-blue:#2673b8;--dashboard-ink:#102338;--dashboard-muted:#607893;--dashboard-line:#d9e4ef;background:#eef3f9;border:0;border-radius:0;height:calc(100vh - 90px);min-height:calc(100vh - 90px);padding:0;font-family:Cairo,sans-serif;overflow:hidden}.erp-dashboard-view{flex-direction:column;gap:8px;height:100%;min-height:0;padding:8px 0 0;display:flex;overflow:hidden}.erp-dashboard-datebar{border:1px solid var(--dashboard-line);background:#fff;border-radius:8px;justify-content:space-between;align-items:center;gap:14px;min-height:48px;padding:0 14px;display:flex}.erp-dashboard-datebar>div{gap:1px;min-width:0;display:grid}.erp-dashboard-datebar strong{color:var(--dashboard-ink);text-overflow:ellipsis;white-space:nowrap;font-size:.84rem;font-weight:950;overflow:hidden}.erp-dashboard-datebar span{color:var(--dashboard-muted);font-size:.67rem;font-weight:800}.erp-dashboard-datebar button{border:1px solid var(--dashboard-blue);background:var(--dashboard-blue);color:#fff;cursor:pointer;border-radius:7px;justify-content:center;align-items:center;gap:7px;height:34px;padding:0 13px;font-family:inherit;font-size:.72rem;font-weight:950;display:inline-flex}.erp-dashboard-datebar button:hover{background:#1f5f99}.erp-dashboard-datebar button:disabled{cursor:wait;opacity:.7}.erp-dashboard-datebar button:disabled i{animation:.8s linear infinite erp-dashboard-spin}@keyframes erp-dashboard-spin{to{transform:rotate(360deg)}}.erp-dashboard-error{color:#b42332;background:#fff1f2;border:1px solid #fecaca;border-radius:7px;margin:0;padding:7px 12px;font-size:.72rem;font-weight:900}.erp-dashboard-grid{flex:auto;grid-template-rows:repeat(2,minmax(0,1fr));grid-template-columns:minmax(225px,1fr) minmax(225px,1fr) minmax(285px,1.08fr);grid-template-areas:"sales profile documents""stock actions documents";gap:8px;min-height:0;display:grid}.erp-dashboard-card{border:1px solid var(--dashboard-line);scrollbar-width:none;background:#fff;border-radius:8px;flex-direction:column;min-width:0;min-height:0;display:flex;overflow:auto}.erp-dashboard-card::-webkit-scrollbar{width:0;height:0;display:none}.erp-dashboard-documents-list::-webkit-scrollbar{width:0;height:0;display:none}.erp-dashboard-sales-card{grid-area:sales}.erp-dashboard-profile-card{grid-area:profile}.erp-dashboard-documents-card{grid-area:documents}.erp-dashboard-stock-card{grid-area:stock}.erp-dashboard-actions-card{grid-area:actions}.erp-dashboard-card-head{background:#fff;border-bottom:1px solid #e6edf5;flex:0 0 48px;justify-content:space-between;align-items:center;gap:10px;min-height:48px;padding:0 14px;display:flex}.erp-dashboard-card-head h2{color:var(--dashboard-ink);align-items:center;gap:8px;margin:0;font-size:.92rem;font-weight:950;display:inline-flex}.erp-dashboard-card-head h2 i{color:var(--dashboard-blue);font-size:.88rem}.erp-dashboard-card-head>a{color:#6b7f97;background:#fff;border:1px solid #dce6f1;border-radius:7px;justify-content:center;align-items:center;min-width:64px;height:28px;padding:0 10px;font-size:.66rem;font-weight:900;text-decoration:none;display:inline-flex}.erp-dashboard-card-head>a:hover{color:var(--dashboard-blue);background:#eaf3fb;border-color:#b9d7f4}.erp-dashboard-gauge{justify-content:center;align-items:flex-end;height:116px;margin:8px 12px 0;display:flex;position:relative}.erp-dashboard-gauge-arc{border-radius:166px 166px 0 0;width:166px;height:84px;position:absolute;bottom:7px}.erp-dashboard-gauge-center{z-index:1;justify-items:center;display:grid;position:relative;bottom:13px}.erp-dashboard-gauge-center strong{max-width:190px;color:var(--dashboard-ink);text-overflow:ellipsis;white-space:nowrap;font-size:1.18rem;font-weight:950;line-height:1.2;overflow:hidden}.erp-dashboard-gauge-center span{color:var(--dashboard-muted);margin-top:4px;font-size:.65rem;font-weight:900}.erp-dashboard-status-list{padding:0 12px 10px;display:grid}.erp-dashboard-status-row{border-top:1px solid #eef3f8;grid-template-columns:12px minmax(0,1fr) auto;align-items:center;gap:8px;min-height:34px;display:grid}.erp-dashboard-status-row>span{background:#2673b8;border-radius:50%;width:8px;height:8px}.erp-dashboard-status-row.is-green>span{background:#31c97a}.erp-dashboard-status-row.is-yellow>span{background:#ffbd35}.erp-dashboard-status-row.is-red>span{background:#ff4f58}.erp-dashboard-status-row strong{color:#33465c;text-overflow:ellipsis;white-space:nowrap;font-size:.7rem;font-weight:900;overflow:hidden}.erp-dashboard-status-row em{color:#2673b8;background:#eaf3fb;border-radius:999px;justify-content:center;align-items:center;min-width:42px;height:20px;padding:0 8px;font-size:.64rem;font-style:normal;font-weight:950;display:inline-flex}.erp-dashboard-status-row.is-green em{color:#178346;background:#dcf8e8}.erp-dashboard-status-row.is-yellow em{color:#9c7516;background:#fff2cd}.erp-dashboard-status-row.is-red em{color:#c63741;background:#ffe2e4}.erp-dashboard-live{color:#178346;background:#dcf8e8;border-radius:999px;align-items:center;height:22px;padding:0 9px;font-size:.62rem;font-weight:950;display:inline-flex}.erp-dashboard-organization,.erp-dashboard-profile-info,.erp-dashboard-modules,.erp-dashboard-period,.erp-dashboard-description{margin-inline:14px}.erp-dashboard-organization{grid-template-columns:38px minmax(0,1fr);align-items:center;gap:9px;margin-top:12px;display:grid}.erp-dashboard-brand-mark{color:#2673b8;background:#eaf3fb;border-radius:8px;justify-content:center;align-items:center;width:36px;height:36px;font-size:1rem;display:inline-flex}.erp-dashboard-organization small,.erp-dashboard-profile-info small,.erp-dashboard-modules small,.erp-dashboard-period small{color:var(--dashboard-muted);margin-bottom:3px;font-size:.62rem;font-weight:850;display:block}.erp-dashboard-organization strong{color:var(--dashboard-ink);text-overflow:ellipsis;white-space:nowrap;font-size:.8rem;font-weight:950;display:block;overflow:hidden}.erp-dashboard-profile-info{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px;display:grid}.erp-dashboard-profile-info span,.erp-dashboard-period strong{color:#33465c;align-items:center;gap:6px;font-size:.7rem;font-weight:900;display:inline-flex}.erp-dashboard-profile-info i,.erp-dashboard-period i{color:var(--dashboard-blue)}.erp-dashboard-modules,.erp-dashboard-period{margin-top:11px}.erp-dashboard-modules>div{align-items:center;display:flex}.erp-dashboard-modules span{color:#2673b8;background:#eaf3fb;border:2px solid #fff;border-radius:50%;justify-content:center;align-items:center;width:26px;height:26px;margin-inline-start:-5px;font-size:.52rem;font-weight:950;display:inline-flex}.erp-dashboard-modules span:first-child{color:#a05716;background:#ffe5c4;margin-inline-start:0}.erp-dashboard-modules span:nth-child(2){color:#147e49;background:#dff7eb}.erp-dashboard-description{color:#526b87;align-items:flex-start;gap:7px;margin-top:10px;margin-bottom:10px;font-size:.68rem;font-weight:850;line-height:1.6;display:flex}.erp-dashboard-description i{color:#2673b8;margin-top:3px}.erp-dashboard-document-tabs{border-bottom:1px solid #e6edf5;grid-template-columns:repeat(3,1fr);min-height:42px;margin:10px 14px 8px;display:grid}.erp-dashboard-document-tabs span{color:#6b7f97;justify-content:center;align-items:center;gap:5px;font-size:.65rem;font-weight:900;display:inline-flex;position:relative}.erp-dashboard-document-tabs span.is-active{color:#2673b8}.erp-dashboard-document-tabs span.is-active:after{content:"";inset-inline:0;background:#2673b8;height:2px;position:absolute;bottom:-1px}.erp-dashboard-documents-list{scrollbar-width:none;flex:auto;align-content:start;gap:9px;min-height:0;padding:0 14px 14px;display:grid;overflow:auto}.erp-dashboard-document{min-height:78px;color:inherit;background:#d7e5ff;border-radius:9px;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:9px;padding:11px;text-decoration:none;display:grid}.erp-dashboard-document.is-quotation{background:#fff1d6}.erp-dashboard-document.is-return{background:#ffe2e4}.erp-dashboard-document:hover{filter:saturate(1.1)brightness(.98)}.erp-dashboard-document-icon{color:#2673b8;background:#ffffffd1;border-radius:50%;justify-content:center;align-items:center;width:32px;height:32px;display:inline-flex}.erp-dashboard-document>div{min-width:0}.erp-dashboard-document strong,.erp-dashboard-document small{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.erp-dashboard-document strong{color:var(--dashboard-ink);font-size:.73rem;font-weight:950}.erp-dashboard-document small,.erp-dashboard-document-meta em{color:#526b87;margin-top:3px;font-size:.62rem;font-style:normal;font-weight:850}.erp-dashboard-document-meta{justify-items:end;gap:5px;display:grid}.erp-dashboard-document-meta b{color:#315da8;border:1px solid;border-radius:999px;justify-content:center;align-items:center;min-width:54px;height:19px;padding:0 7px;font-size:.55rem;font-weight:950;display:inline-flex}.erp-dashboard-empty{color:var(--dashboard-muted);text-align:center;margin:40px 0;font-size:.72rem;font-weight:850}.erp-dashboard-tracker{gap:7px;padding:10px 14px 14px;display:grid}.erp-dashboard-tracker>small{color:var(--dashboard-muted);font-size:.64rem;font-weight:900}.erp-dashboard-tracker-row{grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:9px;min-height:39px;display:grid}.erp-dashboard-tracker-row>span,.erp-dashboard-actions-list>a>span{color:#2673b8;background:#eaf3fb;border-radius:50%;justify-content:center;align-items:center;width:32px;height:32px;font-size:.72rem;display:inline-flex}.erp-dashboard-tracker-row>span.is-green,.erp-dashboard-actions-list>a>span.is-green{color:#178346;background:#dcf8e8}.erp-dashboard-tracker-row>span.is-red{color:#c63741;background:#ffe2e4}.erp-dashboard-tracker-row>span.is-yellow,.erp-dashboard-actions-list>a>span.is-yellow{color:#9c7516;background:#fff2cd}.erp-dashboard-tracker-row strong,.erp-dashboard-actions-list strong{color:var(--dashboard-ink);text-overflow:ellipsis;white-space:nowrap;font-size:.7rem;font-weight:950;display:block;overflow:hidden}.erp-dashboard-tracker-row p,.erp-dashboard-actions-list p{color:var(--dashboard-muted);text-overflow:ellipsis;white-space:nowrap;margin:1px 0 0;font-size:.59rem;font-weight:800;overflow:hidden}.erp-dashboard-tracker-row em{color:#2673b8;background:#eaf3fb;border-radius:999px;justify-content:center;align-items:center;min-width:38px;height:20px;padding:0 7px;font-size:.62rem;font-style:normal;font-weight:950;display:inline-flex}.erp-dashboard-actions-list{padding:3px 14px 8px;display:grid}.erp-dashboard-actions-list>a{min-height:63px;color:inherit;border-bottom:1px solid #eef3f8;grid-template-columns:34px minmax(0,1fr);align-items:start;gap:9px;padding:9px 0;text-decoration:none;display:grid}.erp-dashboard-actions-list>a:last-child{border-bottom:0}.erp-dashboard-actions-list>a:hover strong{color:#2673b8}.erp-dashboard-actions-list em{color:#2673b8;background:#eaf3fb;border-radius:999px;width:max-content;margin-top:5px;padding:2px 7px;font-size:.56rem;font-style:normal;font-weight:900;display:inline-flex}@media (width<=1180px){.content-panel.dashboard-panel.erp-dashboard{height:auto;min-height:calc(100vh - 90px);overflow:visible}.erp-dashboard-view{overflow:visible}.erp-dashboard-grid{grid-template-rows:none;grid-template-columns:repeat(2,minmax(300px,1fr));grid-template-areas:"sales profile""documents documents""stock actions"}.erp-dashboard-documents-card{min-height:430px}}@media (width<=720px){.erp-dashboard-datebar{margin-inline:0}.erp-dashboard-datebar strong{font-size:.74rem}.erp-dashboard-datebar button{padding-inline:10px}.erp-dashboard-grid{scroll-snap-type:x mandatory;grid-template:minmax(0,1fr)/none;grid-auto-columns:minmax(300px,88vw);grid-auto-flow:column;display:grid;overflow:auto hidden}.erp-dashboard-card,.erp-dashboard-documents-card{scroll-snap-align:start;grid-area:auto;min-height:520px}}.stock-report-page{background:#f5f8fc;flex-direction:column;gap:12px;min-height:0;padding:12px;display:flex;overflow:hidden}.stock-report-toolbar{background:#edf3f9;border:1px solid #d5e1ed;border-radius:9px;align-items:center;gap:9px;padding:10px;display:flex}.stock-report-toolbar>select,.stock-report-toolbar>button,.stock-report-search input{box-sizing:border-box;color:#1f344f;background:#fff;border:1px solid #c7daec;border-radius:8px;height:46px;min-height:46px;font-family:inherit;font-weight:850}.stock-report-search{flex:420px;min-width:260px;position:relative}.stock-report-search input{outline:0;width:100%;padding:0 42px 0 13px}.stock-report-search input:focus,.stock-report-toolbar>select:focus{border-color:#2673b8;box-shadow:0 0 0 2px #2673b81f}.stock-report-search i{color:#2673b8;pointer-events:none;position:absolute;inset-block-start:50%;inset-inline-start:15px;transform:translateY(-50%)}.stock-report-toolbar>select{flex:0 0 185px;width:185px;padding:0 11px}.stock-report-toolbar>.stock-report-clear{color:#b42332;cursor:pointer;border-color:#efc1c5;justify-content:center;align-items:center;gap:7px;width:auto;padding:0 14px;display:inline-flex}.stock-report-toolbar>.stock-report-clear:hover{background:#fff5f6;border-color:#d84e5b}.stock-report-toolbar>.stock-report-refresh{color:#fff;cursor:pointer;background:#2673b8;border-color:#2673b8;width:46px;min-width:46px;padding:0}.stock-report-toolbar>.stock-report-refresh:hover{background:#1f5f99}.stock-report-summary{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;display:grid}.stock-report-summary article{background:#fff;border:1px solid #d6e3ef;border-radius:9px;align-items:center;gap:12px;min-height:76px;padding:11px 14px;display:flex}.stock-report-summary-icon{color:#2673b8;background:#eaf3fb;border-radius:9px;flex:0 0 42px;justify-content:center;align-items:center;width:42px;height:42px;font-size:1.05rem;display:inline-flex}.stock-report-summary article div{gap:2px;min-width:0;display:grid}.stock-report-summary small{color:#6f829c;font-size:.76rem;font-weight:800}.stock-report-summary strong{color:#17365d;font-size:1.22rem;font-weight:950}.stock-report-card{background:#fff;border:1px solid #d4e1ed;border-radius:9px;flex-direction:column;flex:auto;min-height:0;display:flex;overflow:hidden}.stock-report-card-head{background:#f3f7fc;border-bottom:2px solid #2673b8;justify-content:space-between;align-items:center;gap:14px;min-height:58px;padding:9px 14px;display:flex}.stock-report-card-head h2,.stock-report-card-head p{margin:0}.stock-report-card-head h2{color:#17365d;font-size:1rem;font-weight:950}.stock-report-card-head p{color:#6f829c;margin-top:2px;font-size:.73rem;font-weight:750}.stock-report-card-head>span{color:#2673b8;white-space:nowrap;background:#fff;border:1px solid #c8dcef;border-radius:999px;padding:5px 10px;font-size:.75rem;font-weight:900}.stock-report-table-wrap{flex:auto;min-height:0;overflow:auto}.stock-report-table{border-collapse:separate;border-spacing:0;table-layout:fixed;color:#1f344f;width:100%;min-width:980px}.stock-report-table th,.stock-report-table td{text-align:start;vertical-align:middle;border:0;border-bottom:1px solid #dce6f1;min-height:48px;padding:8px 10px;font-size:.78rem;font-weight:800}.stock-report-table th{z-index:1;color:#17365d;background:#edf4fb;height:44px;font-weight:950;position:sticky;inset-block-start:0}.stock-report-table tbody tr:nth-child(2n){background:#f7faff}.stock-report-table tbody tr:hover{background:#edf5fd}.stock-report-table :is(th,td):first-child{width:18%}.stock-report-table :is(th,td):nth-child(2),.stock-report-table :is(th,td):nth-child(3){width:11%}.stock-report-table :is(th,td):nth-child(4){width:28%}.stock-report-table :is(th,td):nth-child(5){width:17%}.stock-report-table :is(th,td):nth-child(6){width:10%}.stock-report-table :is(th,td):nth-child(7){text-align:center;width:64px}.stock-report-item-name{display:table-cell}.stock-report-item-name strong,.stock-report-item-name small{display:block}.stock-report-item-name strong{color:#17365d;font-weight:950}.stock-report-item-name small{color:#8393a9;margin-top:2px;font-weight:700}.stock-balance-list{flex-wrap:wrap;gap:5px;display:flex}.stock-balance-chip{background:#f8fbff;border:1px solid #d3e1ee;border-radius:7px;justify-content:space-between;align-items:center;gap:8px;min-width:92px;padding:5px 7px;display:inline-flex}.stock-balance-chip>small{color:#6f829c;font-size:.68rem;font-weight:800}.stock-balance-chip .stock-quantity-display,.stock-total-positive .stock-quantity-display,.stock-total-empty .stock-quantity-display{gap:0;font-weight:950;display:inline-grid}.stock-balance-chip .stock-quantity-display small,.stock-total-positive .stock-quantity-display small,.stock-total-empty .stock-quantity-display small{display:none}.stock-total-positive{color:#2673b8}.stock-total-empty{color:#b42332}.stock-report-empty-value{color:#9aabc0}.stock-report-actions button{color:#2673b8;cursor:pointer;background:#fff;border:1px solid #c7daec;border-radius:7px;justify-content:center;align-items:center;width:34px;height:34px;display:inline-flex}.stock-report-actions button:hover{color:#fff;background:#2673b8;border-color:#2673b8}.stock-report-loading,.stock-report-empty,.stock-report-error{text-align:center;margin:auto;padding:34px 18px;font-weight:850}.stock-report-loading,.stock-report-empty{color:#6f829c}.stock-report-error{color:#b42332}.stock-ledger.stock-ledger-modal{background:#f5f8fc;flex-direction:column;width:min(1180px,100vw - 40px);height:min(760px,100vh - 40px);max-height:min(760px,100vh - 40px);padding:0;display:flex;overflow:hidden}.stock-ledger.stock-ledger-modal>.branch-entry-head{background:#eaf3fb;border-bottom:3px solid #2673b8;flex:0 0 84px;grid-template-columns:1fr auto 1fr;min-height:84px;padding:0 26px;display:grid}.stock-ledger.stock-ledger-modal>.branch-entry-head .branch-entry-action{background:#fff;border:1px solid #c9d9ec;min-width:72px}.stock-ledger.stock-ledger-modal>.branch-entry-head .stock-ledger-print{color:#fff;background:#2673b8;border-color:#2673b8;justify-content:center;justify-self:end;align-items:center;gap:7px;display:inline-flex}.stock-ledger.stock-ledger-modal>.branch-entry-head .stock-ledger-print:hover{color:#fff;background:#1f609b}.stock-ledger-title{text-align:center;gap:2px;display:grid}.stock-ledger.stock-ledger-modal .stock-ledger-title h2{color:#17365d;font-size:1.05rem}.stock-ledger-title span{color:#6f829c;font-size:.74rem;font-weight:850}.stock-ledger-body{flex-direction:column;flex:auto;gap:11px;min-height:0;padding:12px;display:flex;overflow:hidden}.stock-ledger-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;display:grid}.stock-ledger-summary>div{background:#fff;border:1px solid #d5e2ee;border-radius:8px;justify-content:space-between;align-items:center;gap:12px;min-height:64px;padding:9px 13px;display:flex}.stock-ledger-summary small{color:#6f829c;font-weight:800}.stock-ledger-summary strong{color:#17365d;font-size:1.05rem;font-weight:950}.stock-ledger-summary .stock-quantity-display small{display:none}.stock-ledger-filters{background:#edf3f9;border:1px solid #d5e2ee;border-radius:8px;grid-template-columns:minmax(200px,1fr) repeat(2,minmax(170px,.7fr)) auto;align-items:end;gap:9px;padding:10px;display:grid}.stock-ledger-filters label{color:#253b59;gap:5px;min-width:0;font-size:.76rem;font-weight:900;display:grid}.stock-ledger-filters :is(input,select,button){box-sizing:border-box;color:#1f344f;background:#fff;border:1px solid #c7daec;border-radius:7px;width:100%;height:42px;min-height:42px;font-family:inherit;font-weight:850}.stock-ledger-filters button{color:#b42332;cursor:pointer;white-space:nowrap;justify-content:center;align-items:center;gap:7px;width:auto;padding:0 13px;display:inline-flex}.stock-ledger-table-wrap{background:#fff;border:1px solid #d5e2ee;border-radius:8px;flex:auto;min-height:0;overflow:auto}.stock-ledger-table{table-layout:fixed;border:0;min-width:850px}.stock-ledger-table th{z-index:1;position:sticky;inset-block-start:0}.stock-ledger-table tbody tr:nth-child(2n){background:#f7faff}.stock-ledger-table .ledger-quantity-in{color:#19724a;font-weight:950}.stock-ledger-table .ledger-quantity-out{color:#b42332;font-weight:950}.stock-ledger-table .stock-quantity-display small{font-size:.66rem}@media (width<=980px){.stock-report-toolbar{flex-wrap:wrap}.stock-report-search{flex-basis:100%;min-width:100%}.stock-report-toolbar>select{flex:180px;min-width:160px}.stock-report-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.stock-ledger-filters{grid-template-columns:1fr 1fr}}@media (width<=620px){.stock-report-summary,.stock-ledger-summary,.stock-ledger-filters{grid-template-columns:1fr}.stock-report-card-head{flex-direction:column;align-items:flex-start}}html,body,#root{min-height:100%}body{color:#1d2a3a;background:#fff;font-family:Cairo,sans-serif}button,input,select,textarea{font-family:inherit}.tenant-shell{background:#fff}.workspace{background:#fff;min-height:100vh}@keyframes crmSidebarIn{0%{opacity:0;transform:translateY(8px)scale(.985)}to{opacity:1;transform:translateY(0)scale(1)}}.sidebar{color:#1f344f;scrollbar-width:thin;scrollbar-color:#2673b8 #eaf3fb;background:#f8fbff;border-inline-start:1px solid #cfe0f0;border-inline-end:0;height:100vh;padding:10px 12px 16px;position:sticky;inset-block-start:0;overflow-y:auto;box-shadow:0 18px 42px -30px #1f344f80}.sidebar::-webkit-scrollbar{width:10px}.sidebar::-webkit-scrollbar-track{background:#eaf3fb;border-radius:999px}.sidebar::-webkit-scrollbar-thumb{background:#2673b8;border:2px solid #eaf3fb;border-radius:999px}.sidebar-brand{z-index:5;background:#fff;border:1px solid #b9d7f4;border-radius:8px;justify-content:space-between;align-items:center;gap:8px;height:68px;min-height:68px;margin:0 0 10px;padding:8px 10px;animation:.28s both crmSidebarIn;display:flex;position:sticky;inset-block-start:0;box-shadow:0 10px 22px -18px #1f344f6b}.sidebar-brand img{object-fit:contain;flex:0 0 76px;width:76px;height:48px}.sidebar-brand div{text-align:start;flex:1;align-content:center;gap:3px;min-width:0;display:grid}.sidebar-brand strong{color:#102338;text-overflow:ellipsis;white-space:nowrap;font-size:1rem;font-weight:950;line-height:1.15;overflow:hidden}.sidebar-brand span{color:#2673b8;text-overflow:ellipsis;white-space:nowrap;font-size:.76rem;font-weight:900;line-height:1.15;overflow:hidden}.sidebar-nav{background:#fff;border:1px solid #d6e6f5;border-radius:8px;flex-direction:column;gap:0;padding:5px;display:flex;box-shadow:0 14px 28px -24px #1f344f75}.nav-group{background:0 0;border:0;border-radius:0;overflow:hidden}.nav-item{color:#1f344f;text-align:start;background:0 0;border:0;border-inline-start:3px solid #0000;border-radius:7px;width:100%;min-height:46px;padding:6px 9px;font-size:.93rem;transition:background .2s,color .2s,border-color .2s,box-shadow .2s}.nav-item:hover{color:#1f5f99;background:#eef6ff}.nav-content{gap:12px}.nav-icon{color:#2673b8;background:#eaf3fb;border-radius:8px;flex:0 0 34px;justify-content:center;align-items:center;width:34px;height:34px;font-size:.95rem;transition:background .2s,color .2s,box-shadow .2s;display:inline-flex}.nav-label{color:inherit;font-weight:950;line-height:1.25}.nav-item.active,.nav-group.open>.nav-toggle{color:#102338;background:#eaf3fb;border-inline-start-color:#2673b8;box-shadow:inset 0 0 0 1px #2673b829}.nav-item.active .nav-icon,.nav-group.open>.nav-toggle .nav-icon{color:#fff;background:#2673b8;box-shadow:0 8px 16px #2673b83d}.sidebar-group-mark{color:#426b91;flex:0 0 24px;justify-content:center;align-items:center;width:24px;height:24px;display:inline-flex}.sidebar-group-mark:before{content:"+";font-size:1.2rem;font-weight:950;line-height:1}.nav-group.open .sidebar-group-mark:before{content:"−";color:#2673b8;font-size:1.35rem}.nav-panel{background:#f8fbff;gap:3px;padding:7px 9px 9px;display:grid;position:relative}.nav-panel:before{content:"";background:#b9d7f4;border-radius:999px;width:2px;position:absolute;inset-block:10px;inset-inline-start:20px}.nav-subitem{z-index:1;color:#385673;background:0 0;border-radius:7px;margin:0;padding:8px 34px 8px 12px;font-size:.84rem;font-weight:900;transition:background .2s,color .2s,box-shadow .2s;position:relative}.nav-subitem>span{background:#2673b8;border:2px solid #fff;border-radius:50%;width:7px;height:7px;position:absolute;inset-block-start:50%;inset-inline-start:16px;transform:translateY(-50%);box-shadow:0 0 0 1px #b9d7f4}.nav-subitem:hover{color:#174f82;background:#dceeff;box-shadow:inset 0 0 0 1px #b9d7f4}.nav-subitem.active{color:#0f4e88;background:#dceeff;box-shadow:inset 0 0 0 1px #9ccaf1}.nav-subitem.active>span{background:#2673b8;border-color:#2673b8;box-shadow:0 0 0 3px #fff}.sidebar-user{border-block-start:1px solid #dce6f1;gap:10px;margin-block-start:16px;padding:14px 0 0}.user-card{background:#f3f8fd;border:1px solid #d7e6f5;border-radius:8px;padding:12px}.user-card strong{color:#102338;font-size:.92rem;font-weight:800}.user-card span{color:#6f829c;margin-block-start:4px;font-size:.8rem;font-weight:700}.sidebar-user button{color:#1f5f99;background:#f3f8fd;border:1px solid #d7e6f5;border-radius:8px;width:100%;min-height:42px;padding:9px 12px;font-size:.9rem;font-weight:800}.sidebar-user button:hover{color:#fff;background:#ef4444;border-color:#ef4444}.shell-header{background:#fffffff5;border:1px solid #dfe5ee;border-radius:0;gap:12px;min-height:68px;padding:9px 14px;box-shadow:0 18px 38px -30px #0f172a8c}.shell-content{background:#fff;min-width:0;padding:10px 12px 12px}.content-panel{background:#fff;border:1px solid #dce6f1;border-radius:0;min-height:calc(100vh - 90px);margin:0;padding:0;overflow:hidden;box-shadow:0 10px 24px -22px #1f344f73}.branches-page{flex-direction:column;min-height:calc(100vh - 90px);display:flex}.branch-list-toolbar,.branch-toolbar{background:#eef3f9;border:1px solid #cfe0f0;border-radius:8px;justify-content:space-between;align-items:center;gap:12px;min-height:66px;margin:0 0 10px;padding:8px 10px;display:flex;box-shadow:inset 0 -1px #dce6f1}.branch-search{flex:420px;width:min(560px,100%);max-width:560px;position:relative}.branch-toolbar-query{flex:auto;align-items:center;gap:8px;min-width:0;display:flex}.stock-page .branch-toolbar-query .branch-search{flex:300px;min-width:220px;max-width:440px}.branch-list-toolbar .stock-filters,.branch-list-toolbar .customer-filters,.branch-list-toolbar .sales-filters{background:0 0;border:0;flex-wrap:nowrap;flex:0 auto;align-items:center;gap:8px;margin:0;padding:0;display:flex}.branch-list-toolbar .stock-filters>*,.branch-list-toolbar .customer-filters>*,.branch-list-toolbar .sales-filters>*{width:145px;min-width:125px;height:48px;margin:0}.branch-search input,.branch-toolbar input{color:#1f344f;background:#fff;border:1px solid #cfe0f0;border-radius:8px;outline:0;width:100%;height:48px;min-height:48px;padding:0 42px 0 14px;font-size:.88rem;font-weight:800;transition:border-color .2s,box-shadow .2s;box-shadow:0 8px 18px -18px #1f344f8c}.branch-search input:focus,.branch-toolbar input:focus{border-color:#2673b8;box-shadow:0 0 0 3px #2673b81f}.branch-search input::placeholder,.branch-toolbar input::placeholder{color:#7f8fa6;font-weight:800}.branch-search button{color:#2673b8;cursor:pointer;background:0 0;border:0;width:30px;height:30px;padding:0;font-size:1rem;position:absolute;inset-block-start:50%;inset-inline-end:10px;transform:translateY(-50%)}.branch-list-actions{background:#fff;border:1px solid #cfe0f0;border-radius:8px;align-items:center;gap:0;height:48px;display:inline-flex;overflow:hidden}.branch-list-actions button,.branch-toolbar>button,.branch-toolbar form>button,.branch-toolbar .create-branch{color:#2673b8;cursor:pointer;height:48px;min-height:48px;box-shadow:none;background:#fff;border:0;border-radius:0;justify-content:center;align-items:center;gap:8px;padding:0 18px;font-size:.9rem;font-weight:900;display:inline-flex}.branch-list-actions .create-branch,.branch-toolbar .create-branch{color:#fff;background:#2673b8}.branch-list-actions button+button{border-inline-start:1px solid #cfe0f0}.branch-list-actions button:hover,.branch-toolbar button:hover{color:#1f5f99;background:#eef6ff}.branch-list-actions .create-branch:hover,.branch-toolbar .create-branch:hover{color:#fff;background:#1f5f99}.branches-table-wrap,.table-scroll,.table-wrap,.sales-table-wrap{background:#fff;border:1px solid #dce6f1;border-radius:0;width:100%;max-width:100%;overflow:auto}.branches-table{table-layout:auto;border-collapse:separate;border-spacing:0;direction:rtl;background:#fff;border:0;width:100%;min-width:820px}.branches-table thead{background:#f3f8fd}.branches-table th,.branches-table td{text-align:start;vertical-align:middle;white-space:nowrap;border:0;border-bottom:1px solid #e2ebf4;height:42px;padding:4px 8px}.branches-table th{color:#1f344f;background:#f3f8fd;border-bottom:3px solid #2673b8;font-size:.86rem;font-weight:900}.branches-table td{color:#334155;font-size:.84rem;font-weight:750}.branches-table tbody tr:nth-child(2n){background:#f8fbff}.branches-table tbody tr:hover{background:#eef6ff}.branches-table th:last-child,.branches-table td:last-child,.branches-table th:nth-last-child(2),.branches-table td:nth-last-child(2){text-align:start;width:auto;min-width:0;position:static}:is(.branches-table:has(.branch-row-actions) th:last-child,.branches-table:has(.branch-row-actions) td:last-child){text-align:center;width:134px;min-width:134px;position:sticky;left:0}.branches-table:has(.branch-row-actions) th:last-child{z-index:2}.branches-table:has(.branch-row-actions) td:last-child{z-index:1;background:inherit}:is(.branches-table:has(.branch-status-switch) th:nth-last-child(2),.branches-table:has(.branch-status-switch) td:nth-last-child(2)){text-align:center;width:86px;min-width:86px}.branch-row-actions{flex-direction:row-reverse;justify-content:center;align-items:center;gap:7px;display:flex}.branch-icon-button{color:#111827;cursor:pointer;width:34px;height:34px;box-shadow:none;background:#fff;border:1px solid #d8e6f3;border-radius:6px;flex:0 0 34px;justify-content:center;align-items:center;padding:0;font-size:.9rem;display:inline-flex}.branch-icon-button:hover:not(:disabled){background:#eef6ff;border-color:#2673b8}.branch-delete-action{color:#fff;background:#2673b8;border-color:#2673b8}.branch-delete-action:hover:not(:disabled){color:#fff;background:#1f5f99;border-color:#1f5f99}.stock-post-action,.stock-receive-action{color:#2673b8;background:#eef6ff;border-color:#b9d7f4}.stock-post-action:hover:not(:disabled),.stock-receive-action:hover:not(:disabled){color:#fff;background:#2673b8;border-color:#2673b8}.stock-table .branch-row-actions{gap:7px;min-height:42px}.stock-table .branch-row-actions .branch-icon-button{flex:0 0 34px;width:34px;min-width:34px;height:34px;min-height:34px;padding:0;font-size:.9rem}.stock-no-actions{text-align:center;color:#9aabc0;width:32px}.stock-form.stock-entry-modal{background:#edf3f9;border-radius:10px;width:min(1180px,100vw - 40px);max-height:min(760px,100vh - 40px)}.stock-form.stock-entry-modal>.branch-entry-head{background:#eaf3fb;border-bottom:3px solid #2673b8;grid-template-columns:1fr auto 1fr;align-items:center;min-height:84px;padding:0 26px;display:grid}.stock-form.stock-entry-modal>.branch-entry-head h2{color:#2f3948;text-align:center;font-size:1.12rem}.stock-form.stock-entry-modal>.branch-entry-head .branch-entry-action{color:#2673b8;background:0 0;border:0;border-radius:4px;width:fit-content;min-width:72px;height:42px;padding:0 14px;font-weight:950}.stock-form.stock-entry-modal>form{background:#f5f8fc;gap:12px;max-height:calc(min(760px,100vh - 40px) - 84px);padding:14px}.stock-form.stock-entry-modal .stock-document-header-fields{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:12px;display:grid}.stock-form.stock-entry-modal .stock-document-header-fields>label{min-width:0}.stock-form.stock-entry-modal .stock-document-header-fields>label>:is(input,select){box-sizing:border-box;width:100%;height:48px;min-height:48px;padding-block:0}.stock-form.stock-entry-modal .stock-document-header-fields>.stock-note{grid-column:1/-1}.sales-form.sales-entry-modal{background:#edf3f9;border-radius:10px;flex-direction:column;width:min(1180px,100vw - 40px);height:min(760px,100vh - 40px);max-height:min(760px,100vh - 40px);padding:0;display:flex;overflow:hidden}.sales-form.sales-entry-modal>.branch-entry-head{background:#eaf3fb;border-bottom:3px solid #2673b8;flex:0 0 84px;grid-template-columns:1fr auto 1fr;align-items:center;min-height:84px;padding:0 26px;display:grid}.sales-form.sales-entry-modal>.branch-entry-head h2{color:#2f3948;text-align:center;margin:0;font-size:1.12rem}.sales-entry-title{justify-content:center;align-items:center;gap:8px;display:flex}.sales-form.sales-entry-modal>.branch-entry-head .branch-entry-action{color:#2673b8;background:0 0;border:0;border-radius:4px;width:fit-content;min-width:72px;height:42px;padding:0 14px;font-weight:950}.sales-form.sales-entry-modal>form{background:#f5f8fc;flex:auto;grid-template-columns:repeat(3,minmax(0,1fr));align-content:start;gap:12px;min-height:0;max-height:none;margin:0;padding:14px;display:grid;overflow:auto}.sales-form.sales-entry-modal .sales-source-document{background:#fff;border-bottom:1px solid #dce6f1;flex:none;margin:0;padding:8px 18px}.sales-form.sales-entry-modal fieldset,.sales-form.sales-entry-modal .sales-totals{background:#fff;border:1px solid #dce6f1;border-radius:10px;grid-column:1/-1;min-width:0;margin:0;padding:14px}.sales-form.sales-entry-modal .sales-totals{z-index:2;padding:0;position:static;overflow:hidden;box-shadow:0 -10px 24px -22px #17365db3}.sales-form.sales-entry-modal>.sales-totals{box-sizing:border-box;border-block-end:0;border-inline:0;border-radius:0;flex:none;width:100%}.sales-form.sales-entry-modal .sales-total-details{gap:7px;margin:0;padding:12px 14px 8px;display:grid}.sales-form.sales-entry-modal .sales-total-toggle{border:0;color:#174f82;cursor:pointer;background:#fff;border-top:2px solid #2673b8;justify-content:space-between;align-items:center;gap:16px;width:100%;min-height:54px;padding:10px 14px;font-family:inherit;font-size:1.12rem;display:flex}.sales-form.sales-entry-modal .sales-total-toggle:hover{background:#edf5fd}.sales-form.sales-entry-modal .sales-total-toggle-title{align-items:center;gap:9px;font-weight:900;display:inline-flex}.sales-form.sales-entry-modal .sales-total-toggle strong{color:#17365d;font-size:1.16rem;font-weight:950}.sales-form.sales-entry-modal .sales-total-toggle i{font-size:.8rem}.sales-form.sales-entry-modal .sales-document-header-fields,.sales-form.sales-entry-modal .sales-payment-fields{grid-template-columns:repeat(4,minmax(0,1fr));align-items:start;gap:12px;display:grid}.sales-form.sales-entry-modal .sales-document-header-fields.has-valid-until{grid-template-columns:repeat(5,minmax(0,1fr))}.sales-form.sales-entry-modal .sales-payment-fields{grid-template-columns:repeat(4,minmax(0,1fr))}.sales-form.sales-entry-modal :is(.sales-document-header-fields,.sales-payment-fields)>label{color:#253b59;gap:6px;min-width:0;font-weight:900;display:grid}.sales-form.sales-entry-modal :is(.sales-document-header-fields,.sales-payment-fields)>label>:is(input,select){box-sizing:border-box;color:#1f344f;background:#eaf1fb;border:1px solid #cfe0f0;border-radius:8px;width:100%;min-width:0;height:48px;min-height:48px;padding:0 11px;font-weight:850}.sales-form.sales-entry-modal .sales-payment-fields>.sales-note,.sales-form.sales-entry-modal .sales-payment-fields>.sales-customer-credit,.sales-form.sales-entry-modal .sales-lines{grid-column:1/-1}.sales-form.sales-entry-modal .sales-note textarea{box-sizing:border-box;background:#eaf1fb;width:100%;min-height:72px}.sales-form.sales-entry-modal .sales-lines{grid-template-columns:minmax(0,1fr);gap:10px;display:grid}.sales-form.sales-entry-modal .return-source-lines{background:#fbfdff;border-color:#bdd4ea;padding-block-end:12px}.return-source-lines-table{border-collapse:collapse;table-layout:fixed;color:#253b59;width:100%}.return-source-lines-table th,.return-source-lines-table td{text-align:center;border:1px solid #d7e3ef;height:44px;padding:7px 10px;font-weight:800}.return-source-lines-table th{color:#17365d;background:#edf4fb;border-bottom:2px solid #2673b8;font-weight:950}.return-source-lines-table :is(th,td):first-child{text-align:start;width:34%}.return-source-lines-table .return-available-quantity{color:#2673b8;background:#f1f7fd;font-size:1rem;font-weight:950}.return-source-loading{color:#6f829c;text-align:center;margin:0;padding:18px;font-weight:850}.sales-form.sales-entry-modal .return-entry-lines{border-color:#a9c9e7}.sales-form.sales-entry-modal .return-entry-lines legend{color:#2673b8}.sales-form.sales-entry-modal .return-entry-lines input[type=number]{color:#174f82;background:#fff;border-color:#86b5df;font-weight:950}.sales-form.sales-entry-modal .sales-lines>.inline-add{justify-self:start;width:auto;min-width:104px;height:40px;padding:0 14px}.sales-form.sales-entry-modal .sales-lines-table :is(input,select){box-sizing:border-box;background:#f8fbff;width:100%;min-width:0;min-height:38px}.sales-form.sales-entry-modal .sales-lines-table{table-layout:fixed;min-width:1100px}.sales-form.sales-entry-modal .sales-lines-table :is(th,td){vertical-align:middle;white-space:nowrap;height:52px;padding:5px 6px}.sales-form.sales-entry-modal .sales-lines-table :is(th,td):first-child{width:240px}.sales-form.sales-entry-modal .sales-lines-table :is(th,td):nth-child(2){width:120px}.sales-form.sales-entry-modal .sales-lines-table :is(th,td):nth-child(3){width:88px}.sales-form.sales-entry-modal .sales-lines-table :is(th,td):nth-child(4){width:115px}.sales-form.sales-entry-modal .sales-lines-table :is(th,td):nth-child(5){width:190px}.sales-form.sales-entry-modal .sales-lines-table :is(th,td):nth-child(6),.sales-form.sales-entry-modal .sales-lines-table :is(th,td):nth-child(7),.sales-form.sales-entry-modal .sales-lines-table :is(th,td):nth-child(8){text-align:center;width:88px}.sales-form.sales-entry-modal .sales-lines-table :is(th,td):nth-child(9){text-align:center;width:78px}.sales-form.sales-entry-modal .sales-lines-table .sales-item-cell,.sales-form.sales-entry-modal .sales-lines-table td:nth-child(5){display:table-cell}.sales-form.sales-entry-modal .sales-discount-fields{grid-template-columns:repeat(2,minmax(0,1fr));align-items:center;gap:6px;display:grid}.sales-form.sales-entry-modal .sales-item-cell input{height:40px}.sales-form.sales-entry-modal .sales-lines-table .modal-remove-action{white-space:nowrap;width:100%;min-width:0}.sales-form.sales-entry-modal>form>.form-actions{z-index:3;background:#fff;border-top:1px solid #dce6f1;grid-column:1/-1;justify-content:flex-end;align-items:center;gap:9px;min-height:62px;margin:0 -14px -14px;padding:10px 14px;display:flex;position:sticky;inset-block-end:-14px}.sales-form.sales-entry-modal>.sales-document-actions{z-index:3;background:#fff;border-top:1px solid #dce6f1;flex:0 0 64px;justify-content:flex-end;align-items:center;gap:9px;min-height:64px;margin:0;padding:10px 14px;display:flex;position:static;inset:auto}.sales-form.sales-entry-modal>.sales-document-actions .button{border-radius:7px;min-width:120px;height:42px;padding:0 16px;font-weight:900}.sales-form.sales-entry-modal>.sales-document-actions .sales-cancel-action{color:#fff;background:#dc3545;border-color:#dc3545}.sales-form.sales-entry-modal>.sales-document-actions .sales-cancel-action:hover{background:#b42332;border-color:#b42332}.sales-list .sales-row-actions{gap:7px;width:190px;min-width:190px}.sales-list .sales-row-actions .sales-issue-action{color:#fff;background:#2673b8;border-color:#2673b8}.sales-list .sales-row-actions .sales-issue-action:hover{color:#fff;background:#1f5f99;border-color:#1f5f99}.sales-page .branches-table-wrap{min-width:0}.sales-page .sales-list{table-layout:fixed;width:100%;min-width:0}.sales-page .sales-list :is(th,td){text-overflow:ellipsis;overflow:hidden}.sales-page .sales-list :is(th,td):first-child{width:18%}.sales-page .sales-list :is(th,td):nth-child(2){width:17%}.sales-page .sales-list :is(th,td):nth-child(4),.sales-page .sales-list :is(th,td):nth-child(5){text-align:center;width:130px}.sales-page .sales-list:has(.sales-row-actions) :is(th,td):last-child{text-align:center;width:190px;min-width:190px;overflow:visible}.sales-list .sales-row-actions .branch-icon-button{width:34px;min-width:34px;height:34px;min-height:34px}.sales-list .sales-row-actions .sales-send-action,.sales-list .sales-row-actions .sales-convert-action{color:#2673b8;background:#fff;border-color:#2673b8}.sales-list .sales-row-actions .sales-cancel-list-action{color:#fff;background:#2673b8;border-color:#2673b8}.branch-entry-modal.return-source-modal{background:#f5f8fc;width:min(760px,100vw - 40px);max-height:min(620px,100vh - 40px);padding:0;overflow:hidden}.return-source-modal>.branch-entry-head{background:#eaf3fb;border-bottom:3px solid #2673b8;grid-template-columns:1fr auto 1fr;align-items:center;min-height:84px;padding:0 26px;display:grid}.return-source-modal>.branch-entry-head h2{color:#2f3948;text-align:center;margin:0;font-size:1.12rem}.return-source-modal>.branch-entry-head .branch-entry-action{color:#2673b8;background:0 0;border:0;width:fit-content;min-width:72px;height:42px;padding:0 14px;font-weight:950}.branch-entry-modal.return-source-modal>form{background:#f5f8fc;grid-template-columns:minmax(0,1fr);gap:14px;margin:0;padding:18px;display:grid;overflow:auto}.return-source-modal>form>fieldset{background:#fff;border:1px solid #dce6f1;border-radius:10px;grid-column:1/-1;grid-template-columns:minmax(0,1fr) 170px;align-items:end;gap:12px;margin:0;padding:16px;display:grid}.return-source-modal>form>fieldset legend{color:#174f82;padding:0 8px;font-weight:950}.return-source-modal>form>fieldset label{color:#253b59;gap:6px;min-width:0;font-weight:900;display:grid}.return-source-modal>form>fieldset input,.return-source-modal .return-invoice-search{box-sizing:border-box;border:1px solid #cfe0f0;border-radius:8px;width:100%;height:48px;min-height:48px;font-family:inherit;font-weight:850}.return-source-modal>form>fieldset input{color:#1f344f;background:#eaf1fb;padding:0 12px}.return-source-modal .return-invoice-search{color:#fff;white-space:nowrap;cursor:pointer;background:#2673b8;justify-content:center;align-items:center;gap:8px;padding:0 14px;display:inline-flex}.return-invoice-error{color:#b42332;background:#fff6f7;border:1px solid #efb6bc;border-radius:8px;margin:0;padding:10px 12px;font-weight:850}.return-invoice-result{background:#fff;border:1px solid #cfe0f0;border-radius:10px;padding:16px}.return-invoice-result h3{color:#174f82;margin:0 0 12px;font-size:1rem}.return-invoice-result dl{background:#dce6f1;border:1px solid #dce6f1;border-radius:8px;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;margin:0 0 14px;display:grid;overflow:hidden}.return-invoice-result dl>div{background:#f8fbff;min-width:0;padding:10px}.return-invoice-result :is(dt,dd){text-overflow:ellipsis;white-space:nowrap;margin:0;overflow:hidden}.return-invoice-result dt{color:#6f829c;font-size:.76rem;font-weight:800}.return-invoice-result dd{color:#1f344f;margin-top:4px;font-weight:950}.return-invoice-result .return-create-document{min-width:170px;height:44px}.stock-form form>.stock-entry-actions{z-index:3;background:#fff;border-top:1px solid #dce6f1;grid-column:1/-1;justify-content:flex-end;align-items:center;gap:9px;min-height:62px;margin:0 -14px -14px;padding:10px 14px;display:flex;position:sticky;inset-block-end:-14px}.stock-entry-actions button{cursor:pointer;border:1px solid #cfe0f0;border-radius:7px;min-width:110px;height:42px;padding:0 16px;font-weight:900}.stock-entry-actions .stock-action-primary{color:#fff;background:#2673b8;border-color:#2673b8}.stock-entry-actions .stock-action-danger{color:#d84e4e;background:#fff5f5;border-color:#efb9b9}.stock-entry-actions button:disabled{opacity:.55;cursor:not-allowed}.stock-decision-backdrop{z-index:1200}.stock-save-decision{text-align:center;background:#fff;border-color:#cfdbe8;width:min(500px,100vw - 32px);padding:30px 24px 22px;position:relative}.stock-save-decision h3{color:#243043;margin:0 0 8px;font-size:1.08rem}.stock-save-decision p{color:#6f829c;margin:0 0 20px;font-size:.85rem;font-weight:700}.stock-decision-close{color:#6f829c;cursor:pointer;background:#fff;border:1px solid #dce6f1;border-radius:7px;width:32px;height:32px;position:absolute;inset-block-start:10px;inset-inline-end:10px}.stock-decision-actions{justify-content:center;gap:10px;display:flex}.stock-decision-actions button{cursor:pointer;border-radius:7px;min-width:150px;min-height:44px;padding:0 18px;font-weight:900}.stock-decision-actions .stock-action-primary{color:#fff;background:#2673b8;border:1px solid #2673b8}.stock-decision-actions .stock-action-secondary{color:#2673b8;background:#f8fbff;border:1px solid #cfe0f0}.branch-icon-button:disabled{color:#8da0b5;opacity:1;cursor:not-allowed;background:#f3f7fb;border-color:#dde7f1}.branch-status-switch{cursor:pointer;background:#9db2ce;border:0;border-radius:999px;width:40px;height:22px;padding:3px}.branch-status-switch span{background:#fff;border-radius:50%;width:16px;height:16px;transition:transform .18s;display:block}.branch-status-switch.is-on{background:#3e70aa}.branch-status-switch.is-on span{transform:translate(-18px)}.branch-pagination{display:none}.customer-filters,.statement-filters,.stock-filters,.sales-filters,.stock-adjustment-toolbar,.pos-sales-tabs{background:#f8fbff;border:1px solid #dce6f1;border-radius:8px;margin:0 0 10px;padding:8px 10px}.customer-filters select,.statement-filters input,.stock-filters input,.stock-filters select,.sales-filters input,.sales-filters select,.stock-adjustment-toolbar select{color:#1f344f;background:#fff;border:1px solid #cfe0f0;border-radius:8px;min-height:40px;padding:0 10px;font-weight:800}.stock-adjustment-page{flex-direction:column;gap:12px;display:flex}.stock-adjustment-page .stock-adjustment-toolbar{background:#f3f8fd;border:1px solid #d5e1ef;border-radius:8px;grid-template-columns:minmax(260px,420px) auto auto minmax(0,1fr);align-items:end;gap:12px;margin:0;padding:12px;display:grid}.stock-adjustment-warehouse{color:#1f344f;gap:5px;font-weight:900;display:grid}.stock-adjustment-page .stock-adjustment-toolbar .stock-adjustment-warehouse select{box-sizing:border-box;background:#fff;border-color:#b9d3ec;width:100%;height:48px;min-height:48px}.stock-full-count-control{color:#1f344f;cursor:pointer;-webkit-user-select:none;user-select:none;background:#fff;border:1px solid #cfe0f0;border-radius:8px;align-items:center;gap:9px;height:48px;padding:0 14px;font-weight:900;display:inline-flex}.stock-full-count-control>input{opacity:0;pointer-events:none;width:1px;height:1px;position:absolute}.stock-full-count-switch{background:#9db2ce;border-radius:999px;flex:0 0 38px;width:38px;height:22px;padding:3px;transition:background .18s;display:block}.stock-full-count-switch>span{background:#fff;border-radius:50%;width:16px;height:16px;transition:transform .18s;display:block}.stock-full-count-control>input:checked+.stock-full-count-switch{background:#3e70aa}.stock-full-count-control>input:checked+.stock-full-count-switch>span{transform:translate(-16px)}.stock-full-count-control:focus-within{outline-offset:2px;outline:2px solid #2673b833}.stock-adjustment-page .stock-load-sheet{border-radius:8px;justify-content:center;align-items:center;gap:8px;min-width:168px;height:48px;min-height:48px;padding:0 18px;font-weight:900;display:inline-flex}.stock-adjustment-empty{color:#71839a;text-align:center;background:#fff;border:1px solid #dce6f1;border-radius:8px;place-content:center;justify-items:center;gap:12px;min-height:300px;display:grid}.stock-adjustment-empty i{color:#7ba8d4;font-size:2.4rem}.stock-adjustment-empty p{margin:0;font-weight:800}.stock-adjustment-sheet{background:#fff;border:1px solid #d5e1ef;border-radius:8px;overflow:hidden}.stock-adjustment-sheet-head{background:#f3f8fd;border-bottom:2px solid #2673b8;justify-content:space-between;align-items:center;gap:16px;min-height:58px;padding:10px 14px;display:flex}.stock-adjustment-sheet-head h2,.stock-adjustment-sheet-head p{margin:0}.stock-adjustment-sheet-head h2{color:#173b63;font-size:1rem;font-weight:950}.stock-adjustment-sheet-head .stock-count-hint{color:#647892;align-items:center;gap:7px;font-size:.82rem;font-weight:750;display:inline-flex}.stock-adjustment-sheet-head .stock-count-hint i{color:#2673b8}.stock-adjustment-table-wrap{border:0;border-radius:0;margin:0}.stock-adjustment-table-wrap .stock-table{cursor:default}.stock-adjustment-table-wrap .stock-table th,.stock-adjustment-table-wrap .stock-table td{height:46px;padding:6px 12px}.stock-adjustment-page .stock-unit-counts{grid-template-columns:repeat(auto-fit,minmax(118px,1fr));gap:6px;min-width:250px;display:grid}.stock-adjustment-page .stock-unit-counts label{background:#f8fbff;border:1px solid #d6e4f1;border-radius:7px;grid-template-columns:minmax(64px,1fr) auto;align-items:center;gap:7px;min-height:36px;padding-inline-end:9px;display:grid;overflow:hidden}.stock-adjustment-page .stock-unit-counts input{border:0;background:#fff;border-inline-end:1px solid #d6e4f1;border-radius:0;width:100%;min-width:64px;height:34px;padding:0 9px}.stock-adjustment-page .stock-unit-counts input:focus{outline-offset:-2px;outline:2px solid #2673b82e}.stock-adjustment-page .stock-unit-counts span{color:#49617e;font-size:.78rem;font-weight:800}.stock-adjustment-page .stock-summary{background:#f8fbff;border-top:1px solid #dce6f1;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:10px;margin:0;padding:12px;display:grid}.stock-summary-card{background:#fff;border:1px solid #d7e4f1;border-radius:8px;justify-content:space-between;align-items:center;gap:12px;min-height:64px;padding:10px 14px;display:flex}.stock-summary-card span{color:#58708b;font-size:.82rem;font-weight:800}.stock-summary-card strong{color:#173b63;font-size:1.12rem;font-weight:950}.stock-summary-increase strong{color:#2673b8}.stock-summary-shortage strong{color:#cf4e4e}.stock-adjustment-page .stock-adjustment-actions{background:#fff;border:1px solid #d5e1ef;border-radius:8px;min-height:62px;margin:0;padding:9px 12px}.stock-adjustment-actions .button{border-radius:7px;min-width:132px;height:42px;padding:0 18px;font-weight:900}.modal-backdrop{-webkit-backdrop-filter:blur(2.5px);backdrop-filter:blur(2.5px);background:#0f172a8c;padding:20px}.branch-form,.confirm-card{background:#fff;border-color:#cfdbe8;box-shadow:0 28px 70px -34px #1023389e}.branch-entry-modal{direction:rtl;background:#edf3f9;border:1px solid #cfdbe8;border-radius:8px;width:min(1180px,100vw - 72px);max-height:min(760px,100vh - 72px);padding:0;overflow:hidden}.branch-entry-head{background:#eaf3fb;border-bottom:3px solid #2673b8;grid-template-columns:1fr auto 1fr;align-items:center;min-height:84px;padding:0 26px;display:grid}.branch-entry-head h2{color:#2f3948;text-align:center;margin:0;font-size:1.22rem;font-weight:950}.branch-entry-action{color:#2673b8;cursor:pointer;background:0 0;border:0;border-radius:4px;min-width:72px;height:42px;padding:0 14px;font-size:.94rem;font-weight:950}.branch-entry-action:hover{color:#1f5f99;background:#eef6ff}.branch-entry-modal>form,.branch-entry-modal>.branch-error+form{background:#fff;gap:0;max-height:calc(min(760px,100vh - 72px) - 84px);margin:0;padding:0;overflow:auto}.branch-entry-modal form{grid-template-columns:repeat(3,minmax(0,1fr))}.branch-entry-field,.user-entry-modal .field,.master-entry-modal form>label{border:0;border-bottom:1px solid #d8e2ec;color:#374151;background:#fff;border-inline-start:1px solid #edf3f9;grid-template-columns:minmax(108px,42%) minmax(0,1fr);align-items:center;gap:14px;min-height:64px;padding:0 18px;font-size:.92rem;font-weight:950;display:grid}.branch-entry-field input,.branch-entry-field select,.branch-entry-field textarea,.user-entry-modal .field input:not([type=checkbox]):not([type=radio]),.user-entry-modal .field select,.master-entry-modal form>label input:not([type=checkbox]):not([type=radio]),.master-entry-modal form>label select,.master-entry-modal form>label textarea{color:#202a37;text-align:center;width:100%;height:42px;min-height:42px;box-shadow:none;background:#eaf1fb;border:0;border-radius:0;outline:0;padding:0 10px;font-size:.92rem;font-weight:900}.branch-entry-section,.user-entry-modal .branch-picker legend{border:0;color:#0f2e52;background:#fff;border-bottom:2px solid #2673b8;min-height:40px;padding:8px 20px;font-weight:950}.user-entry-modal .branch-picker,.profile-form .branch-picker{background:#fff}.content-panel:not(.branches-page){border-radius:16px;padding:14px}.dashboard-panel{background:#fffffff0}.emp-page-header{background:linear-gradient(120deg,#fff 0%,#f7fbff 70%,#f3f6fb 100%);border:1px solid #dfe8f3;border-radius:16px;padding:12px 14px;box-shadow:0 8px 24px -20px #02081752}.emp-page-header h2{color:#0f172a;margin:0;font-size:1.25rem;font-weight:900}.emp-page-header p{color:#6b7280;margin:4px 0 0;font-size:.8rem;font-weight:700}.sales-form,.stock-form{background:#fff;border:1px solid #dbe6f5;border-radius:12px;width:min(1220px,100% - 28px);max-height:min(86vh,820px);padding:0;overflow:hidden}.sales-form>header,.stock-form>header,.stock-ledger>header,.customer-statement>header{background:linear-gradient(135deg,#f8fbff 0%,#eef4ff 58%,#eaf3ff 100%);border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:center;gap:10px;min-height:58px;padding:12px 16px;display:flex}.sales-form>header h2,.stock-form>header h2,.stock-ledger>header h2,.customer-statement>header h2{color:#1e3a8a;margin:0;font-size:1.02rem;font-weight:900}.stock-ledger,.customer-statement{border-radius:12px;width:min(1080px,100% - 28px);max-height:min(86vh,820px);padding:0;overflow:auto}.stock-form>header button,.stock-ledger>header button,.customer-statement>header button{color:#5b6b81;cursor:pointer;background:#fff;border:1px solid #d9e3f2;border-radius:10px;justify-content:center;align-items:center;width:34px;height:34px;display:inline-flex}.stock-ledger>.stock-filters,.customer-statement>.statement-filters,.customer-statement>.table-scroll,.stock-ledger>.table-wrap{margin:10px 12px}.stock-form>footer,.stock-actions,.sales-document-actions{background:#fff;border-top:1px solid #e2e8f0;justify-content:flex-end;align-items:center;gap:8px;padding:10px 12px;display:flex}.sales-form>form,.stock-form>form{gap:10px 12px;max-height:calc(min(86vh,820px) - 58px);padding:12px 14px;overflow:auto}.item-units-table,.sales-lines-table,.stock-lines-table{border-collapse:separate;border-spacing:0;background:#fff;border:1px solid #dce6f1;width:100%;min-width:720px}.item-units-table th,.item-units-table td,.sales-lines-table th,.sales-lines-table td,.stock-lines-table th,.stock-lines-table td{text-align:start;vertical-align:middle;border:0;border-bottom:1px solid #e2ebf4;height:42px;padding:5px 8px;font-size:.82rem}.item-units-table th,.sales-lines-table th,.stock-lines-table th{color:#1f344f;background:#f3f8fd;border-bottom:2px solid #2673b8;font-weight:900}.item-units-table input,.item-units-table select,.sales-lines-table input,.sales-lines-table select,.stock-lines-table input,.stock-lines-table select{color:#1f344f;background:#f8fbff;border:1px solid #cfe0f0;border-radius:6px;min-height:36px;padding:0 8px;font-weight:750}.tenant-shell{grid-template-columns:278px minmax(0,1fr)}.sidebar{background:#fff;border:1px solid #d7e1ec;border-radius:8px;width:278px;padding:0;overflow-x:hidden;box-shadow:0 18px 42px -30px #0f172a8c}.sidebar-brand{height:72px;min-height:72px;box-shadow:none;background:#fff;border:0;border-bottom:1px solid #e2e8f0;border-radius:0;justify-content:center;margin:0;padding:7px 12px;position:relative}.sidebar-brand img{flex-basis:96px;width:96px;height:58px}.sidebar-brand div{display:none}.sidebar-nav{box-shadow:none;background:#fff;border:0;border-radius:0;padding:0;display:flex}.nav-group{border-bottom:1px solid #e2e8f0}.sidebar-nav>.nav-item,.nav-group>.nav-toggle{min-height:58px;box-shadow:none;background:#fff;border:0;border-bottom:1px solid #e2e8f0;border-radius:0;padding:0 24px}.nav-group>.nav-toggle{border-bottom:0}.sidebar-nav>.nav-item:hover,.nav-group>.nav-toggle:hover{background:#f7fbff}.nav-content{gap:14px;width:100%}.nav-icon,.nav-item.active .nav-icon,.nav-group.open>.nav-toggle .nav-icon{color:#3677bf;width:22px;height:22px;box-shadow:none;background:0 0;border-radius:0;flex:0 0 22px;font-size:1.08rem}.nav-label{color:#172033;font-size:.95rem;font-weight:900}.sidebar-nav>.nav-item.active{box-shadow:none;background:#fff;border-inline-start:0}.sidebar-group-mark{display:none}.nav-group.open{background:#eef6ff}.nav-group.open>.nav-toggle{box-shadow:none;background:#eef6ff;border-inline-start:0}.nav-panel{background:#eef6ff;gap:0;padding:0 0 8px}.nav-panel:before,.nav-subitem>span{display:none}.nav-subitem{color:#172033;min-height:50px;box-shadow:none;background:0 0;border:0;border-radius:0;align-items:center;margin:0;padding:0 62px 0 18px;font-size:.92rem;font-weight:900;display:flex}.nav-subitem:hover{color:#2673b8;box-shadow:none;background:#ffffff6b}.nav-subitem.active{color:#2673b8;box-shadow:none;background:0 0}.sidebar-user{display:none}.modal-backdrop{padding:clamp(10px,2vw,22px)}.branch-entry-modal,.sales-form,.stock-form,.stock-ledger,.customer-statement{border-radius:10px;overflow:hidden}.branch-entry-head,.sales-form>header,.stock-form>header{z-index:2;flex:none;position:relative}.branch-entry-modal>form,.sales-form>form,.stock-form>form{overscroll-behavior:contain;scrollbar-gutter:stable}.master-entry-modal:not(.item-form):not(.customer-form),.user-entry-modal:not(.profile-form){width:min(920px,100vw - 40px)}.pos-device-form{width:min(820px,100vw - 40px)}.customer-form,.profile-form{width:min(1060px,100vw - 40px)}.item-form.branch-entry-modal{width:min(1180px,100vw - 40px)}.master-entry-modal>form,.user-entry-modal>form{background:#f5f8fc;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:14px}.item-form.branch-entry-modal>form,.customer-form>form{grid-template-columns:minmax(0,1fr)}.item-form-priority{grid-template-columns:minmax(0,1fr);gap:12px;display:grid}.item-form-priority>fieldset{align-content:start;height:100%}.item-form-priority>fieldset:first-child{grid-template-columns:repeat(4,minmax(0,1fr))}.item-form-priority>fieldset:last-child{grid-template-columns:repeat(3,minmax(0,1fr))}.item-form .item-optional-fields{background:#fbfdff;grid-template-columns:repeat(2,minmax(0,1fr))}.item-form .item-opening-fields{width:100%}.master-entry-modal form>label,.user-entry-modal form>.field{background:#fff;border:1px solid #dce6f1;border-radius:9px;min-height:68px;padding:9px 14px}.master-entry-modal form>label:has(>input:required){border-color:#9fc4e8;box-shadow:inset 3px 0 #2673b8}.master-entry-modal form>label:has(>select:required){border-color:#9fc4e8;box-shadow:inset 3px 0 #2673b8}.user-entry-modal form>.field:has(>input:required){border-color:#9fc4e8;box-shadow:inset 3px 0 #2673b8}.user-entry-modal form>.field:has(>select:required){border-color:#9fc4e8;box-shadow:inset 3px 0 #2673b8}.branch-entry-field:has(>input:required){border-color:#9fc4e8;box-shadow:inset 3px 0 #2673b8}[dir=rtl] .master-entry-modal form>label:has(>input:required){box-shadow:inset -3px 0 #2673b8}[dir=rtl] .master-entry-modal form>label:has(>select:required){box-shadow:inset -3px 0 #2673b8}[dir=rtl] .user-entry-modal form>.field:has(>input:required){box-shadow:inset -3px 0 #2673b8}[dir=rtl] .user-entry-modal form>.field:has(>select:required){box-shadow:inset -3px 0 #2673b8}[dir=rtl] .branch-entry-field:has(>input:required){box-shadow:inset -3px 0 #2673b8}.master-entry-modal form>fieldset,.user-entry-modal form>fieldset,.item-form fieldset,.customer-form fieldset,.sales-form fieldset,.stock-form fieldset{background:#fff;border:1px solid #dce6f1;border-radius:10px;min-width:0;margin:0;padding:14px}.master-entry-modal form>fieldset,.user-entry-modal form>fieldset,.item-form fieldset,.customer-form fieldset{grid-column:1/-1}.master-entry-modal form>fieldset legend,.user-entry-modal form>fieldset legend,.item-form fieldset legend,.customer-form fieldset legend,.sales-form fieldset legend,.stock-form fieldset legend{color:#174f82;padding:0 8px;font-size:.91rem;font-weight:950}.item-form fieldset,.customer-form fieldset,.sales-form fieldset,.stock-form fieldset{gap:12px}.item-form fieldset,.customer-form>form>fieldset,.sales-form fieldset,.stock-form fieldset{grid-template-columns:repeat(3,minmax(0,1fr))}.customer-form fieldset .national-address{background:#f8fbff;grid-column:1/-1;grid-template-columns:repeat(3,minmax(0,1fr));padding:12px}.customer-form.branch-entry-modal{flex-direction:column;width:min(1180px,100vw - 40px);height:min(760px,100vh - 40px);max-height:min(760px,100vh - 40px);display:flex}.customer-form.branch-entry-modal>.branch-entry-head{flex:0 0 84px}.customer-form.branch-entry-modal>.branch-error{flex:none;margin:10px 14px 0}.customer-form.branch-entry-modal>form,.customer-form.branch-entry-modal>.branch-error+form{background:#fff;flex:auto;align-content:start;gap:0;min-height:0;max-height:none;padding:0}.customer-form>form>:is(.customer-identity-fields,.customer-contact-fields,.customer-tax-fields,.customer-terms-fields),.customer-form .customer-contact-fields>.national-address{background:#fff;border:0;border-radius:0;grid-column:1/-1;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;width:100%;margin:0;padding:0;display:grid;overflow:visible}.customer-form .customer-note-field{grid-column:span 1}.customer-form fieldset>legend{color:#0f2e52;background:#fff;border:0;border-bottom:2px solid #2673b8;grid-column:1/-1;align-items:center;width:100%;min-height:40px;margin:0;padding:0 18px;font-size:1rem;font-weight:950;display:flex}.customer-form.master-entry-modal fieldset>label{border:0;border-bottom:1px solid #d8e2ec;color:#374151;background:#fff;border-inline-start:1px solid #edf3f9;grid-template-columns:120px minmax(0,1fr);align-items:center;gap:12px;min-width:0;min-height:68px;padding:8px 16px;font-size:.92rem;font-weight:950;line-height:1.25;display:grid}.customer-form.master-entry-modal fieldset>label>:is(input,select){box-sizing:border-box;color:#202a37;text-align:center;width:100%;min-width:0;max-width:none;height:44px;min-height:44px;box-shadow:none;border:1px solid #cfe0f0;border-radius:8px;flex:none;grid-column:2;padding:0 10px;font-size:.92rem;font-weight:900;background:#eaf1fb!important}.customer-form.master-entry-modal fieldset>label>small{color:#71839a;grid-column:2;margin:0;font-size:.76rem;font-weight:700;line-height:1.45}:is(.item-form fieldset>label:has(>:required) input,.item-form fieldset>label:has(>:required) select,.customer-form fieldset>label:has(>:required) input,.customer-form fieldset>label:has(>:required) select,.sales-form fieldset>label:has(>:required) input,.sales-form fieldset>label:has(>:required) select,.stock-form fieldset>label:has(>:required) input,.stock-form fieldset>label:has(>:required) select){background:#f8fbff;border-color:#9fc4e8}.user-entry-modal .branch-picker{background:#fff;border:1px solid #dce6f1;border-radius:10px;padding:12px 14px}.user-entry-modal .branch-picker legend{background:0 0;border:0}.user-entry-modal .branch-picker .branch-option{background:#f8fbff;border:0;border-radius:7px;min-height:42px;padding:0 12px}.user-entry-modal .form-problem,.master-entry-modal .error-list,.user-entry-modal .error-list{grid-column:1/-1}.sales-form>form,.stock-form>form{background:#f5f8fc}.sales-note,.stock-note,.sales-customer-credit,.sales-lines,.stock-lines-wrap,.item-units-wrap,.item-unit-warning,.item-form .form-row{grid-column:1/-1}.sales-document-actions,.stock-actions,.stock-form>footer{z-index:3;background:#fff;border-top:1px solid #dce6f1;position:sticky;inset-block-end:0}.profile-form>form{background:#f5f8fc;grid-template-columns:minmax(0,1fr);gap:12px;padding:14px}.profile-form .permission-profile-name{grid-column:1/-1;min-height:66px}.permission-selection-summary{color:#385673;background:#fff;border:1px solid #cfe0f0;border-radius:8px;grid-column:1/-1;justify-content:space-between;align-items:center;gap:12px;min-height:42px;padding:8px 14px;font-weight:850;display:flex}.permission-selection-summary strong{color:#0f4e88;text-align:center;background:#eaf3fb;border-radius:999px;min-width:72px;padding:4px 10px}.permission-groups-grid{grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:12px;display:grid}.permission-group-card{background:#fff;border:1px solid #cfe0f0;border-radius:9px;min-width:0;overflow:hidden}.permission-group-card>header{background:#f8fbff;border-bottom:2px solid #2673b8;justify-content:space-between;align-items:center;gap:10px;min-height:48px;padding:7px 10px 7px 12px;display:flex}.permission-group-card>header>div{align-items:center;gap:9px;min-width:0;display:flex}.permission-group-card>header strong{color:#102338;text-overflow:ellipsis;white-space:nowrap;font-size:.9rem;font-weight:950;overflow:hidden}.permission-group-card>header>div>span{color:#2673b8;text-align:center;background:#eef6ff;border:1px solid #b9d7f4;border-radius:6px;min-width:45px;padding:3px 7px;font-size:.74rem;font-weight:900}.profile-form .permission-group-toggle{cursor:pointer;color:#2673b8;flex-direction:row;flex:none;align-items:center;gap:6px;font-size:.78rem;font-weight:850;display:flex}.profile-form :is(.permission-group-toggle,.permission-cell-check) input{accent-color:#2673b8;border:1px solid #a8c9e8;border-radius:5px;flex:0 0 18px;width:18px;height:18px;margin:0;padding:0}.permission-matrix-wrap{width:100%;overflow-x:auto}.permission-matrix{border-collapse:collapse;table-layout:auto;direction:rtl;background:#fff;width:100%;min-width:440px}.permission-matrix th,.permission-matrix td{border-inline-start:1px solid #dce6f1;text-align:center;vertical-align:middle;border-bottom:1px solid #dce6f1;height:42px;padding:5px 8px}.permission-matrix thead th{color:#174f82;white-space:nowrap;background:#fff;border-bottom:2px solid #2673b8;font-size:.76rem;font-weight:900}.permission-matrix thead th:first-child,.permission-matrix tbody th{text-align:start;min-width:135px}.permission-matrix tbody th{color:#172033;white-space:nowrap;background:#f8fbff;font-size:.81rem;font-weight:900}.permission-matrix td{background:#fff;min-width:58px;padding:0}.permission-matrix td:has(input:checked){background:#eaf3fb}.profile-form .permission-cell-check{cursor:pointer;place-items:center;width:100%;min-height:41px;display:grid}.profile-form .permission-cell-check:hover{background:#eef6ff}.permission-unavailable{color:#9aabc0;font-weight:800}@media (width<=980px){:root{font-size:16px}.tenant-shell{display:block}.sidebar{border-radius:0;width:min(278px,86vw);height:100vh;margin-inline-start:min(-278px,-86vw);transition:margin-inline-start .18s;position:fixed;inset-block:0;inset-inline-start:0}.sidebar.mobile-open{margin-inline-start:0}.shell-content{padding:8px}.branch-list-toolbar,.branch-toolbar{flex-direction:column;align-items:stretch}.branch-search{flex-basis:auto;width:100%;max-width:none}.branch-list-actions{align-self:flex-start}.stock-adjustment-page .stock-adjustment-toolbar{grid-template-columns:1fr}.stock-adjustment-page .stock-load-sheet,.stock-full-count-control{width:100%}.stock-adjustment-sheet-head{flex-direction:column;align-items:flex-start}.stock-adjustment-page .stock-summary{grid-template-columns:1fr}.stock-adjustment-page .stock-adjustment-actions{grid-template-columns:1fr;display:grid}.stock-adjustment-actions .button{width:100%}.branch-entry-modal{width:min(100%,100vw - 20px)}.branch-entry-modal form,.master-entry-modal>form,.user-entry-modal>form,.item-form fieldset,.customer-form>form>fieldset,.customer-form fieldset .national-address,.sales-form fieldset,.stock-form fieldset,.customer-form>form>:is(.customer-identity-fields,.customer-contact-fields,.customer-tax-fields,.customer-terms-fields),.customer-form .customer-contact-fields>.national-address,.item-form-priority,.item-form-priority>fieldset:first-child,.item-form-priority>fieldset:last-child,.item-form .item-optional-fields,.item-form .item-opening-fields .form-row,.permission-groups-grid{grid-template-columns:1fr}.branch-list-toolbar,.branch-toolbar-query{flex-wrap:wrap}.branch-list-toolbar .stock-filters,.branch-list-toolbar .customer-filters,.branch-list-toolbar .sales-filters{order:2;width:100%;overflow-x:auto}.stock-form.stock-entry-modal .stock-document-header-fields{grid-template-columns:1fr}.sales-page .sales-list{min-width:850px}.sales-form.sales-entry-modal .sales-document-header-fields,.sales-form.sales-entry-modal .sales-document-header-fields.has-valid-until,.sales-form.sales-entry-modal .sales-payment-fields{grid-template-columns:1fr}}@media print{body *{visibility:hidden}.pos-sales-document-detail,.pos-sales-document-detail *,.stock-ledger-modal,.stock-ledger-modal *{visibility:visible}.pos-sales-document-detail,.stock-ledger-modal{width:100%;height:auto;max-height:none;box-shadow:none;border:0;position:absolute;inset:0;overflow:visible}.sales-detail-close,.pos-sales-document-detail button,.stock-ledger-modal .branch-entry-head .branch-entry-action,.stock-ledger-modal .stock-ledger-filters,.stock-ledger-modal .branch-pagination{display:none}.stock-ledger-modal .stock-ledger-body,.stock-ledger-modal .stock-ledger-table-wrap{overflow:visible}}
