/* Compact inventory and shared branch navigation. */
html.ux480 #root .branch-stock{gap:14px;min-width:0;max-width:1440px;width:100%;margin-inline:auto;--stock-line:#dce6e9}
html.ux480 #root .branch-stock-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;padding:0}
html.ux480 #root .branch-stock-heading{flex-wrap:wrap}
html.ux480 #root .branch-stock-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
html.ux480 #root .branch-stock-actions [hidden]{display:none!important}
html.ux480 #root .branch-stock-export{background:#176e76;color:#fff;border:1px solid #176e76;padding:8px 14px;font-size:13px!important;white-space:nowrap}
html.ux480 #root .branch-stock-export:hover,html.ux480 #root .branch-stock-export:focus-visible{background:#eaf3f2;color:#155861}
html.ux480 #root .branch-stock-export:disabled{opacity:.65;cursor:wait}
html.ux480 #root .branch-stock-heading h1,html.ux480 .announcement-heading h1{font-size:20px!important;line-height:1.7;margin:0!important;font-weight:600}
html.ux480 #root .branch-stock [data-updated]{display:block;min-height:18px;font-size:11px;color:var(--muted,#637980);line-height:1.7}
html.ux480 #root .branch-stock button{min-height:42px;border-radius:6px;letter-spacing:0}
html.ux480 #root .branch-stock-refresh{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--card,#fff);border:1px solid #ccdce0;padding:8px 12px;color:var(--text,#203c49);font-size:13px!important}
html.ux480 #root .branch-stock-refresh img{width:18px;height:18px;flex:none}
html.ux480 #root .branch-stock-refresh:disabled{opacity:.5}
html.ux480 #root .branch-stock-tools{padding:0 0 12px;border-bottom:1px solid var(--stock-line);min-width:0}
html.ux480 #root .branch-stock-query-row{display:grid;grid-template-columns:minmax(0,1fr) 190px;gap:10px;align-items:start;margin-bottom:12px}
html.ux480 #root .branch-stock-search{margin:0;padding:0;min-width:0}
html.ux480 #root .operator-search{position:relative;display:flex!important;align-items:center!important;flex-direction:row!important;min-width:0;margin:0!important;gap:0!important}
html.ux480 #root .operator-search input{width:100%;min-width:0;height:44px!important;min-height:44px!important;margin:0;padding:9px 12px 9px 48px!important;border:1px solid #bdcfd6;border-radius:6px!important;font-size:16px!important;font-weight:400!important;background:var(--card,#fff);color:var(--text,#203c49);box-shadow:none}
html.ux480 #root .operator-search input:focus{outline:2px solid #268b8033;outline-offset:1px;border-color:#25857c}
html.ux480 #root .operator-search button{position:absolute;left:4px;top:4px;width:36px;height:36px!important;min-height:36px!important;padding:8px!important;border:0!important;border-radius:4px!important;background:#eaf3f2;color:#176e76;display:grid;place-items:center}
html.ux480 #root .operator-search img{width:18px;height:18px}
html.ux480 #root .branch-stock-status{position:relative;min-width:0;border:0;background:none}
html.ux480 #root .branch-stock-status summary{display:flex;align-items:center;gap:6px;list-style:none;height:44px;margin:0;padding:8px 10px;border:1px solid #bdcfd6;border-radius:6px;background:var(--card,#fff);font-size:13px;cursor:pointer}
html.ux480 #root .branch-stock-status summary::-webkit-details-marker{display:none}
html.ux480 #root .branch-stock-status summary>span{font-size:12px;color:var(--muted,#637980)}
html.ux480 #root .branch-stock-status strong{min-width:0;flex:1;font-size:13px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.ux480 #root .branch-stock-status summary img{width:14px;height:14px;flex:none;transform:rotate(-90deg)}
html.ux480 #root .branch-stock-status[open] summary{border-color:#238677}
html.ux480 #root .branch-stock-status[open] .status-view-tabs{display:grid;gap:4px;position:absolute;top:50px;left:0;z-index:40;width:240px;max-width:calc(100vw - 28px);padding:8px;background:var(--card,#fff);border:1px solid #d5e2e5;border-radius:6px;box-shadow:0 8px 20px #15333e1a}
html.ux480 #root .status-view-tabs button{width:100%;text-align:right;background:transparent;border:0;padding:8px 10px;font-size:13px!important;color:var(--text,#203c49)}
html.ux480 #root .status-view-tabs button.active{background:#e6f3ee;color:#17654b}
html.ux480 #root .operator-branches{display:flex;align-items:center;gap:8px;min-width:0;max-width:100%;position:relative}
html.ux480 #root .operator-branches-label{font-size:12px;color:var(--muted,#637980);flex:none}
html.ux480 #root .operator-branch-strip{display:flex;align-items:center;flex:1;gap:6px;min-width:0;max-width:100%;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#b4c8cd transparent;padding:3px 2px 7px;direction:rtl}
html.ux480 #root .operator-branch-strip button{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:none;max-width:260px;min-height:40px!important;height:40px;padding:8px 14px!important;white-space:nowrap;background:var(--card,#fff);border:1px solid #d1e0e4;border-radius:6px!important;color:var(--text,#203c49);font-size:13px!important;font-weight:400!important;line-height:1.6}
html.ux480 #root .operator-branch-strip button>span{overflow:hidden;text-overflow:ellipsis}
html.ux480 #root .operator-branch-strip small{font-size:10px!important;color:inherit;background:#edf3f4;border-radius:3px;padding:0 4px}
html.ux480 #root .operator-branch-strip button.active{background:#176e76!important;color:white!important;border-color:#176e76;font-weight:500!important}
html.ux480 #root .operator-branch-strip button.active small{background:#ffffff26}
html.ux480 #root .operator-strip-arrow{display:none;flex:none;place-items:center;width:32px;min-height:40px!important;height:40px;padding:5px!important;background:var(--card,#fff);border:1px solid #d1e0e4;border-radius:5px!important}
html.ux480 #root .operator-branches.has-overflow .operator-strip-arrow{display:grid}
html.ux480 #root .operator-strip-arrow img{width:18px;height:18px}
html.ux480 #root .operator-strip-arrow:disabled{opacity:.35;cursor:default}
html.ux480 #root .branch-stock-list{min-width:0;background:transparent;padding:0}
html.ux480 #root .branch-stock-list>header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:0 0 10px;min-height:30px}
html.ux480 #root .branch-stock-list h2{display:flex;align-items:center;gap:8px;font-size:14px!important;margin:0;line-height:1.8;font-weight:500}
html.ux480 #root .branch-stock-list h2 span{font-size:12px;font-weight:400;color:#176e76}
html.ux480 #root .branch-stock-list>header>span{font-size:11px;color:var(--muted,#637980)}
html.ux480 #root .branch-stock .responsive-table{max-width:100%;margin:0;border:1px solid var(--stock-line)!important;border-radius:6px!important;background:var(--card,#fff)}
html.ux480 #root .branch-stock table{width:100%;min-width:0;table-layout:fixed;border-collapse:collapse;font-size:13px}
html.ux480 #root .branch-stock th,html.ux480 #root .branch-stock td{padding:12px 14px;border:0;border-bottom:1px solid var(--stock-line);white-space:normal;overflow-wrap:anywhere;text-align:right;line-height:1.8;font-size:14px!important}
html.ux480 #root .branch-stock th{background:#edf3f4;color:#4c6570;font-size:12px!important;font-weight:500}
html.ux480 #root .branch-stock th:first-child{width:38%}
html.ux480 #root .branch-stock th:last-child{width:22%;text-align:left}
html.ux480 #root .branch-stock th small{font-size:11px;white-space:nowrap}
html.ux480 #root .branch-stock tbody tr:last-child td{border-bottom:0}
html.ux480 #root .branch-stock tbody tr:nth-child(even){background:var(--card,#fff)}
html.ux480 #root .branch-stock tbody tr:hover{background:#f4f8f8}
html.ux480 #root .branch-stock td.branch-stock-price{text-align:left;color:#17654b;font-weight:600;overflow-wrap:anywhere;font-size:14px!important}
html.ux480 #root .branch-stock .branch-stock-state{font-size:12px;white-space:normal}
html.ux480 #root .branch-stock code{white-space:normal;overflow-wrap:anywhere;font-size:12px;background:transparent;padding:0}
html.ux480 #root .branch-stock td.branch-stock-empty{text-align:center;padding:32px 12px}
html.ux480 #root .branch-stock .branch-inventory-pages{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;margin:0}
html.ux480 #root .branch-stock .branch-inventory-pages>div{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px}
html.ux480 #root .branch-stock .branch-inventory-pages button{min-width:36px;margin:0;padding:6px 10px;font-size:12px;border:1px solid #c9d9df;background:var(--card,#fff);color:var(--text,#203c49)}
html.ux480 #root .branch-stock .branch-inventory-pages button[aria-current=page]{background:#176e76;border-color:#176e76;color:#fff;opacity:1}
html.ux480 #root .branch-stock .branch-inventory-pages button:disabled:not([aria-current]){opacity:.45;cursor:default}
html.ux480 #root .branch-stock button:focus-visible,html.ux480 #root .branch-stock summary:focus-visible,html.ux480 #root .operator-branches button:focus-visible{outline:2px solid #298c87;outline-offset:1px}
html.ux480 #root .branch-stock-count{font-size:12px;color:var(--muted,#526d76)}
html.ux480 #root .branch-stock .branch-inventory-error{margin:0 0 12px;padding:12px;border:1px solid #e8bc8a;border-radius:6px;background:#fff7ea;color:#88520f;font-size:13px;line-height:1.8}
@media(max-width:900px){
 html.ux480 #root .branch-stock{gap:12px}
 html.ux480 #root .branch-stock-heading h1{font-size:18px!important}
 html.ux480 #root .branch-stock-refresh{width:42px;height:42px;padding:9px}
 html.ux480 #root .branch-stock-refresh>span{display:none}
 html.ux480 #root .branch-stock-query-row{grid-template-columns:minmax(0,1fr) 108px;gap:8px;margin-bottom:10px}
 html.ux480 #root .branch-stock-status summary{padding:8px;gap:4px}
 html.ux480 #root .branch-stock-status summary>span{display:none}
 html.ux480 #root .branch-stock-status summary:before{content:'وضعیت';position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 html.ux480 #root .operator-branches{gap:0}
 html.ux480 #root .operator-branches-label,html.ux480 #root .operator-branches.has-overflow .operator-strip-arrow{display:none}
 html.ux480 #root .operator-branch-strip button{padding:8px 12px!important;max-width:220px}
 html.ux480 #root .branch-stock table .branch-stock-detail{display:none!important}
 html.ux480 #root .branch-stock th:first-child{width:60%}
 html.ux480 #root .branch-stock th:last-child{width:40%}
 html.ux480 #root .branch-stock th,html.ux480 #root .branch-stock td{padding:12px 10px}
 html.ux480 #root .branch-stock th{font-size:11px!important}
 html.ux480 #root .branch-stock td.branch-stock-name{font-size:14px!important;font-weight:400}
 html.ux480 #root .branch-stock td.branch-stock-price{font-size:13px!important}
 html.ux480 #root .branch-stock .branch-inventory-pages{justify-content:center}
 html.ux480 #root .branch-stock-count{flex-basis:100%;text-align:center}
 html.ux480 #root .branch-stock .branch-inventory-pages button{padding:6px 8px;min-width:32px}
}
html.ux480 #root .fl546-list .sw-actions .invoice-only-mine{display:flex!important;flex-direction:row!important;align-items:center!important;align-self:end;gap:8px!important;min-height:44px;padding:10px 12px;margin:0;border:1px solid #c9d9df;border-radius:6px;background:var(--card,#fff);white-space:normal;font-size:13px}
html.ux480 #root .fl546-list .sw-actions .invoice-only-mine>span{font-size:13px!important;line-height:1.8}
html.ux480 #root .fl546-list .invoice-only-mine input,html.ux480 .announcement-enabled input{width:18px!important;height:18px!important;min-height:18px!important;margin:0;padding:0!important;flex:none;accent-color:#176e76}
html.ux480 .fl546-list .invoice-only-mine:has(:checked){background:#e9f4f1;border-color:#5a9e8c;color:#17654b}
html.ux480 .announcement-settings{max-width:840px;border-top:1px solid #d6e2e5;padding-top:20px}
html.ux480 .announcement-message-label{display:flex;flex-direction:column;gap:12px;font-size:14px}
html.ux480 .announcement-message-label textarea{width:100%;min-height:200px;resize:vertical;font:inherit;font-size:16px!important;line-height:2;padding:14px;background:var(--card,#fff);color:var(--text,#203c49);border:1px solid #bacfd6;border-radius:6px}
html.ux480 .announcement-setting-actions{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;margin-top:16px}
html.ux480 .announcement-enabled{display:flex;align-items:center;gap:10px;font-size:13px}
html.ux480 .announcement-setting-actions>div{display:flex;gap:8px}
html.ux480 .announcement-setting-actions button,html.ux480 .system-announcement button{min-height:44px;padding:10px 18px;border:1px solid #bdd1d8;border-radius:6px;font:inherit;font-size:14px}
html.ux480 dialog.system-announcement{width:min(560px,calc(100vw - 32px));max-height:calc(100dvh - 40px);margin:auto;padding:0;border:1px solid #bdd1d8;border-radius:8px;overflow:auto;background:var(--card,#fff);color:var(--text,#203c49);direction:rtl}
html.ux480 dialog.system-announcement::backdrop{background:#122c3a80}
html.ux480 .system-announcement header{padding:20px 24px;border-bottom:1px solid #d6e2e5}
html.ux480 .system-announcement h2{font-size:18px;font-weight:600;line-height:1.7;margin:0}
html.ux480 .system-announcement-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px;line-height:2.1;padding:24px}
html.ux480 .system-announcement footer{display:flex;justify-content:flex-end;padding:16px 24px;border-top:1px solid #d6e2e5}
html.ux480 .system-announcement footer button{background:#176e76;color:white;border-color:#176e76}
@media(max-width:900px){
 html.ux480 .system-announcement-text{padding:18px}
 html.ux480 .announcement-setting-actions>div{width:100%;justify-content:flex-end}
}
