/* ROYAL MARKET — نظام التصميم الموحد (0.4.56). يُحمَّل بعد كل ملفات الأنماط: خط واحد، ألوان (styles.css :root)، حقول وأزرار
   وعناوين متناسقة، تركيز واضح، أرقام وباركود بعرض ثابت واتجاه صحيح. لا يغيّر الطباعة (لا قواعد @media print هنا). */
:root{--ds-font:"Segoe UI","Tahoma","Noto Sans Arabic","Arial",sans-serif;--ds-radius:10px;--ds-radius-lg:14px;--ds-field-h:42px;--ds-gap:12px;--ds-focus:0 0 0 3px rgba(15,118,110,.22)}
html,body,button,input,select,textarea{font-family:var(--ds-font)}
body{font-size:14.5px;line-height:1.55}
h1,h2,h3,h4{font-weight:800;color:var(--ink);letter-spacing:0}
h2{font-size:20px}h3{font-size:17px}h4{font-size:15px}
/* حقول موحدة */
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),select,textarea{border:1.5px solid #d6dde6;border-radius:var(--ds-radius);background:#fff;color:var(--ink);font-size:15px}
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),select{min-height:var(--ds-field-h)}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--brand);box-shadow:var(--ds-focus)}
input[readonly]{background:#f1f5f9}
input::placeholder,textarea::placeholder{color:#94a3b8}
/* الأرقام والباركود والعملة: أرقام بعرض ثابت، والباركود دائمًا من اليسار لليمين */
input[type=number],.money,.num,td.num{font-variant-numeric:tabular-nums}
#pBarcode,#pAltBarcodes,#scanInput,input[id*="arcode"],.mono{direction:ltr;unicode-bidi:plaintext;text-align:right}
/* أزرار */
button{border-radius:var(--ds-radius);font-weight:700}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:none;box-shadow:var(--ds-focus)}
.action,.btn-sm{border-radius:var(--ds-radius)}
/* بطاقات وأقسام */
.panel,.set-card,.modal-card{border-radius:var(--ds-radius-lg)}
.modal{background:rgba(15,23,42,.42);backdrop-filter:blur(2px)}
.error:empty{display:none}
.error{color:#be123c;font-weight:700}
/* ---------- رأس التطبيق: زر الكاشير، قائمة المستخدم، قائمة الشفت ---------- */
header.topbar{gap:8px}
.shell-pos-btn{background:var(--brand);color:#fff;border:0;padding:7px 14px;min-height:36px;font-size:13.5px;font-weight:800;border-radius:999px;cursor:pointer;white-space:nowrap}
.shell-pos-btn:hover{background:var(--brand-d)}
.shell-menu{position:relative;display:inline-flex}
.shell-menu[hidden]{display:none}
.shell-menu-btn{background:#fff;color:var(--ink);border:1.5px solid var(--line);padding:6px 12px;min-height:36px;font-size:13.5px;font-weight:700;border-radius:999px;cursor:pointer;white-space:nowrap;max-width:220px;overflow:hidden;text-overflow:ellipsis}
.shell-menu-btn:hover,.shell-menu-btn[aria-expanded="true"]{background:var(--brand-l);border-color:#99f6e4}
.shell-menu-list{position:absolute;top:calc(100% + 6px);inset-inline-end:0;z-index:4000;min-width:200px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 14px 40px rgba(15,23,42,.18);padding:6px;display:flex;flex-direction:column;gap:2px}
.shell-menu-list[hidden]{display:none}
.shell-menu-list>*{display:block;width:100%;text-align:right;margin:0!important;background:none!important;color:var(--ink)!important;border:0!important;border-radius:8px!important;padding:9px 12px!important;min-height:0!important;font-size:14px!important;font-weight:700!important;box-shadow:none!important;cursor:pointer}
.shell-menu-list>*:hover,.shell-menu-list>*:focus-visible{background:#f1f5f9!important}
.shell-menu-list #logoutBtn{color:#be123c!important;border-top:1px solid var(--line)!important;border-radius:0 0 8px 8px!important;margin-top:4px!important}
.shell-menu-list>[style*="display: none"]{display:none!important}
@media(max-width:700px){.shell-pos-btn{padding:6px 10px}.shell-menu-btn{max-width:140px}}
/* ---------- سلة الكاشير: اسم الصنف ثم وحدة البيع، بلا باركود ---------- */
.cart-product strong{display:block;font-size:15px;line-height:1.35}
.cart-product .cart-unit-tag{display:inline-block!important;width:auto!important;margin-top:3px;padding:1px 9px;border-radius:999px;background:#f1f5f9;color:#334155;font-size:12px;font-weight:700}
.cart-product .cart-price-edit{display:inline-block!important;margin-inline-start:8px!important;color:var(--muted)!important;font-size:11.5px!important}
/* عروض فعالة سريعة في شاشة البيع */
.pos-offers-quick{position:relative;margin-bottom:8px}
.pos-offers-btn{width:100%;min-height:40px;background:#fff7ed;color:#9a3412;border:1.5px solid #fdba74;font-weight:800;cursor:pointer}
.pos-offers-list{position:absolute;top:calc(100% + 4px);inset-inline:0;z-index:60;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 14px 40px rgba(15,23,42,.18);padding:6px;max-height:320px;overflow:auto;display:flex;flex-direction:column;gap:4px}
.pos-offers-list[hidden]{display:none}
.pos-offer-item{display:flex;justify-content:space-between;gap:10px;text-align:right;background:#fff;border:1px solid var(--line);padding:8px 10px;cursor:pointer;font-weight:600}.pos-offer-item:hover{background:#fff7ed}.pos-offer-item span{color:#b45309;white-space:nowrap}
#catalogReviewCard .cr-new{color:#0f766e}#catalogReviewCard .cr-batch{border:1px solid var(--line);border-radius:12px;padding:8px 12px;margin:8px 0}#catalogReviewCard .cr-batch summary{cursor:pointer;font-weight:800}#catalogReviewCard td{vertical-align:top;font-size:13px}
/* 0.4.56 مراجعة نهائية: اسم أوضح، والوحدة وزر تغييرها وتعديل السعر على سطر واحد تحت الاسم (لا يكبر الصف مع الأصناف متعددة الوحدات) */
.pos-cart-table .cart-product strong{font-size:16px;font-weight:800;line-height:1.35;overflow-wrap:anywhere}
.pos-cart-table .cart-product .cart-unit-switch{display:inline-flex!important;margin:2px 6px 0!important;vertical-align:middle;gap:4px}
.pos-cart-table .cart-product .cart-unit-chip{min-height:26px!important;padding:2px 10px!important;font-size:12px!important}
.pos-cart-table .cart-product .cart-unit-tag,.pos-cart-table .cart-product .cart-price-edit{vertical-align:middle}
.pos-cart-table td{padding-top:6px;padding-bottom:6px}
.pos-cart-table .cart-unit-price,.pos-cart-table .cart-line-total{font-variant-numeric:tabular-nums;white-space:nowrap}
/* عروض الكمية في السلة: سطر مضغوط بنفس أعمدة الأصناف، والأصناف المشاركة تظهر تحته عند فتحه */
.pos-cart-table tr.offer-group-row{cursor:pointer;background:#fffbeb!important}
.pos-cart-table tr.offer-group-row td{padding-top:6px;padding-bottom:6px;border-top:1px solid #fde68a}
.pos-cart-table tr.offer-group-row .cart-product strong{color:#92400e}
.pos-cart-table tr.offer-group-row .og-arrow{display:inline-block;width:14px;color:#b45309}
.pos-cart-table tr.offer-group-row .og-hint,.pos-cart-table tr.offer-group-row .og-sum{display:inline-block!important;margin-inline-start:8px;color:#a16207;font-size:11.5px}
.pos-cart-table .og-count{text-align:center;font-weight:800;color:#334155}
.pos-cart-table tr.offer-group-row .cart-line-total b{color:#92400e}
.pos-cart-table tr.offer-member-line{background:#fffdf5}
.pos-cart-table tr.offer-member-line .cart-product{padding-inline-start:22px;border-inline-start:3px solid #fcd34d}
.pos-cart-table tr.offer-remainder-row{cursor:pointer}
.pos-cart-table tr.offer-remainder-row .cart-unit-tag{background:#f1f5f9}
#cartBody tr.offer-group-row>td,#cartBody tr.offer-remainder-row>td{display:table-cell!important;width:auto;padding:6px 8px!important;vertical-align:middle;text-align:center!important}
#cartBody tr.offer-group-row>td.cart-product,#cartBody tr.offer-remainder-row>td.cart-product{text-align:right!important}
#cartBody tr.offer-remainder-row b{float:none}
#cartBody tr.offer-group-row small.cart-unit-tag,#cartBody tr.offer-remainder-row small.cart-unit-tag{display:inline-block!important;font-size:12px;color:#334155}
/* شاشة عرض الكمية */
.offer-form-v2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px}
.offer-form-v2 .of-wide{grid-column:1/-1}
.offer-form-v2 label{display:flex;flex-direction:column;gap:5px;font-weight:700;font-size:13.5px}
.offer-form-v2 .of-check{flex-direction:row;align-items:center;gap:8px}
.offer-form-v2 .of-type{border:1px solid var(--line);border-radius:12px;padding:8px 12px;display:grid;gap:6px}
.offer-form-v2 .of-type label{flex-direction:row;align-items:baseline;gap:8px;font-size:14px}
.offer-form-v2 .of-type small{font-weight:500;color:var(--muted)}
.offer-form-v2 .of-member{display:flex;justify-content:space-between;align-items:center;border:1px solid var(--line);border-radius:10px;padding:6px 10px;margin-top:6px}
.offer-form-v2 .of-member small{color:var(--muted);margin-inline-start:6px}
.offer-form-v2 .of-preview{background:#ecfdf5;border:1px solid #a7f3d0;color:#065f46;border-radius:10px;padding:8px 12px;font-weight:800;margin:0}
#offerMatches button{margin:3px}
.offer-form-v2 input[type=radio],.offer-form-v2 input[type=checkbox]{width:auto!important;min-height:0;flex:0 0 auto;margin:0}
.offer-form-v2 .of-type legend{font-weight:800;padding:0 4px}
/* ملخص المخزون أعلى «المنتجات والمخزون» (0.4.58) */
.stock-summary{background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px 12px;margin:0 0 12px}
.stock-summary.filtered{border-color:#99f6e4;background:#f0fdfa}
.stock-summary .stk-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:8px}
.stock-summary .stk-head strong{font-size:15px}.stock-summary .stk-head small{color:var(--muted)}
.stock-summary .stk-tools{margin-inline-start:auto;display:flex;gap:6px;align-items:center}
.stock-summary .stk-tools select{min-height:34px;padding:4px 8px;font-size:13px;width:auto}
.stock-summary .stk-refresh{min-height:34px;padding:4px 10px;background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:10px}
.stock-summary .stk-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.stock-summary .stk-card{border:1px solid var(--line);border-radius:12px;padding:8px 12px;display:flex;flex-direction:column;gap:2px;background:#fafafa;min-width:0}
.stock-summary .stk-card span{font-size:12.5px;color:var(--muted);font-weight:700}
.stock-summary .stk-card b{font-size:19px;color:var(--ink);font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.stock-summary .stk-card small{font-size:11.5px;color:var(--muted)}
.stock-summary .stk-cost{border-inline-start:4px solid #64748b}.stock-summary .stk-retail{border-inline-start:4px solid #0f766e}
.stock-summary .stk-profit{border-inline-start:4px solid #16a34a}.stock-summary .stk-profit b{color:#15803d}.stock-summary .stk-count{border-inline-start:4px solid #0ea5e9}
.stock-summary .stk-notes p{margin:6px 0 0;font-size:12.5px;color:#92400e}
@media(max-width:900px){.stock-summary .stk-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:340px){.stock-summary .stk-cards{grid-template-columns:1fr}}@media(max-width:480px){.stock-summary .stk-card b{font-size:16px}.stock-summary .stk-card{padding:7px 9px}}
/* تنظيف الأصناف غير المفعّلة */
#inactiveCleanupCard .ic-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;margin:10px 0}
#inactiveCleanupCard .ic-grid>div{border:1px solid var(--line);border-radius:12px;padding:8px 10px;display:flex;flex-direction:column}
#inactiveCleanupCard .ic-grid b{font-size:20px}#inactiveCleanupCard .ic-grid span{font-size:12.5px;color:var(--muted)}
#inactiveCleanupCard .ic-del{border-color:#fecaca!important;background:#fef2f2}#inactiveCleanupCard .ic-warn{border-color:#fde68a!important;background:#fffbeb}
#inactiveCleanupCard .ic-check{display:flex;gap:8px;align-items:flex-start;margin:8px 0}#inactiveCleanupCard .ic-check input{width:auto}
#inactiveCleanupCard .ok{color:#15803d;font-weight:700}
/* لا شفت مفتوح: زر الشفت في الرأس يقول «بدء الشفت» ويُبرز (0.4.60) */
.shell-no-shift .shell-menu-btn{background:#ecfdf5;border-color:#34d399;color:#065f46}
.shell-menu-list>[hidden]{display:none!important}
/* «🤖 تقارير Telegram» (0.4.65) */
#telegramSetupCard .tgs-state{font-weight:800;margin:6px 0}#telegramSetupCard .tgs-state.off{color:#b91c1c}#telegramSetupCard .tgs-state.warn{color:#b45309}#telegramSetupCard .tgs-state.on{color:#15803d}
#telegramSetupCard .tgs-step{border:1px solid var(--line);border-radius:12px;padding:8px 12px;margin:8px 0}#telegramSetupCard .tgs-step h4{margin:2px 0 6px}
#telegramSetupCard .tgs-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center}#telegramSetupCard .tgs-row input{flex:1;min-width:220px}
#telegramSetupCard .tgs-slots,#telegramSetupCard .tgs-pending{margin:4px 0;padding-inline-start:18px}#telegramSetupCard .tgs-pending li{margin:4px 0}
/* «🗄️ درج النقد» (0.4.66) */
#drawerSetupCard .ds-list{padding-inline-start:18px;margin:10px 0}#drawerSetupCard .ds-list li{display:flex;justify-content:space-between;align-items:center;gap:10px;border-bottom:1px solid var(--line);padding:6px 0}
#drawerSetupCard .ds-list small{color:var(--muted)}
/* «🧰 أدوات وإعدادات متقدمة» (0.4.67) */
#settingsAdvanced>summary{cursor:pointer;display:flex;flex-direction:column;gap:2px;list-style:none}#settingsAdvanced>summary::-webkit-details-marker{display:none}
#settingsAdvanced>summary b::before{content:"◂ ";color:var(--muted)}#settingsAdvanced[open]>summary b::before{content:"▾ "}
#settingsAdvanced>summary small{color:var(--muted);font-weight:500}#settingsAdvanced .sa-body{display:grid;gap:12px;margin-top:12px}#settingsAdvanced .sa-body>.set-card{margin:0;box-shadow:none;border:1px solid var(--line)}
#telegramSetupCard .tgs-pending li{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;border:1px solid #a7f3d0;background:#ecfdf5;border-radius:10px;padding:8px 10px;list-style:none}
#telegramSetupCard .tgs-pending{padding:0}#telegramSetupCard button[disabled]{opacity:.5}

/* 0.4.76: اسم الموقع بجانب اسم الكاشير في سطر الفاتورة وشاشة الطلب، ومصدر قوائم المراجعة */
.site-name-tag{display:block;font-size:12px;color:#5b6b60;font-weight:500;margin-top:2px}
.ow-item .ow-site-name{display:block;font-size:12px;color:#5b6b60;margin:2px 0}
.cr-source{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:8px 0}
.cr-server-list{list-style:none;padding:0;margin:8px 0;display:grid;gap:6px}

/* 0.4.78: شريط «تعديل فاتورة #N» فوق السلة */
.invoice-edit-context{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center;background:#fff8e6;border:1px solid #f2c94c;border-radius:12px;padding:8px 12px;margin:0 0 8px}
.invoice-edit-context .ie-diff{font-weight:800}
.invoice-edit-context .ie-diff.pay{color:#1f6a3a}
.invoice-edit-context .ie-diff.back{color:#a3302a}
.invoice-edit-context .action{margin-inline-start:auto}

/* 0.4.78: «📸 جلسة تصوير» — شاشة كاملة فوق النوافذ (35) وتحت التنبيهات (40) */
.photo-session{position:fixed;inset:0;z-index:38;background:#101814;color:#fff;display:flex;flex-direction:column;gap:8px;padding:10px;padding-bottom:calc(10px + env(safe-area-inset-bottom))}
.photo-session .ps-top{display:flex;gap:8px;align-items:center}
.photo-session .ps-top select{flex:1;min-height:44px;border-radius:10px;font:inherit}
.photo-session .ps-top span{font-weight:700;white-space:nowrap}
.photo-session .ps-item{background:#fff;color:#111;border-radius:12px;padding:10px 12px;display:grid;gap:2px}
.photo-session .ps-item b{font-size:20px;line-height:1.3}
.photo-session .ps-item span{font-size:13px;color:#445}
.photo-session .ps-item .ps-retake{justify-self:start;background:#fff3d6;color:#7a4b00;border-radius:999px;padding:1px 9px;font-weight:700;font-size:12px}
.photo-session .ps-cam{position:relative;flex:1;min-height:0;border-radius:12px;overflow:hidden;background:#000}
.photo-session video{width:100%;height:100%;object-fit:cover}
.photo-session .ps-frame{position:absolute;inset:12%;border:2px dashed rgba(255,255,255,.55);border-radius:12px;pointer-events:none}
.photo-session .ps-tip{position:absolute;inset-inline:0;top:8px;text-align:center;font-size:13px;color:#fff;text-shadow:0 1px 3px #000;margin:0;pointer-events:none}
.photo-session .ps-state{position:absolute;inset-inline:0;bottom:8px;text-align:center;font-size:14px;text-shadow:0 1px 3px #000}
.photo-session .ps-actions{display:grid;grid-template-columns:1fr 2fr 1fr;gap:8px}
.photo-session .ps-actions button{min-height:56px;font-size:16px}
.photo-session .ps-shoot{font-size:20px!important}
.photo-session .ps-uploads{display:flex;gap:12px;justify-content:center;align-items:center;flex-wrap:wrap;font-size:13px}
.photo-session .ps-uploads button{min-height:36px;font-size:13px;padding:2px 10px}
.photo-session .ps-uploads .bad{color:#ff9c94}
.photo-session.ps-shot .ps-cam{outline:4px solid #fff}
body.photo-session-open{overflow:hidden}
/* 0.4.83 تكبير صور الأصناف + صورة الصنف بطلبات الموقع */
.op-thumb img,img.photo-preview,.ow-thumb,img[data-zoom]{cursor:zoom-in}
.img-preview{position:fixed;inset:0;z-index:70;background:rgba(10,14,12,.92);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:16px;touch-action:pinch-zoom}
.img-preview img{max-width:96vw;max-height:84vh;object-fit:contain;background:#fff;border-radius:10px}
.img-preview p{color:#fff;font-size:16px;font-weight:700;text-align:center;margin:0;max-width:96vw}
.img-preview .img-preview-none{background:#fff;color:#334;padding:24px 28px;border-radius:12px}
.img-preview-close{position:absolute;top:12px;inset-inline-end:12px;width:44px;height:44px;border-radius:50%;border:0;background:#fff;color:#111;font-size:20px;cursor:pointer}
.ow-item{display:flow-root}
.ow-item .ow-thumb{float:left;width:58px;height:58px;margin:0 0 4px 10px;padding:0;border:1px solid #dfe5e1;border-radius:8px;background:#fff;overflow:hidden}
.ow-item .ow-thumb img{width:100%;height:100%;object-fit:contain;display:block}
/* 0.4.84 أصناف انباعت ومخزونها صفر */
.review-negative{border:1px solid #f2c2bd;background:#fff6f5;border-radius:12px;padding:10px 12px;margin:0 0 14px}
.review-negative h3{margin:0 0 4px;color:#9b1c13;font-size:16px}
.review-negative .neg-qty{color:#b42318;font-weight:800}
.photo-session .ps-item .ps-units{font-weight:700;color:#234}
.photo-session .ps-item .ps-units-tip{justify-self:start;background:#e3f4ea;color:#14532d;border-radius:8px;padding:2px 8px;font-weight:700}
.photo-session .ps-tools{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.photo-session .ps-tools button{min-height:40px;font-size:14px;padding:4px 10px}
.photo-session .ps-tools select{min-height:40px;border-radius:10px;font:inherit;max-width:40%}
.photo-session .ps-tools input[type=range]{flex:1;min-width:90px}
.photo-session .ps-find{background:#fff;color:#111;border-radius:12px;padding:8px;display:grid;gap:6px;max-height:42vh;overflow:auto}
.photo-session .ps-find-row{display:flex;gap:6px}
.photo-session .ps-find-row input{flex:1;min-height:44px;font:inherit;font-size:16px;border:1px solid #bbb;border-radius:10px;padding:0 10px}
.photo-session .ps-hits{display:grid;gap:4px}
.photo-session .ps-hits button{display:flex;justify-content:space-between;gap:8px;text-align:start;min-height:42px;border:1px solid #ddd;border-radius:10px;background:#f6f7f6;color:#111;font:inherit;padding:4px 10px}
.photo-session .ps-hits small{color:#667;white-space:nowrap}
.photo-session .ps-hits p{margin:4px;color:#667}
.photo-session .hidden{display:none!important}

/* Photography backlog: independent scroll area, camera stream is never restarted. */
.photo-session .ps-backlog{position:absolute;inset:60px 10px 12px;z-index:3;display:flex;flex-direction:column;gap:10px;min-height:0;border-radius:14px;padding:12px;background:#f5f8f6;color:#14271c;box-shadow:0 8px 40px #0008}
.photo-session .ps-backlog-head{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-shrink:0}
.photo-session .ps-backlog-filters{display:grid;grid-template-columns:1fr 1fr;gap:8px;flex-shrink:0}
.photo-session .ps-backlog-filters label{display:grid;gap:4px;min-width:0;font-size:13px}
.photo-session .ps-backlog-filters select{width:100%;min-width:0;min-height:44px;font:inherit;border:1px solid #b8cabc;border-radius:10px;background:#fff;color:#14271c}
.photo-session .ps-backlog-filters button{grid-column:1/-1;min-height:40px}
.photo-session .ps-backlog #psPendingCount{margin:0;font-size:13px}
.photo-session .ps-backlog-rows{overflow:auto;overscroll-behavior:contain;min-height:0;display:flex;flex-direction:column;gap:8px;padding-bottom:8px}
.photo-session .ps-backlog-rows h3{margin:10px 0 0;font-size:16px}
.photo-session .ps-backlog-item{display:grid;gap:4px;width:100%;text-align:start;border:1px solid #d2dfd5;border-radius:12px;background:#fff;color:#14271c;padding:12px;font:inherit;min-height:64px;flex-shrink:0;overflow-wrap:anywhere}
.photo-session .ps-backlog-item span{font-size:14px;font-weight:700;color:#20623d}
.photo-session .ps-backlog-item small{font-size:12px;color:#5b6c61;direction:ltr;text-align:start}
.photo-session .ps-backlog-empty{line-height:1.7}
/* Photography workspace: camera first; optional tools never take its height. */
.photo-session{height:100dvh;box-sizing:border-box;gap:8px;padding: max(10px,env(safe-area-inset-top)) 12px max(10px,env(safe-area-inset-bottom));background:#101e19;overflow:hidden}
.photo-session>*{flex-shrink:0;min-width:0}
.photo-session .ps-top{gap:10px;min-height:44px}
.photo-session .ps-heading{display:flex;align-items:baseline;gap:12px;flex:1;min-width:0}
.photo-session .ps-heading>b{font-size:18px}.photo-session #psCount{color:#aec9bb;font-size:13px}
.photo-session .ps-category-bar{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px}
.photo-session .ps-category-bar label{color:#bed3c6;font-size:13px}
.photo-session .ps-category-bar select{min-width:0;width:100%;height:44px;font:inherit;font-size:15px;background:#20382d;color:#fff;border:1px solid #4d7360;border-radius:12px;padding:0 8px}
.photo-session #psPending{min-height:44px;border-color:#62b48a;background:#d7f5e5;color:#143e2b;font-weight:700;font-size:13px;padding:6px 10px}
.photo-session .ps-item{position:relative;padding:9px 12px;gap:3px;background:#f0f6f2;max-height:116px;overflow:auto}
.photo-session .ps-item b{font-size:18px;line-height:1.3}.photo-session .ps-item span{font-size:12px}.photo-session .ps-item .ps-barcode{display:none}
.photo-session .ps-item .ps-units-tip{background:transparent;padding:0;font-size:12px}.photo-session .ps-item button{min-height:32px;padding:2px 8px;font-size:12px;justify-self:start}
.photo-session .ps-cam{flex:1 1 0;min-height:140px;border-radius:18px}
.photo-session .ps-tip{top:10px;margin:0 8px;padding:5px 8px;background:#0007;border-radius:8px;font-size:12px}
.photo-session .ps-frame{inset:10%;border:1px solid #ffffffa0;border-radius:16px}
.photo-session .ps-utility{display:grid;grid-template-columns:1.5fr 1.2fr .7fr;gap:6px}
.photo-session .ps-utility button{min-height:44px;font-size:13px;padding:4px 5px;background:#243b30;color:#fff;border:1px solid #456350;border-radius:12px}
.photo-session .ps-actions{grid-template-columns:1fr 1.8fr 1fr;gap:8px}.photo-session .ps-actions button{min-height:54px;border-radius:14px;font-size:14px}.photo-session .ps-shoot{background:#7ee0aa;color:#103622;border:0;font-size:19px!important;font-weight:800}
.photo-session .ps-tools{position:absolute;inset:auto 12px 92px;z-index:4;background:#f3f8f5;color:#173523;padding:16px;box-shadow:0 12px 50px #0009;border-radius:18px;max-height:55dvh;overflow:auto;gap:10px}
.photo-session .ps-tools button,.photo-session .ps-tools select{min-height:44px}.photo-session #psToolsClose{margin-inline-start:auto}
.photo-session .ps-find{position:absolute;inset:116px 12px auto;z-index:4;max-height:50dvh;box-shadow:0 10px 40px #0009}
.photo-session .ps-uploads{min-height:18px;gap:8px;font-size:12px}.photo-session .ps-backlog{inset:64px 10px 10px}
@media(min-width:800px){.photo-session{padding-inline:max(24px,calc((100vw - 860px)/2))}.photo-session .ps-cam{min-height:220px}.photo-session .ps-item{max-height:110px}}
@media(max-height:600px){.photo-session{gap:4px;padding-block:6px;overflow:auto}.photo-session .ps-item{max-height:75px}.photo-session .ps-item .ps-units-tip,.photo-session .ps-tip{display:none}.photo-session .ps-cam{min-height:140px}.photo-session .ps-actions button{min-height:44px}}
@media(max-height:450px) and (orientation:landscape){.photo-session{gap:4px;overflow:hidden}.photo-session .ps-top{min-height:30px}.photo-session .ps-top button{min-height:30px;padding:2px 10px}.photo-session .ps-category-bar select,.photo-session #psPending{height:36px;min-height:36px}.photo-session .ps-item{max-height:44px;padding:4px 10px}.photo-session .ps-item b{font-size:15px}.photo-session .ps-item .ps-units-tip{display:none}.photo-session .ps-cam{min-height:100px}.photo-session .ps-utility button{min-height:36px}.photo-session .ps-uploads{min-height:16px}}
