:root{
    --bg:#f3f6f8;
    --card:#ffffff;
    --ink:#14202b;
    --muted:#6d7a86;
    --line:#dde4e8;
    --primary:#1267e8;
    --primary-dark:#0e56c3;
    --success:#138a52;
    --warning:#c67a00;
    --danger:#c93a45;
    --sidebar:#101821;
    --sidebar-soft:#1a2733;
    --radius:16px;
    --shadow:0 2px 12px rgba(20,32,43,.05);
    --mobile-header:60px;
    --mobile-nav:64px;
}

*{box-sizing:border-box}
html{width:100%;max-width:100%;overflow-x:hidden;-webkit-text-size-adjust:100%}
body{margin:0;width:100%;max-width:100%;overflow-x:hidden;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;background:var(--bg);color:var(--ink);line-height:1.45}
body.menu-open{overflow:hidden}
a{text-decoration:none;color:inherit}
img,svg{max-width:100%}
button,input,select,textarea{font:inherit;max-width:100%}
button{touch-action:manipulation}
input,select,textarea{min-width:0}

.app-shell{min-height:100vh;min-width:0}
main{margin-left:235px;min-width:0;min-height:100vh}
.content{width:100%;max-width:1450px;margin:0 auto;padding:32px;min-width:0}

/* Desktop sidebar */
.sidebar{position:fixed;inset:0 auto 0 0;width:235px;background:var(--sidebar);color:#fff;padding:24px 16px;display:flex;flex-direction:column;z-index:30;overflow-y:auto}
.brand{font-weight:900;font-size:22px;letter-spacing:-.8px;white-space:nowrap}
.brand span{color:#55a2ff}
.brand.big{font-size:32px}
.sidebar-nav{display:grid;gap:6px;margin:34px 0}
.sidebar-nav a,.mobile-drawer-nav a{padding:12px 14px;border-radius:10px;color:#c9d3dc;font-weight:700;transition:.15s ease}
.sidebar-nav a:hover,.sidebar-nav a.active{background:var(--sidebar-soft);color:#fff}
.sidebar-user{margin-top:auto;display:grid;gap:4px;padding:12px}
.sidebar-user small,.mobile-drawer-user small{color:#8291a0;text-transform:uppercase;font-size:11px;font-weight:800;letter-spacing:.6px}
.link-btn{border:0;background:none;color:#9fbedf;padding:8px 0;text-align:left;cursor:pointer}
.link-btn:hover{color:#fff}

/* Mobile navigation */
.mobile-header,.mobile-nav,.mobile-drawer,.mobile-drawer-backdrop{display:none}
.mobile-menu-toggle{width:42px;height:42px;padding:10px;border:0;border-radius:10px;background:#1a2733;display:grid;align-content:center;gap:4px;cursor:pointer}
.mobile-menu-toggle span{display:block;width:100%;height:2px;border-radius:4px;background:#fff}
.mobile-user{width:36px;height:36px;display:grid;place-items:center;border-radius:50%;background:#1a2733;color:#fff;font-weight:900;text-transform:uppercase}
.mobile-drawer-backdrop[hidden]{display:none!important}
.mobile-drawer-backdrop{position:fixed;inset:0;background:rgba(4,10,16,.58);z-index:80;opacity:0;transition:opacity .2s ease}
.mobile-drawer-backdrop.open{opacity:1}
.mobile-drawer{position:fixed;top:0;bottom:0;left:0;width:min(330px,88vw);background:var(--sidebar);color:#fff;z-index:90;transform:translateX(-102%);transition:transform .22s ease;padding:18px;overflow-y:auto;box-shadow:20px 0 40px rgba(0,0,0,.22)}
.mobile-drawer.open{transform:translateX(0)}
.mobile-drawer-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:4px 2px 18px}
.mobile-drawer-close{width:42px;height:42px;border:0;border-radius:10px;background:#1a2733;color:#fff;font-size:30px;line-height:1;cursor:pointer}
.mobile-drawer-nav{display:grid;gap:5px}
.mobile-drawer-nav a.active{background:#1d3150;color:#fff}
.mobile-drawer-user{margin-top:24px;padding-top:18px;border-top:1px solid #283542;display:grid;gap:14px}
.mobile-drawer-user>div{display:grid;gap:3px}

/* Headings, cards and actions */
.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:24px;min-width:0}
.page-head>div:first-child{min-width:0}
.page-head h1{font-size:30px;line-height:1.15;margin:2px 0 5px;letter-spacing:-.8px;overflow-wrap:anywhere}
.page-head p{margin:0;color:var(--muted);overflow-wrap:anywhere}
.eyebrow{font-size:12px;font-weight:800;color:var(--primary);letter-spacing:1.2px}
.head-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;min-width:0}
.head-actions form{margin:0}
.btn{border:0;border-radius:10px;padding:11px 16px;min-height:44px;font-weight:800;cursor:pointer;display:inline-flex;justify-content:center;align-items:center;gap:8px;line-height:1.2;text-align:center;transition:transform .08s ease,background .15s ease;max-width:100%}
.btn:active{transform:translateY(1px)}
.btn.primary{background:var(--primary);color:#fff}
.btn.primary:hover{background:var(--primary-dark)}
.btn.secondary{background:#e8eef4;color:#263746}
.btn.success{background:var(--success);color:#fff}
.btn.warning{background:#fff0cf;color:#835300}
.btn.full{width:100%;margin:5px 0}
.btn.huge{width:min(680px,100%);font-size:18px;padding:17px}
.button-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}

.card,.list-card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:20px;margin-bottom:20px;min-width:0}
.card.compact{padding:14px}
.card h2{margin:0 0 16px;font-size:18px;line-height:1.25}
.card h3{overflow-wrap:anywhere}

/* Dashboard */
.stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-bottom:22px}
.stat{background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px;display:grid;gap:9px;min-width:0;transition:transform .12s ease,box-shadow .12s ease}
a.stat:hover{transform:translateY(-1px);box-shadow:0 6px 20px rgba(20,32,43,.07)}
.stat span{font-size:13px;color:var(--muted);font-weight:700;line-height:1.25;overflow-wrap:anywhere}
.stat strong{font-size:30px;line-height:1.05;overflow-wrap:anywhere}
.stat.warning{border-top:3px solid #e9aa32}
.stat.danger{border-top:3px solid var(--danger)}
.actions-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.action-card{border:1px solid var(--line);border-radius:12px;padding:18px;display:grid;gap:7px;min-width:0;background:#fff}
.action-card:hover{border-color:#b8c9d5;background:#fbfdff}
.action-card span{color:var(--muted);font-size:14px;overflow-wrap:anywhere}

/* Lists */
.list-card{padding:0;overflow:hidden}
.list-row,.product-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 18px;border-bottom:1px solid var(--line);min-width:0}
.list-row:last-child,.product-row:last-child{border-bottom:0}
.list-row:hover,.product-row:hover{background:#f8fafc}
.list-row>div:first-child{display:grid;gap:4px;min-width:0}
.list-row b,.list-row small,.mini-row b,.mini-row small,.product-row b,.product-row span{overflow-wrap:anywhere;word-break:break-word}
.list-row small,.mini-row small{color:var(--muted)}
.row-end{display:flex;align-items:center;justify-content:flex-end;gap:14px;min-width:0;text-align:right}
.row-end strong{overflow-wrap:anywhere}
.badge{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.4px;background:#e7edf2;color:#51606c;white-space:nowrap}
.badge.open,.badge.imported{background:#e9f2ff;color:#155bb9}
.badge.closed,.badge.complete,.badge.packed,.badge.invoiced,.badge.completed{background:#dff5e9;color:#0e7040}
.badge.short,.badge.cancelled{background:#ffe1e4;color:#a52731}
.badge.over,.badge.warning,.badge.ready,.badge.picking,.badge.picked{background:#fff0c7;color:#8b5c00}
.badge.big{font-size:13px;padding:8px 13px}

/* Forms */
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;min-width:0}
.span-2{grid-column:span 2}
label{display:grid;gap:7px;font-size:13px;font-weight:800;color:#40505d;min-width:0}
input,select,textarea{width:100%;border:1px solid #cfd9df;border-radius:9px;padding:11px 12px;background:#fff;color:#17232d;outline:none;min-height:44px}
textarea{min-height:auto;resize:vertical}
input:focus,select:focus,textarea:focus{border-color:#6ba7ef;box-shadow:0 0 0 3px rgba(18,103,232,.1)}
.inline-form{display:flex;align-items:end;gap:12px;min-width:0}
.inline-form label{flex:1;min-width:0}
.check{display:flex;align-items:center;gap:8px;min-height:44px}
.check input{width:auto;min-height:0;flex:0 0 auto}
.manual-item{display:grid;grid-template-columns:minmax(0,2fr) minmax(100px,1fr);gap:8px;margin-bottom:8px}
.filters{display:flex;gap:9px;margin-bottom:16px;align-items:center;min-width:0}
.filters input{max-width:420px}
.filters select{max-width:230px}

/* Scanner */
.scanner-panel{background:#111b24;color:#fff;border-radius:16px;padding:17px;margin-bottom:18px;min-width:0;overflow:hidden}
.scan-status{font-size:12px;font-weight:900;color:#7ce2ad;margin-bottom:12px}
.pulse{display:inline-block;width:8px;height:8px;border-radius:50%;background:#40d78a;box-shadow:0 0 0 5px rgba(64,215,138,.12);margin-right:7px}
.scanner-grid{display:grid;grid-template-columns:minmax(180px,2fr) minmax(90px,.7fr) minmax(120px,1fr) minmax(180px,1.3fr) auto;gap:10px;align-items:end;min-width:0}
.scanner-panel label{color:#b9c8d4;min-width:0}
.scanner-panel input,.scanner-panel select{background:#1c2a36;color:#fff;border-color:#344554;min-width:0}
.scan-btn{min-height:44px}
.scan-feedback{margin-top:10px;border-radius:9px;padding:10px 12px;background:#22313e;color:#c8d6e0;font-weight:800;overflow-wrap:anywhere}
.scan-feedback.success{background:#123d2a;color:#9bf0c0}
.scan-feedback.danger{background:#4a1c21;color:#ffb8be}
.scan-feedback.warning{background:#4b3914;color:#ffe1a2}
.scan-feedback.info{background:#173553;color:#b7dcff}
.scan-price-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:10px}
.scan-price-grid input{background:#1c2a36;color:#fff;border-color:#344554}

/* Tables */
.table-wrap{width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;border-radius:10px}
table{width:100%;border-collapse:collapse;min-width:650px}
th,td{text-align:left;padding:11px 10px;border-bottom:1px solid var(--line);white-space:nowrap}
th{font-size:12px;color:var(--muted);text-transform:uppercase}
td{font-size:14px}
.num{text-align:right}
.state-short{background:#fff8f8}
.state-complete{background:#f4fcf7}
.state-over{background:#fffaf0}

/* Two-column blocks */
.grid-2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;min-width:0}
.grid-2>*,.grid-2>div{min-width:0}
.mini-row{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:10px 0;border-bottom:1px solid var(--line);min-width:0}
.mini-row>div{display:grid;gap:3px;min-width:0}
.mini-row>span,.mini-row>strong{min-width:0;text-align:right;overflow-wrap:anywhere}
.mini-row:last-child{border-bottom:0}
.danger-text{color:var(--danger)}
.empty{padding:22px;color:var(--muted);text-align:center;overflow-wrap:anywhere}

/* Products */
.product-list{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden}
.product-row{justify-content:flex-start}
.product-row img,.img-placeholder{width:52px;height:52px;flex:0 0 52px;border-radius:9px;object-fit:cover;background:#eef2f5;display:grid;place-items:center}
.grow{flex:1;display:grid;gap:4px;min-width:0}
.grow span{color:var(--muted)}
.stock-number{text-align:right;display:grid;flex:0 0 auto}
.stock-number small{color:var(--muted)}
.stock-number strong{font-size:20px}
.price{display:grid;text-align:right;min-width:0}
.price strong{font-size:23px;overflow-wrap:anywhere}
.price del{color:var(--muted)}
.code-chip{display:inline-block;max-width:100%;padding:8px 10px;background:#eef3f7;border-radius:8px;font-family:monospace;margin:0 6px 6px 0;overflow-wrap:anywhere;word-break:break-all}
.barcode-line{display:flex;align-items:center;gap:5px;min-width:0;flex-wrap:wrap}
.attr{display:flex;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line);padding:10px 0;min-width:0}
.attr>*{min-width:0;overflow-wrap:anywhere}
.attr span{text-align:right}

/* Orders */
.order-item{display:grid;grid-template-columns:46px minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line);min-width:0}
.order-item img{width:44px;height:44px;object-fit:cover;border-radius:7px}
.order-item>div:nth-child(2){display:grid;min-width:0}
.order-item b,.order-item span{overflow-wrap:anywhere}
.order-item span{font-size:13px;color:var(--muted)}
.invoice-box{background:#f3f8fc;border:1px solid var(--line);padding:13px;border-radius:10px;display:grid;gap:5px;min-width:0}
.invoice-box>*{overflow-wrap:anywhere}

/* Picking */
.pick-list{display:grid;gap:12px;margin-bottom:170px;min-width:0}
.pick-card{background:#fff7df;border:2px solid #edc963;border-radius:16px;padding:17px;min-width:0}
.pick-card.done{background:#e8f8ef;border-color:#66c991}
.pick-top{display:flex;justify-content:space-between;gap:15px;min-width:0}
.pick-top>div:first-child{min-width:0}
.pick-top b,.pick-top h2{overflow-wrap:anywhere}
.pick-top h2{font-size:17px;margin:4px 0}
.pick-count{font-size:16px;white-space:nowrap;flex:0 0 auto;text-align:right}
.pick-count strong{font-size:27px}
.locations{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.locations span{background:rgba(255,255,255,.75);border-radius:8px;padding:7px 9px;font-size:13px;overflow-wrap:anywhere}
.sticky-scanner,.sticky-action{position:fixed;z-index:25;bottom:0;left:235px;right:0;background:rgba(17,27,36,.97);padding:13px max(20px,calc((100vw - 235px - 1450px)/2 + 32px));display:grid;grid-template-columns:minmax(0,2fr) 110px 110px;gap:8px;align-items:center;box-shadow:0 -8px 25px rgba(0,0,0,.12)}
.sticky-scanner input{background:#fff}
.sticky-scanner .scan-feedback{grid-column:1/-1;margin:0}
.sticky-action{display:flex;justify-content:center}

/* Alerts, login, misc */
.alert{border-radius:10px;padding:11px 14px;margin-bottom:15px;font-weight:700;overflow-wrap:anywhere}
.alert.success{background:#dff5e9;color:#0e7040}
.alert.danger{background:#ffe1e4;color:#a52731}
.login-page{min-height:100vh;display:grid;place-items:center;background:#101821;padding:20px}
.login-card{background:#fff;border-radius:18px;padding:28px;width:min(420px,100%);display:grid;gap:16px}
.login-card h1{margin:2px 0}
.login-card .inline{display:flex;align-items:center;gap:7px}
.login-card .inline input{width:auto;min-height:0}
.note p{color:var(--muted);margin-bottom:0}
hr{border:0;border-top:1px solid var(--line);margin:18px 0}
.user-editor{border-bottom:1px solid var(--line);padding:10px 0}
.user-editor summary{cursor:pointer;display:grid;gap:3px;overflow-wrap:anywhere}
.user-editor summary span{font-size:12px;color:var(--muted)}
.user-editor form{margin-top:14px}

/* Pagination independent from Tailwind */
.wms-pagination{margin:18px 0 4px}
.pagination-desktop{display:flex;align-items:center;justify-content:space-between;gap:14px}
.page-summary{font-size:13px;color:var(--muted)}
.page-links{display:flex;align-items:center;gap:5px;flex-wrap:wrap;justify-content:flex-end}
.page-square,.page-btn{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);background:#fff;color:#263746;border-radius:9px;font-weight:800;min-height:40px}
.page-square{min-width:40px;padding:0 9px}
.page-square.active{background:var(--primary);border-color:var(--primary);color:#fff}
.page-square.disabled,.page-btn.disabled{opacity:.45;cursor:not-allowed}
.pagination-mobile{display:none}

/* Medium screens */
@media (max-width:1200px){
    .stats{grid-template-columns:repeat(3,minmax(0,1fr))}
    .scanner-grid{grid-template-columns:minmax(0,1.5fr) 110px minmax(150px,1fr);}
    .scanner-grid label:nth-child(4){grid-column:1/3}
    .scanner-grid .scan-btn{grid-column:3}
}

/* Tablet / mobile shell */
@media (max-width:1024px){
    .sidebar{display:none}
    main{margin-left:0;padding-top:var(--mobile-header);padding-bottom:var(--mobile-nav)}
    .content{padding:20px 18px 24px}

    .mobile-header{display:flex;position:fixed;top:0;left:0;right:0;z-index:60;background:#101821;color:#fff;height:var(--mobile-header);align-items:center;justify-content:space-between;padding:0 14px;padding-top:env(safe-area-inset-top);box-shadow:0 3px 12px rgba(0,0,0,.15)}
    .mobile-brand{position:absolute;left:50%;transform:translateX(-50%);font-size:20px}
    .mobile-drawer,.mobile-drawer-backdrop{display:block}
    .mobile-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));position:fixed;bottom:0;left:0;right:0;z-index:60;background:#fff;border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom);min-height:var(--mobile-nav);box-shadow:0 -5px 18px rgba(20,32,43,.08)}
    .mobile-nav a{min-width:0;text-align:center;padding:7px 3px 8px;font-size:11px;font-weight:800;color:#667684;display:grid;place-items:center;gap:1px}
    .mobile-nav a span{display:block;font-size:19px;line-height:1}
    .mobile-nav a.active{color:var(--primary);background:#f4f8ff}

    .grid-2{grid-template-columns:1fr}
    .actions-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .scanner-grid{grid-template-columns:minmax(0,1fr) 110px}
    .scanner-grid label:nth-child(3),.scanner-grid label:nth-child(4){grid-column:1/-1}
    .scanner-grid .scan-btn{grid-column:1/-1}
    .scan-price-grid{grid-template-columns:1fr}
    .sticky-scanner,.sticky-action{left:0;bottom:calc(var(--mobile-nav) + env(safe-area-inset-bottom));padding:10px 12px;grid-template-columns:minmax(0,1fr) 86px 82px}
    .pick-list{margin-bottom:210px}
}

/* Phones / SUNMI */
@media (max-width:700px){
    .content{padding:16px 12px 22px}
    .page-head{flex-direction:column;align-items:stretch;gap:14px;margin-bottom:18px}
    .page-head h1{font-size:24px;letter-spacing:-.45px}
    .page-head p{font-size:14px}
    .head-actions{width:100%;justify-content:stretch}
    .head-actions>.btn,.head-actions>a.btn,.head-actions form{flex:1 1 100%;width:100%}
    .head-actions form .btn{width:100%}
    .page-head>.badge{align-self:flex-start}
    .page-head>.price{text-align:left}

    .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
    .stat{padding:14px;gap:7px}
    .stat strong{font-size:25px}
    .actions-grid{grid-template-columns:1fr}
    .action-card{padding:15px}

    .card{padding:15px;border-radius:13px}
    .card.compact{padding:12px}
    .list-card{border-radius:13px}

    input,select,textarea{font-size:16px}
    .form-grid{grid-template-columns:1fr;gap:13px}
    .span-2{grid-column:auto}
    .inline-form{display:grid;grid-template-columns:1fr;align-items:stretch}
    .inline-form .btn{width:100%}
    .manual-item{grid-template-columns:minmax(0,1fr) 92px}
    .button-row{display:grid;grid-template-columns:1fr}
    .button-row .btn{width:100%}

    .filters{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:stretch}
    .filters input,.filters select{max-width:none}
    .filters select{grid-column:1/-1}
    .filters .btn{min-width:88px}

    .list-row{align-items:flex-start;flex-direction:column;gap:9px;padding:14px}
    .list-row>div:first-child{width:100%}
    .row-end{width:100%;justify-content:space-between;text-align:left;gap:10px}
    .row-end strong{font-size:14px}

    .product-row{padding:11px;gap:10px;align-items:center}
    .product-row img,.img-placeholder{width:46px;height:46px;flex-basis:46px}
    .grow{font-size:14px}
    .grow span{font-size:12px;line-height:1.25}
    .stock-number strong{font-size:18px}

    .scanner-panel{margin-left:-12px;margin-right:-12px;border-radius:0;padding:14px 12px}
    .scanner-grid{grid-template-columns:minmax(0,1fr) 92px;gap:8px}
    .scanner-grid label:first-child{grid-column:1/-1}
    .scanner-grid label:nth-child(2){grid-column:1}
    .scanner-grid label:nth-child(3){grid-column:2}
    .scanner-grid label:nth-child(4){grid-column:1/-1}
    .scanner-grid .scan-btn{grid-column:1/-1}

    .mini-row{align-items:flex-start;gap:10px}
    .mini-row>span,.mini-row>strong{flex:0 0 auto;max-width:42%}
    .attr{align-items:flex-start;flex-direction:column;gap:4px}
    .attr span{text-align:left}

    .order-item{grid-template-columns:40px minmax(0,1fr) auto}
    .order-item img{width:38px;height:38px}

    .pick-card{padding:13px}
    .pick-top{align-items:flex-start}
    .pick-top h2{font-size:15px;line-height:1.25}
    .pick-count{font-size:14px}
    .pick-count strong{font-size:23px}
    .locations{display:grid;grid-template-columns:1fr}

    .sticky-scanner{grid-template-columns:minmax(0,1fr) 74px;gap:7px}
    .sticky-scanner #pickScan{grid-column:1/-1}
    .sticky-scanner #pickQty{grid-column:1}
    .sticky-scanner #pickSubmit{grid-column:2}
    .sticky-scanner .scan-feedback{grid-column:1/-1}
    .sticky-action{padding:10px 12px}
    .btn.huge{font-size:15px;padding:14px}

    /* Card-like mobile tables */
    .table-wrap{overflow:visible;border-radius:0}
    table.responsive-table{min-width:0;display:block}
    .responsive-table thead{display:none}
    .responsive-table tbody{display:grid;gap:10px}
    .responsive-table tr{display:block;border:1px solid var(--line);border-radius:11px;overflow:hidden;background:#fff}
    .responsive-table td{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;width:100%;padding:10px 12px;white-space:normal;text-align:right;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
    .responsive-table td:last-child{border-bottom:0}
    .responsive-table td::before{content:attr(data-label);font-size:11px;font-weight:900;color:var(--muted);text-transform:uppercase;text-align:left;flex:0 0 40%}
    .responsive-table td.num{text-align:right}
    .responsive-table td.empty{display:block;text-align:center}
    .responsive-table td.empty::before{display:none}
    .responsive-table tr.state-short{background:#fff8f8}
    .responsive-table tr.state-complete{background:#f4fcf7}
    .responsive-table tr.state-over{background:#fffaf0}

    .pagination-desktop{display:none}
    .pagination-mobile{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px}
    .page-btn{padding:0 10px;font-size:13px}
    .page-btn:last-child{justify-self:end}
    .page-status{font-size:12px;color:var(--muted);font-weight:800;white-space:nowrap}
}

@media (max-width:420px){
    .mobile-brand{font-size:18px}
    .mobile-menu-toggle{width:38px;height:38px}
    .mobile-user{width:34px;height:34px}
    .content{padding-left:10px;padding-right:10px}
    .stats{grid-template-columns:1fr}
    .stat{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px}
    .stat span{font-size:13px}
    .stat strong{font-size:24px;text-align:right}
    .scanner-panel{margin-left:-10px;margin-right:-10px}
    .manual-item{grid-template-columns:minmax(0,1fr) 82px}
    .product-row{align-items:flex-start}
    .stock-number{padding-top:2px}
    .row-end{align-items:center}
    .mini-row{font-size:13px}
}

@media (prefers-reduced-motion:reduce){
    *,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}
}

/* WooCommerce manual import */
.import-progress{border:1px solid var(--line);border-radius:12px;padding:14px;background:#f8fafb;margin:14px 0}
.import-progress-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px}
.import-progress-head strong{min-width:0;overflow-wrap:anywhere}
.import-progress-head span{font-weight:900;color:var(--primary);white-space:nowrap}
.import-progress-track{height:12px;background:#e2e8ed;border-radius:999px;overflow:hidden}
.import-progress-bar{height:100%;background:var(--primary);border-radius:999px;transition:width .2s ease}
.import-progress small{display:block;margin-top:8px;color:var(--muted);overflow-wrap:anywhere}
code{background:#eef3f7;border-radius:6px;padding:2px 6px;overflow-wrap:anywhere;word-break:break-all}

@media (max-width:640px){
    .import-progress-head{align-items:flex-start}
}

/* WMS workflow / warehouse redesign 2026-09-10 */
.alert.warning{background:#fff3cf;color:#7a5200}
.badge.received{background:#e9f2ff;color:#155bb9}
.badge.handed_to_carrier{background:#e9e5ff;color:#5a3ca8}
.badge.success{background:#dff5e9;color:#0e7040}
.badge.danger{background:#ffe1e4;color:#a52731}
.btn.small{min-height:36px;padding:8px 11px;font-size:12px}
.muted{color:var(--muted)}
.settings-hint{margin-top:14px;padding:11px 13px;background:#f6f8fa;border-radius:9px;color:var(--muted);font-size:13px}
.template-stack{display:grid;gap:10px}
.template-editor{border:1px solid var(--line);border-radius:12px;background:#fafcfd;overflow:hidden}
.template-editor summary{cursor:pointer;padding:14px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px;font-weight:800}
.template-editor summary code{font-size:11px;font-weight:700}
.template-fields{padding:2px 16px 16px}
.sticky-actions{position:sticky;bottom:calc(12px + env(safe-area-inset-bottom));z-index:20;display:flex;justify-content:flex-end;margin:0 0 20px;pointer-events:none}
.sticky-actions .btn{pointer-events:auto;box-shadow:0 8px 24px rgba(18,103,232,.22)}

.warehouse-admin-grid{align-items:start}
.warehouse-list{display:grid;gap:16px}
.warehouse-card{margin-bottom:0}
.warehouse-card.is-inactive{opacity:.72}
.warehouse-card-head,.warehouse-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.warehouse-title-row{justify-content:flex-start}
.warehouse-title-row h2{margin:0}
.warehouse-card p{color:var(--muted);margin:4px 0 0}
.warehouse-settings{margin:14px 0;border:1px solid var(--line);border-radius:10px;padding:0 12px}
.warehouse-settings summary,.location-row summary{cursor:pointer;font-weight:800;padding:12px 0}
.warehouse-settings form{padding:2px 0 14px}
.location-row{border-top:1px solid var(--line)}
.location-row summary{display:flex;align-items:center;justify-content:space-between;gap:12px}
.location-meta{font-size:12px;color:var(--muted);font-weight:700}
.location-edit-form{padding:0 0 14px}

.stock-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:20px}
.metric-card{background:#fff;border:1px solid var(--line);border-radius:13px;padding:16px;display:grid;gap:6px}
.metric-card span{color:var(--muted);font-size:13px;font-weight:700}
.metric-card strong{font-size:25px;line-height:1.1}
.warehouse-stock-block{border:1px solid var(--line);border-radius:12px;overflow:hidden;margin-bottom:12px}
.warehouse-stock-head{display:flex;justify-content:space-between;align-items:center;gap:12px;background:#f7f9fb;padding:13px 14px}
.warehouse-stock-head>div{display:grid;gap:2px}
.warehouse-stock-head small{color:var(--muted)}
.warehouse-stock-head strong{font-size:18px;white-space:nowrap}
.warehouse-stock-locations{padding:4px 14px}
.stock-location-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:9px 0;border-bottom:1px solid #edf1f3;font-size:13px}
.stock-location-row:last-child{border-bottom:0}

.card-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.card-title-row h2{margin:0}
.timeline-row{display:grid;grid-template-columns:14px minmax(0,1fr);gap:10px;position:relative;padding:5px 0 16px}
.timeline-row:not(:last-child)::before{content:"";position:absolute;left:6px;top:16px;bottom:-4px;width:2px;background:#dbe3e8}
.timeline-dot{width:12px;height:12px;border-radius:50%;background:var(--primary);margin-top:4px;z-index:1}
.timeline-row>div:last-child{display:grid;gap:3px}
.timeline-row small{color:var(--muted)}
.timeline-row p{margin:3px 0 0;color:#4b5965;font-size:13px}
.workflow-card form{margin:6px 0}
.workflow-steps{display:grid;gap:0;margin:2px 0 20px}
.workflow-step{display:grid;grid-template-columns:22px minmax(0,1fr);gap:10px;align-items:center;min-height:38px;position:relative;color:#81909c}
.workflow-step:not(:last-child)::after{content:"";position:absolute;left:10px;top:25px;bottom:-13px;width:2px;background:#dfe6eb}
.workflow-step span{width:20px;height:20px;border:2px solid #c9d3da;border-radius:50%;background:#fff;z-index:1}
.workflow-step.done{color:#397054}
.workflow-step.done span{background:var(--success);border-color:var(--success)}
.workflow-step.active{color:var(--ink)}
.workflow-step.active span{border:6px solid var(--primary)}
.tracking-box{display:grid;gap:2px;margin:10px 0;padding:11px 13px;background:#f6f8fa;border-radius:10px}
.tracking-box small{color:var(--muted)}
.customer-note{margin-top:14px;padding:12px;border-radius:10px;background:#fff8dd;border:1px solid #f0dfa0}
.customer-note p{margin:5px 0 0;white-space:pre-wrap}
.danger-zone{border-color:#efc5c9;background:#fffafb}
.danger-zone p{color:#8a4b50;font-size:13px}

@media (max-width:700px){
    .stock-summary-grid{grid-template-columns:1fr}
    .metric-card{grid-template-columns:minmax(0,1fr) auto;align-items:center}
    .metric-card strong{text-align:right;font-size:21px}
    .location-row summary{align-items:flex-start;flex-direction:column;gap:3px}
    .warehouse-stock-head{align-items:flex-start}
    .stock-location-row{align-items:flex-start}
    .template-editor summary{align-items:flex-start;flex-direction:column}
    .card-title-row{align-items:stretch}
    .card-title-row form,.card-title-row .btn{width:100%}
    .sticky-actions{bottom:calc(var(--mobile-nav) + 10px + env(safe-area-inset-bottom))}
}

/* Searchable warehouse location picker */
.location-picker-label{display:grid;gap:7px;min-width:0;position:relative}
.location-picker-label>span{font-weight:800;font-size:13px;color:#2d3b47}
.location-picker-label>span em{font-style:normal;color:var(--danger)}
.location-picker-label>small{color:var(--muted);font-size:12px;line-height:1.35}
.location-picker{position:relative;min-width:0}
.location-picker-search{width:100%;padding-right:44px!important;background:#fff}
.location-picker-clear{position:absolute;right:5px;top:50%;transform:translateY(-50%);width:34px;height:34px;border:0;border-radius:8px;background:transparent;color:#8a98a5;font-size:24px;line-height:1;cursor:pointer;display:none;place-items:center;z-index:3}
.location-picker.has-value .location-picker-clear{display:grid}
.location-picker-clear:hover{background:#eef3f7;color:#344653}
.location-picker-menu{position:absolute;z-index:70;left:0;right:0;top:calc(100% + 6px);background:#fff;border:1px solid #cfd9df;border-radius:12px;box-shadow:0 16px 40px rgba(20,32,43,.16);overflow:hidden;max-height:min(390px,55vh)}
.location-picker-menu[hidden]{display:none!important}
.location-picker-hint{padding:9px 11px;border-bottom:1px solid var(--line);background:#f7f9fb;color:var(--muted);font-size:11px}
.location-picker-options{max-height:min(340px,49vh);overflow-y:auto;overscroll-behavior:contain;padding:5px}
.location-picker-option{width:100%;border:0;background:#fff;border-radius:8px;padding:10px 11px;display:grid;grid-template-columns:minmax(90px,.32fr) minmax(0,1fr) auto;gap:10px;text-align:left;cursor:pointer;color:var(--ink);align-items:center}
.location-picker-option[hidden]{display:none!important}
.location-picker-option:hover,.location-picker-option.active{background:#edf5ff}
.location-picker-option strong{font-size:13px;overflow-wrap:anywhere}
.location-picker-option span{font-size:12px;color:#52616d;overflow-wrap:anywhere}
.location-picker-more{padding:9px 11px;text-align:center;color:var(--muted);font-size:11px;border-top:1px solid var(--line);background:#f7f9fb}
.location-picker-empty{padding:16px 12px;text-align:center;color:var(--muted);font-size:13px}

.location-picker-option.preferred{background:#f5fbf6}
.location-picker-option.preferred:hover,.location-picker-option.preferred.active{background:#e8f7eb}
.location-picker-stock{justify-self:end;font-size:11px;font-weight:800;color:#217a3b;background:#e8f7eb;border-radius:999px;padding:4px 8px;white-space:nowrap}
.stock-product-info{display:block;margin-top:6px;color:var(--muted);font-size:12px;line-height:1.4}
.stock-product-info.loading{color:#52616d}
.stock-product-info.success{color:#217a3b;font-weight:700}
.stock-product-info.error{color:var(--danger);font-weight:700}

@media (max-width:700px){
    .location-picker-menu{position:fixed;left:12px;right:12px;top:auto;bottom:calc(var(--mobile-nav) + 12px + env(safe-area-inset-bottom));max-height:58vh;border-radius:14px;z-index:120}
    .location-picker-options{max-height:calc(58vh - 44px)}
    .location-picker-option{grid-template-columns:1fr;gap:2px;padding:11px}
    .location-picker-stock{justify-self:start;margin-top:5px}
    .location-picker-option strong{font-size:14px}
    .location-picker-option span{font-size:13px}
}

/* WMS 5.3.2 – location picker locked until a product is identified */
.location-picker.is-disabled{opacity:.62}
.location-picker.is-disabled .location-picker-search{background:#f2f5f7!important;color:#7a8791;cursor:not-allowed}
.location-picker.is-disabled .location-picker-clear{display:none!important}
.receipt-location-field{display:grid;gap:7px;min-width:0}
.location-suggestion{font-size:12px;line-height:1.4;color:var(--muted);padding:8px 10px;border-radius:9px;background:#f5f7f9;border:1px solid var(--line)}
.location-suggestion.is-recommended{color:#216e39;background:#eef9f0;border-color:#cfe9d5}
.location-suggestion.is-warning{color:#8a5b00;background:#fff8e8;border-color:#f0ddb0}
.location-picker.is-disabled .location-picker-menu{display:none!important}

/* WMS 5.6 – összekészítés forráshely / kézi jelölés */
.pick-product-title{min-width:0}
.pick-actions-row{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:14px;padding-top:14px;border-top:1px solid rgba(17,24,39,.09)}
.pick-manual-form{display:grid;grid-template-columns:minmax(240px,1fr) 90px auto;gap:8px;align-items:end;flex:1;min-width:min(100%,520px)}
.pick-manual-form label{margin:0}
.pick-manual-form select,.pick-manual-form input{width:100%}
.picked-locations span{background:#fff;border:1px solid #b7e4c7}
.compact-alert{margin:8px 0 0;padding:9px 11px}
@media(max-width:720px){
  .pick-actions-row{align-items:stretch}
  .pick-manual-form{grid-template-columns:1fr 84px}
  .pick-manual-form label:first-child{grid-column:1/-1}
  .pick-manual-form button{grid-column:1/-1;width:100%}
  .pick-actions-row>form:not(.pick-manual-form){width:100%}
  .pick-actions-row>form:not(.pick-manual-form) .btn{width:100%}
}

/* WMS 5.7 – order, Billingo and shipping detail polish */
.pick-actions-row .pick-manual-form,
.pick-actions-row > form:not(.pick-manual-form){margin-top:10px}
.customer-data-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:8px}
.data-field{min-width:0;border:1px solid var(--line);background:#fafcfd;border-radius:10px;padding:10px 12px;display:grid;gap:4px}
.data-field.wide{grid-column:1/-1}
.data-field small{color:var(--muted);font-weight:700;font-size:11px;text-transform:uppercase;letter-spacing:.03em}
.data-field a,.data-field span,.data-field b{overflow-wrap:anywhere}
.form-stack{display:grid;gap:11px}
.compact-grid{gap:10px}
.check-row{display:flex!important;align-items:flex-start;gap:9px;font-weight:700;font-size:13px}
.check-row input{width:18px!important;height:18px;min-height:18px;margin:1px 0 0;flex:0 0 auto}
.secondary-action-details{border:1px solid var(--line);border-radius:11px;padding:0 12px;margin-top:12px;background:#fafcfd}
.secondary-action-details>summary{cursor:pointer;font-weight:800;padding:12px 0}
.secondary-action-details>form,.secondary-action-details>.form-stack{padding:2px 0 14px}
.danger-details{border-color:#efc5c9;background:#fffafb}
.invoice-document{border:1px solid var(--line);border-radius:12px;padding:13px;background:#fafcfd;display:grid;gap:10px}
.invoice-document.compact{padding:11px;margin-top:8px}
.invoice-document-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.invoice-document-head>div{display:grid;gap:2px;min-width:0}
.invoice-document-head small{color:var(--muted);font-weight:700}
.invoice-document-head b{overflow-wrap:anywhere}
.invoice-meta-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;font-size:12px;color:var(--muted)}
.invoice-meta-grid span{background:#fff;border:1px solid var(--line);border-radius:8px;padding:8px}
.invoice-meta-grid b{color:var(--ink)}
.action-grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.action-grid-2 form{margin:0}
.document-list{display:grid;gap:8px;margin-top:14px}
.document-list h3{font-size:14px;margin:0 0 2px}
.shipment-card .shipment-form{margin-top:13px;padding-top:13px;border-top:1px solid var(--line)}
.secondary-action-details p{margin:0 0 10px}
.badge.refunded{background:#f5e9ff;color:#6f2e91}

@media(max-width:700px){
  .customer-data-grid{grid-template-columns:1fr}
  .data-field.wide{grid-column:auto}
  .invoice-meta-grid{grid-template-columns:1fr}
  .action-grid-2{grid-template-columns:1fr}
  .compact-grid{grid-template-columns:1fr!important}
  .compact-grid>div:empty{display:none}
}

/* WMS 5.8 – rendelési pénzügyi nézet + Billingo kártya */
input[type="checkbox"],input[type="radio"]{width:18px!important;height:18px!important;min-width:18px!important;min-height:18px!important;padding:0!important;flex:0 0 18px}
.order-financial-card{overflow:hidden}
.order-total-chip{display:inline-flex;align-items:center;border-radius:999px;background:#eaf3ff;color:#145bb8;padding:7px 11px;font-weight:900;white-space:nowrap}
.order-lines{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff}
.order-line{display:grid;grid-template-columns:minmax(250px,2.1fr) 64px minmax(105px,.8fr) minmax(100px,.75fr) minmax(125px,.9fr);gap:12px;align-items:center;padding:12px 14px;border-bottom:1px solid var(--line);min-width:0}
.order-line:last-child{border-bottom:0}
.order-line-head{background:#f6f8fa;color:var(--muted);font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.04em;padding-top:9px;padding-bottom:9px}
.order-line-head>div:not(:first-child){text-align:right}
.order-line-product{display:grid;grid-template-columns:46px minmax(0,1fr);gap:10px;align-items:center;min-width:0}
.order-line-product>div:last-child{display:grid;gap:2px;min-width:0}
.order-line-product b,.order-line-product small{overflow-wrap:anywhere}
.order-line-product small{color:var(--muted)}
.order-line-image{width:46px;height:46px;border-radius:9px;background:#f1f4f6;overflow:hidden;display:grid;place-items:center}
.order-line-image img{width:100%;height:100%;object-fit:cover}
.order-line-cell{text-align:right;display:grid;gap:2px;justify-items:end;min-width:0}
.order-line-cell small{color:var(--muted);font-size:11px}
.old-price{text-decoration:line-through;color:#8a98a5!important}
.order-shipping-block{margin-top:16px;border-top:1px solid var(--line);padding-top:14px}
.order-shipping-block h3{font-size:14px;margin:0 0 8px}
.financial-row{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:8px 0;border-bottom:1px dashed #e3e8eb;min-width:0}
.financial-row:last-child{border-bottom:0}
.financial-row>div:first-child{display:grid;gap:2px;min-width:0}
.financial-row small{color:var(--muted);font-size:11px;overflow-wrap:anywhere}
.financial-row-values{display:grid!important;gap:2px!important;text-align:right;justify-items:end}
.financial-row-values span{font-size:11px;color:var(--muted)}
.coupon-chips{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}
.coupon-chips span{border:1px solid #d9e4ec;background:#f8fafb;border-radius:999px;padding:6px 9px;font-size:12px;color:#50606c}
.order-totals-box{margin-top:16px;margin-left:auto;width:min(470px,100%);border:1px solid var(--line);border-radius:12px;background:#f9fbfc;padding:10px 13px}
.order-totals-box>div{display:flex;justify-content:space-between;gap:20px;padding:6px 0;font-size:13px}
.order-totals-box .tax-row{border-top:1px solid var(--line);margin-top:4px;padding-top:10px}
.order-totals-box .grand-total-row{border-top:1px solid var(--line);margin-top:4px;padding-top:11px;align-items:center}
.order-totals-box .grand-total-row strong{font-size:20px}

.billingo-card-head{align-items:flex-start}
.billingo-card-head>div:first-child{min-width:0}
.billingo-card-head p{margin:-8px 0 0;font-size:13px;max-width:680px}
.billing-preview{display:grid;grid-template-columns:110px minmax(0,1fr) minmax(150px,.7fr);gap:9px;margin-bottom:10px}
.billing-preview>div{border:1px solid var(--line);background:#f8fafb;border-radius:10px;padding:10px 12px;display:grid;gap:3px;min-width:0}
.billing-preview small{font-size:10px;color:var(--muted);font-weight:900;text-transform:uppercase;letter-spacing:.04em}
.billing-preview strong{overflow-wrap:anywhere}
.billing-preview-note{font-size:12px;color:var(--muted);margin:0 0 15px;line-height:1.5}
.billing-date-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.billing-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.billing-options.single-column{grid-template-columns:1fr}
.billing-check{display:flex!important;align-items:flex-start!important;gap:10px!important;border:1px solid var(--line);background:#fafcfd;border-radius:10px;padding:11px 12px;cursor:pointer;min-height:66px}
.billing-check>input{margin:2px 0 0!important}
.billing-check>span{display:grid;gap:2px;min-width:0}
.billing-check b{color:var(--ink);font-size:13px}
.billing-check small{color:var(--muted);font-size:11px;font-weight:600;line-height:1.35}
.billing-lookup-status{border:1px solid #d9e4ec;background:#f7fafc;color:#52616d;border-radius:9px;padding:9px 11px;font-size:12px;margin-bottom:12px}
.invoice-search-details{margin-top:14px}
.invoice-meta-grid span{display:grid;gap:2px}

@media(max-width:900px){
  .order-line{grid-template-columns:minmax(220px,2fr) 54px minmax(100px,.8fr) minmax(95px,.7fr) minmax(115px,.9fr);gap:8px;padding:10px}
  .billing-preview{grid-template-columns:1fr 1fr}
  .billing-preview>div:last-child{grid-column:1/-1}
}
@media(max-width:700px){
  .order-lines{border:0;background:transparent;display:grid;gap:10px}
  .order-line-head{display:none}
  .order-line{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--line);border-radius:11px;background:#fff;padding:12px;gap:9px}
  .order-line-product{grid-column:1/-1;padding-bottom:9px;border-bottom:1px solid var(--line)}
  .order-line-cell{display:flex;justify-content:space-between;align-items:center;text-align:right;justify-items:unset;border-bottom:1px dashed #e4e9ec;padding:5px 0;gap:8px}
  .order-line-cell::before{content:attr(data-label);color:var(--muted);font-size:11px;font-weight:800;text-transform:uppercase;text-align:left}
  .order-line-cell.total-cell{grid-column:1/-1;border-bottom:0;padding-top:8px}
  .order-line-cell.price-cell{grid-column:1/-1}
  .order-line-cell.price-cell strong{margin-left:auto}
  .financial-row{align-items:flex-start}
  .financial-row-values{max-width:48%}
  .order-totals-box{width:100%}
  .billing-date-grid,.billing-options{grid-template-columns:1fr}
  .billing-preview{grid-template-columns:1fr}
  .billing-preview>div:last-child{grid-column:auto}
  .billing-check{min-height:0}
}


/* WMS 5.8.2 – order detail visual hardening + cache-safe layout */
@media (min-width:1101px){
  .order-detail-grid{grid-template-columns:minmax(0,1.28fr) minmax(380px,.72fr);align-items:start}
}
.order-financial-card,.billingo-card{overflow:visible}
.order-line-image{
  width:52px!important;height:52px!important;min-width:52px!important;min-height:52px!important;
  max-width:52px!important;max-height:52px!important;overflow:hidden!important;border-radius:10px!important;
  background:#f4f6f8!important;border:1px solid #e5eaee;display:grid!important;place-items:center!important;
}
.order-line-image img{
  display:block!important;width:50px!important;height:50px!important;min-width:50px!important;min-height:50px!important;
  max-width:50px!important;max-height:50px!important;object-fit:contain!important;object-position:center!important;
}
.order-line-product{grid-template-columns:52px minmax(0,1fr)!important}
.order-line-product b{font-size:13px;line-height:1.35}
.order-line-product small{font-size:11px}

.billingo-card{padding:20px}
.billingo-create-form{gap:14px}
.billing-options{align-items:stretch}
.billing-check{
  display:flex!important;grid-template-columns:none!important;align-items:flex-start!important;justify-content:flex-start!important;
  gap:10px!important;min-height:0!important;padding:12px!important;margin:0!important;
}
.billing-check>input[type="checkbox"]{
  -webkit-appearance:checkbox!important;appearance:auto!important;
  display:inline-block!important;width:18px!important;height:18px!important;min-width:18px!important;min-height:18px!important;
  max-width:18px!important;max-height:18px!important;padding:0!important;margin:2px 0 0!important;border:0!important;
  flex:0 0 18px!important;box-shadow:none!important;
}
.billing-check>span{display:flex!important;flex-direction:column!important;gap:2px!important;line-height:1.35!important}
.billing-check b{font-size:13px!important;line-height:1.3!important}
.billing-check small{font-size:11px!important;line-height:1.35!important;color:var(--muted)!important}
.billing-preview{align-items:stretch}
.billing-preview>div{min-height:64px;align-content:start}

@media(max-width:1100px){
  .order-detail-grid{grid-template-columns:1fr}
}
@media(max-width:700px){
  .order-line-image{width:46px!important;height:46px!important;min-width:46px!important;min-height:46px!important;max-width:46px!important;max-height:46px!important}
  .order-line-image img{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;max-width:44px!important;max-height:44px!important}
  .order-line-product{grid-template-columns:46px minmax(0,1fr)!important}
  .billingo-card{padding:16px}
  .billing-options{grid-template-columns:1fr!important}
}

/* WMS 5.8.3 - telefonos kamera alapú vonalkódolvasás */
.barcode-camera-field{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:7px;align-items:stretch;width:100%;min-width:0}
.barcode-camera-field>input{width:100%;min-width:0;margin:0}
.barcode-camera-button{appearance:none;-webkit-appearance:none;border:1px solid var(--line);border-radius:9px;background:#f6f8fa;color:var(--ink);display:grid;place-items:center;width:44px;min-width:44px;height:44px;padding:0;cursor:pointer;transition:background .15s ease,border-color .15s ease,transform .08s ease}
.barcode-camera-button:hover{background:#edf2f5;border-color:#c8d2d9}
.barcode-camera-button:active{transform:scale(.96)}
.barcode-camera-button svg{width:21px;height:21px;display:block;fill:currentColor}
.scanner-panel .barcode-camera-button,.sticky-scanner .barcode-camera-button{background:#263745;color:#fff;border-color:#435866}
.scanner-panel .barcode-camera-button:hover,.sticky-scanner .barcode-camera-button:hover{background:#314654;border-color:#5b7180}
.sticky-scanner .barcode-camera-field{min-width:0}

body.camera-scanner-open{overflow:hidden;touch-action:none}
.barcode-camera-modal[hidden]{display:none!important}
.barcode-camera-modal{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;padding:16px;isolation:isolate}
.barcode-camera-backdrop{position:absolute;inset:0;background:rgba(3,10,16,.82);backdrop-filter:blur(3px)}
.barcode-camera-dialog{position:relative;z-index:1;width:min(620px,100%);max-height:calc(100dvh - 24px);overflow:auto;background:#fff;color:#15212a;border-radius:18px;box-shadow:0 30px 90px rgba(0,0,0,.38)}
.barcode-camera-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:16px 16px 12px}
.barcode-camera-head>div{display:grid;gap:2px}
.barcode-camera-head strong{font-size:18px}
.barcode-camera-head small{color:#667782}
.barcode-camera-close{appearance:none;border:0;background:#eef2f4;color:#1a2730;width:38px;height:38px;border-radius:50%;font-size:27px;line-height:1;cursor:pointer;display:grid;place-items:center;padding:0}
.barcode-camera-preview{position:relative;margin:0 16px;aspect-ratio:4/3;background:#071016;border-radius:14px;overflow:hidden}
.barcode-camera-preview video{display:block;width:100%;height:100%;object-fit:cover;background:#071016}
.barcode-camera-frame{position:absolute;inset:15%;border:2px solid rgba(255,255,255,.92);border-radius:12px;box-shadow:0 0 0 999px rgba(0,0,0,.14);pointer-events:none}
.barcode-camera-frame:before,.barcode-camera-frame:after{content:"";position:absolute;width:34px;height:34px;border-color:#30d27b;border-style:solid}
.barcode-camera-frame:before{left:-3px;top:-3px;border-width:4px 0 0 4px;border-radius:10px 0 0 0}
.barcode-camera-frame:after{right:-3px;bottom:-3px;border-width:0 4px 4px 0;border-radius:0 0 10px 0}
.barcode-camera-frame span{position:absolute;left:8%;right:8%;top:50%;height:2px;background:#30d27b;box-shadow:0 0 12px rgba(48,210,123,.9);animation:barcode-scan-line 1.8s ease-in-out infinite}
@keyframes barcode-scan-line{0%,100%{transform:translateY(-70px);opacity:.5}50%{transform:translateY(70px);opacity:1}}
.barcode-camera-status{margin:12px 16px 0;padding:10px 12px;border-radius:10px;background:#f2f5f7;color:#52636f;font-weight:700;font-size:13px;text-align:center}
.barcode-camera-status.active{background:#edf8f2;color:#167847}
.barcode-camera-status.success{background:#e5f8ed;color:#0d7a42}
.barcode-camera-status.danger{background:#fff0f0;color:#b42318}
.barcode-camera-actions{display:flex;justify-content:flex-end;gap:8px;padding:12px 16px 16px}
.barcode-camera-actions .btn{width:auto;min-width:110px}

@media (max-width:700px){
  .barcode-camera-button{width:46px;min-width:46px;height:46px}
  .barcode-camera-modal{padding:0;align-items:end}
  .barcode-camera-dialog{width:100%;max-height:94dvh;border-radius:18px 18px 0 0;padding-bottom:env(safe-area-inset-bottom)}
  .barcode-camera-preview{margin:0 12px;aspect-ratio:3/4;max-height:62dvh}
  .barcode-camera-head{padding:14px 12px 10px}
  .barcode-camera-status{margin:10px 12px 0}
  .barcode-camera-actions{padding:10px 12px 14px}
  .barcode-camera-actions .btn{flex:1}
  .sticky-scanner .barcode-camera-field{grid-column:1/-1}
  .sticky-scanner #pickScan{grid-column:auto}
}

/* WMS 5.8.8 – kompakt mobil bevételezés */
.receipt-mobile-actions{display:none}
.receipt-price-toggle{display:none}
.receipt-scanner-panel{scroll-margin-top:calc(var(--mobile-header) + 10px)}

@media (max-width:700px){
    .receipt-page-head{gap:5px;margin-bottom:10px}
    .receipt-page-head .eyebrow{font-size:10px}
    .receipt-page-head h1{font-size:20px;margin:0 0 3px}
    .receipt-page-head p{font-size:12px;line-height:1.35}
    .receipt-head-actions{display:none!important}

    .receipt-mobile-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0 12px}
    .receipt-mobile-actions form{margin:0;min-width:0}
    .receipt-mobile-actions .btn,.receipt-mobile-actions form .btn{width:100%;min-height:40px;padding:9px 10px;font-size:13px}

    .receipt-scanner-panel{margin-bottom:10px;padding:10px 10px 11px}
    .receipt-scanner-panel .scan-status{margin-bottom:7px;font-size:10px}
    .receipt-scanner-panel .scan-feedback{margin:0 0 8px;padding:8px 10px;font-size:13px;line-height:1.3;min-height:36px;display:flex;align-items:center}
    .receipt-scanner-panel label{gap:4px;font-size:11px}
    .receipt-scanner-panel input,.receipt-scanner-panel select{min-height:42px;padding:9px 10px}

    .receipt-scanner-grid{grid-template-columns:76px minmax(0,1fr) 104px!important;gap:7px!important;align-items:start}
    .receipt-scanner-grid .receipt-code-field{grid-column:1/-1!important}
    .receipt-scanner-grid .receipt-qty-field{grid-column:1!important}
    .receipt-scanner-grid .receipt-action-field{grid-column:2/-1!important}
    .receipt-scanner-grid .receipt-location-field{grid-column:1/3!important;gap:4px}
    .receipt-scanner-grid .receipt-submit-btn{grid-column:3!important;align-self:start;margin-top:19px;min-height:42px;padding:9px 8px;font-size:13px}

    .receipt-location-field .location-picker-label>small{display:none}
    .receipt-location-field .location-suggestion{font-size:10px;line-height:1.3;padding:5px 7px;margin-top:1px}

    .receipt-price-panel{margin-top:7px;border-top:1px solid rgba(255,255,255,.09);padding-top:7px}
    .receipt-price-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px;border:0;background:transparent;color:#9fb1bf;padding:3px 1px;font-size:11px;font-weight:800;cursor:pointer}
    .receipt-price-toggle span{font-size:13px}
    .receipt-price-panel .scan-price-grid{display:none;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:7px}
    .receipt-price-panel.is-open .scan-price-grid{display:grid}
    .receipt-price-panel .scan-price-grid label{font-size:10px;line-height:1.2}
    .receipt-price-panel .scan-price-grid input{font-size:14px;min-height:40px;padding:8px}

    .receipt-control-card{margin-bottom:12px}
}

@media (max-width:390px){
    .receipt-scanner-grid{grid-template-columns:70px minmax(0,1fr) 96px!important}
    .receipt-scanner-grid .receipt-submit-btn{font-size:12px;padding-left:6px;padding-right:6px}
    .receipt-price-panel .scan-price-grid{grid-template-columns:1fr}
}

/* WMS 5.8.9 – bevételezési listák fix magassággal */
.receipt-list-card{min-width:0}
.receipt-list-card>h2{margin-bottom:10px}
.receipt-list-scroll{
    overflow-y:auto;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    scrollbar-gutter:stable;
    min-height:0;
}
.receipt-control-scroll{max-height:500px}
.receipt-mini-scroll{max-height:520px}
.receipt-control-scroll thead th{
    position:sticky;
    top:0;
    z-index:3;
    background:#fff;
    box-shadow:0 1px 0 var(--line);
}
/* Nagy kontrolllistánál a képernyőn kívüli sorok renderelését a böngésző halaszthatja. */
.receipt-control-scroll tbody tr{
    content-visibility:auto;
    contain-intrinsic-size:48px;
}
.receipt-mini-scroll .mini-row:last-child{border-bottom:0}

@media (max-width:700px){
    /* A globális mobil táblaszabály overflow:visible értékét itt felülírjuk. */
    .receipt-control-scroll{
        overflow-y:auto;
        max-height:min(62dvh,620px);
        padding-right:2px;
    }
    .receipt-mini-scroll{
        max-height:min(58dvh,520px);
        padding-right:2px;
    }
    .receipt-list-card{padding:13px}
    .receipt-list-card>h2{font-size:17px;margin-bottom:8px}

    /* A kontrolltételek mobilon tömörebb kártyák, hogy sokkal több sor férjen el. */
    .receipt-control-scroll .responsive-table tbody{gap:6px}
    .receipt-control-scroll .responsive-table tr{border-radius:9px}
    .receipt-control-scroll .responsive-table td{padding:6px 9px;font-size:12px;line-height:1.2;gap:8px}
    .receipt-control-scroll .responsive-table td::before{font-size:9px;flex-basis:34%}
    .receipt-control-scroll .responsive-table td:nth-child(2){font-size:11px}
    .receipt-control-scroll .badge{font-size:10px;padding:4px 6px}

    .receipt-mini-scroll .mini-row{padding:8px 2px;min-height:48px}
    .receipt-mini-scroll .mini-row small{font-size:11px;line-height:1.25}
}


/* WMS 5.9.1 – virtualizált/lusta kontrolllista */
.receipt-list-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.receipt-list-card-head h2{margin:0}
.receipt-control-range{font-size:11px;font-weight:800;color:var(--muted);white-space:nowrap}
.receipt-control-loading{padding:10px 12px;text-align:center;color:var(--muted);font-size:11px;font-weight:700;background:#f8fafb;border-top:1px solid var(--line)}
.receipt-control-loading[hidden]{display:none!important}
@media (max-width:700px){
    .receipt-list-card-head{margin-bottom:8px}
    .receipt-list-card-head h2{font-size:17px}
    .receipt-control-range{font-size:10px}
    .receipt-control-loading{padding:8px 9px;font-size:10px}
}

/* WMS 5.9.0 – ismeretlen vonalkód hozzárendelés + kontroll előnézet */
.receipt-expected-summary{
    margin:0 0 8px;
    padding:8px 10px;
    border-radius:9px;
    background:#173553;
    color:#c8e6ff;
    font-size:13px;
    font-weight:800;
    line-height:1.35;
}
.receipt-expected-summary.is-complete{background:#123d2a;color:#a7f0c5}
.receipt-expected-summary.is-over{background:#4b3914;color:#ffe1a2}
.receipt-expected-summary.is-not-listed{background:#4b3914;color:#ffe1a2;border:1px solid rgba(255,225,162,.22)}
body.receipt-barcode-modal-open{overflow:hidden;touch-action:none}
.receipt-barcode-modal[hidden]{display:none!important}
.receipt-barcode-modal{
    position:fixed;
    inset:0;
    z-index:10030;
    display:grid;
    place-items:center;
    padding:14px;
    isolation:isolate;
}
.receipt-barcode-modal-backdrop{
    position:absolute;
    inset:0;
    background:rgba(3,10,16,.78);
    backdrop-filter:blur(3px);
}
.receipt-barcode-dialog{
    position:relative;
    z-index:1;
    width:min(600px,100%);
    max-height:calc(100dvh - 28px);
    display:flex;
    flex-direction:column;
    overflow:hidden;
    background:#fff;
    color:#15212a;
    border-radius:18px;
    box-shadow:0 30px 90px rgba(0,0,0,.38);
}
.receipt-barcode-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:14px;
    padding:15px 16px 9px;
}
.receipt-barcode-head h2{margin:1px 0 0;font-size:20px}
.receipt-barcode-close{
    appearance:none;
    border:0;
    background:#eef2f4;
    color:#1a2730;
    width:36px;
    height:36px;
    min-width:36px;
    border-radius:50%;
    font-size:25px;
    line-height:1;
    cursor:pointer;
    display:grid;
    place-items:center;
    padding:0;
}
.receipt-barcode-code{
    margin:0 16px 10px;
    padding:9px 11px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    border:1px solid #d9e1e6;
    background:#f5f8fa;
    border-radius:10px;
}
.receipt-barcode-code span{font-size:11px;color:#687984;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.receipt-barcode-code strong{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:14px;overflow-wrap:anywhere;text-align:right}
.receipt-product-search-label{display:grid;gap:5px;margin:0 16px;font-size:12px;font-weight:800;color:#52636f}
.receipt-product-search-label input{min-height:44px;padding:10px 11px;border:1px solid #cbd7de;border-radius:10px;background:#fff;color:#15212a;font-size:16px}
.receipt-product-search-label input:focus{outline:2px solid rgba(27,112,232,.22);border-color:#1b70e8}
.receipt-product-search-hint{margin:5px 16px 8px;color:#7a8992;font-size:11px;line-height:1.35}
.receipt-product-results{
    margin:0 16px;
    min-height:72px;
    max-height:300px;
    overflow-y:auto;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    border:1px solid #dce4e9;
    border-radius:11px;
    background:#fff;
}
.receipt-product-result{
    width:100%;
    display:grid;
    grid-template-columns:52px minmax(0,1fr);
    gap:10px;
    align-items:center;
    border:0;
    border-bottom:1px solid #edf1f3;
    background:#fff;
    color:#15212a;
    padding:7px 9px;
    text-align:left;
    cursor:pointer;
}
.receipt-product-result:last-child{border-bottom:0}
.receipt-product-result:hover,.receipt-product-result.is-selected{background:#edf5ff}
.receipt-product-result.is-selected{box-shadow:inset 3px 0 #1b70e8}
.receipt-product-thumb{
    width:52px;
    height:52px;
    border-radius:8px;
    overflow:hidden;
    background:#f0f3f5;
    display:grid;
    place-items:center;
    color:#87949c;
    font-weight:900;
}
.receipt-product-thumb img{width:100%;height:100%;object-fit:contain;display:block}
.receipt-product-thumb.is-large{width:58px;height:58px}
.receipt-product-result-text{min-width:0;display:grid;gap:2px}
.receipt-product-result-text strong{font-size:13px;overflow-wrap:anywhere}
.receipt-product-result-text span{font-size:12px;color:#596b76;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.receipt-product-empty{padding:18px 12px;color:#70808a;text-align:center;font-size:12px;line-height:1.4}
.receipt-selected-product{
    margin:9px 16px 0;
    padding:8px;
    display:grid;
    grid-template-columns:58px minmax(0,1fr);
    gap:10px;
    align-items:center;
    border:1px solid #b9d5f7;
    background:#edf5ff;
    border-radius:11px;
}
.receipt-selected-product[hidden]{display:none!important}
.receipt-selected-thumb{width:58px;height:58px}
.receipt-selected-product .grow{min-width:0;display:grid;gap:1px}
.receipt-selected-product small{font-size:10px;color:#617684;text-transform:uppercase;font-weight:800}
.receipt-selected-product strong{font-size:13px;overflow-wrap:anywhere}
.receipt-selected-product span{font-size:12px;color:#52636f;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.receipt-barcode-status{margin:9px 16px 0;padding:8px 10px;border-radius:9px;background:#eef3f6;color:#52636f;font-size:12px;font-weight:800;line-height:1.35}
.receipt-barcode-status.info{background:#edf5ff;color:#1d5f9d}
.receipt-barcode-status.success{background:#e8f7ee;color:#147242}
.receipt-barcode-status.danger{background:#fff0f0;color:#b42318}
.receipt-barcode-actions{display:grid;grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr);gap:8px;padding:11px 16px 15px;margin-top:auto}
.receipt-barcode-actions .btn{width:100%;min-height:42px}

@media (max-width:700px){
    .receipt-expected-summary{margin:0 0 7px;padding:7px 9px;font-size:11px;line-height:1.3}
    .receipt-barcode-modal{padding:7px;align-items:center}
    .receipt-barcode-modal-backdrop{backdrop-filter:none}
    .receipt-barcode-dialog{width:100%;max-height:calc(100dvh - 14px);border-radius:15px;padding-bottom:env(safe-area-inset-bottom)}
    .receipt-barcode-head{padding:11px 11px 7px}
    .receipt-barcode-head .eyebrow{font-size:9px}
    .receipt-barcode-head h2{font-size:17px}
    .receipt-barcode-close{width:32px;height:32px;min-width:32px;font-size:23px}
    .receipt-barcode-code{margin:0 11px 8px;padding:7px 9px}
    .receipt-barcode-code span{font-size:9px}
    .receipt-barcode-code strong{font-size:12px}
    .receipt-product-search-label{margin:0 11px;gap:4px;font-size:10px}
    .receipt-product-search-label input{min-height:42px;padding:8px 10px;font-size:16px}
    .receipt-product-search-hint{margin:4px 11px 6px;font-size:9px}
    .receipt-product-results{margin:0 11px;min-height:60px;max-height:31dvh}
    .receipt-product-result{grid-template-columns:44px minmax(0,1fr);gap:8px;padding:6px 7px}
    .receipt-product-thumb{width:44px;height:44px}
    .receipt-product-result-text strong{font-size:12px}
    .receipt-product-result-text span{font-size:10px}
    .receipt-product-empty{padding:14px 9px;font-size:10px}
    .receipt-selected-product{margin:7px 11px 0;padding:6px;grid-template-columns:48px minmax(0,1fr);gap:8px}
    .receipt-product-thumb.is-large,.receipt-selected-thumb{width:48px;height:48px}
    .receipt-selected-product small{font-size:8px}
    .receipt-selected-product strong{font-size:11px}
    .receipt-selected-product span{font-size:10px}
    .receipt-barcode-status{margin:7px 11px 0;padding:7px 8px;font-size:10px}
    .receipt-barcode-actions{grid-template-columns:92px minmax(0,1fr);gap:7px;padding:8px 11px 10px}
    .receipt-barcode-actions .btn{min-height:40px;padding:8px;font-size:12px}
}

/* WMS 5.9.3 – scanner ürítés, siker státusz és CSV-n kívüli bevételek */
.barcode-camera-field.has-clear{grid-template-columns:minmax(0,1fr) 44px 44px}
.barcode-clear-button{appearance:none;-webkit-appearance:none;border:1px solid var(--line);border-radius:9px;background:#f6f8fa;color:#53636f;display:grid;place-items:center;width:44px;min-width:44px;height:44px;padding:0;cursor:pointer;transition:background .15s ease,border-color .15s ease,transform .08s ease}
.barcode-clear-button:hover{background:#fff0f0;border-color:#e4b8bc;color:#9c2932}
.barcode-clear-button:active{transform:scale(.96)}
.barcode-clear-button span{font-size:27px;line-height:1;font-weight:500;margin-top:-2px}
.scanner-panel .barcode-clear-button,.sticky-scanner .barcode-clear-button{background:#263745;color:#dce6ec;border-color:#435866}
.scanner-panel .barcode-clear-button:hover,.sticky-scanner .barcode-clear-button:hover{background:#4a252b;color:#ffd2d5;border-color:#75434a}
.receipt-expected-summary.is-success{background:#123d2a;color:#a7f0c5;border:1px solid rgba(167,240,197,.2)}
.state-unlisted{background:#fff3d6!important}
.state-unlisted td{border-color:#f1dfae}
@media (max-width:700px){
    .responsive-table tr.state-unlisted{background:#fff3d6!important;border-color:#e9d49b}
    .receipt-scanner-grid .barcode-camera-field.has-clear{grid-template-columns:minmax(0,1fr) 42px 42px;gap:6px}
    .receipt-scanner-grid .barcode-clear-button,.receipt-scanner-grid .barcode-camera-button{width:42px;min-width:42px;height:42px}
}

/* WMS 5.10.0 – azonnali készletre vétel + kontrolllista kereső */
.receipt-stock-catchup{border-color:#bfdbfe;background:#eff6ff}
.receipt-stock-catchup-copy{display:flex;align-items:center;justify-content:space-between;gap:16px}
.receipt-stock-catchup-copy>div{display:grid;gap:4px;min-width:0}
.receipt-stock-catchup-copy strong{font-size:14px;color:#0f2f56}
.receipt-stock-catchup-copy small{font-size:12px;line-height:1.45;color:var(--muted)}
.receipt-stock-catchup form{flex:0 0 auto;margin:0}
.receipt-control-search-wrap{margin:-2px 0 10px}
.receipt-control-search{width:100%;min-height:42px;border:1px solid var(--line);border-radius:10px;background:#fff;padding:9px 12px;font:inherit;color:var(--text);outline:none}
.receipt-control-search:focus{border-color:#6da8e1;box-shadow:0 0 0 3px rgba(45,117,181,.12)}
@media(max-width:700px){
    .receipt-stock-catchup-copy{align-items:stretch;flex-direction:column;gap:10px}
    .receipt-stock-catchup-copy form,.receipt-stock-catchup-copy .btn{width:100%}
    .receipt-control-search-wrap{margin-bottom:8px}
    .receipt-control-search{min-height:40px;font-size:14px;padding:8px 10px}
}


/* WMS 5.10.1 – kereshető, teljes beolvasási előzmény */
.receipt-entry-history-row{align-items:flex-start}
.receipt-entry-history-main{display:grid;gap:2px;min-width:0;padding-right:8px}
.receipt-entry-history-main b{line-height:1.2}
.receipt-entry-history-main small{display:block;min-width:0;overflow-wrap:anywhere}
.receipt-entry-name{color:var(--text)}
.receipt-entry-meta{color:var(--muted)}
.receipt-entry-scan-code{color:#60717c;font-size:10px}
.receipt-entry-history-row>strong{white-space:nowrap;font-variant-numeric:tabular-nums}
@media(max-width:700px){
    .receipt-entry-history-scroll{max-height:min(58dvh,520px)}
    .receipt-entry-history-main{gap:1px}
    .receipt-entry-name{font-size:11px!important}
    .receipt-entry-meta,.receipt-entry-scan-code{font-size:10px!important}
}

/* WMS 5.11 – futárszolgáltató / MyGLS címkenyomtatás */
.shipment-card-head{align-items:flex-start}
.shipment-section{display:grid;gap:10px;padding:13px 0;border-top:1px solid var(--line)}
.shipment-section:first-of-type{border-top:0}
.shipment-section h3,.compact-section-head h3{margin:0;font-size:14px}
.compact-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:2px 0 0}
.compact-section-head p{margin:3px 0 0}
.gls-label-form{margin-top:12px}
.gls-label-form .billing-check,.gls-settings-form .billing-check{margin:0}
.cod-section{background:#fafcfd;border:1px solid var(--line);border-radius:11px;padding:12px;margin-top:2px}
.cod-toggle{border:0!important;background:transparent!important;padding:0!important}
#glsCodFields[hidden]{display:none!important}
.shipment-submit-note{margin:-2px 0 0;text-align:center;font-size:11px;line-height:1.4}
.carrier-label-ready{display:grid;gap:12px;margin-top:10px}
.carrier-label-ready-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 13px;border:1px solid #bde1c9;background:#f2fbf5;border-radius:11px}
.carrier-label-ready-head>div{display:grid;gap:3px;min-width:0}
.carrier-label-ready-head small{color:var(--muted);font-weight:700}
.carrier-label-ready-head strong{font-size:18px;overflow-wrap:anywhere}
.gls-parcel-numbers{display:flex;flex-wrap:wrap;gap:6px}
.gls-parcel-numbers span{padding:5px 8px;border-radius:999px;background:#eef3f7;font-size:11px;font-weight:800}
.shipment-manual-details{margin-top:14px}
.manual-shipping-tools>form{padding-top:11px;border-top:1px solid var(--line)}
.shipping-integration-card{max-width:980px}
.gls-settings-form{margin-top:12px}

@media(max-width:700px){
  .shipment-card{padding:15px}
  .shipment-section{padding:11px 0}
  .carrier-label-ready-head{align-items:flex-start}
  .carrier-label-ready-head strong{font-size:16px}
  .gls-label-form input,.gls-label-form select{min-height:46px}
  .shipment-card .section-head{margin-bottom:2px}
}

/* Shipping provider router / Csomagpiac */
[data-provider-panel][hidden], [data-cod-fields][hidden] { display: none !important; }
.shipment-route-box { margin: 14px 0 18px; padding: 14px; border: 1px solid var(--border, #dbe3ea); border-radius: 14px; background: #f8fafc; }
.shipping-map-list { display: grid; gap: 10px; }
.shipping-map-row { display: grid; grid-template-columns: minmax(220px, 1.2fr) minmax(180px, 1fr) minmax(180px, 1fr); gap: 12px; align-items: end; padding: 12px; border: 1px solid #e3e8ef; border-radius: 12px; background: #fafcfe; }
.shipping-map-method { display: grid; gap: 4px; align-self: center; }
.shipping-map-method code { width: max-content; }
.push-device-box { display: grid; gap: 12px; margin-top: 12px; }
@media (max-width: 780px) {
  .shipping-map-row { grid-template-columns: 1fr; gap: 8px; }
  .shipment-route-box { padding: 10px; }
}

/* WMS 5.15.1 – Billingo egyszerűsített számlázási kártya + admin beállítás */
.billingo-card-v2{display:grid;gap:14px;overflow:hidden!important}
.billingo-card-head-v2{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;min-width:0}
.billingo-card-head-v2>div:first-child{min-width:0}
.billingo-card-head-v2 h2{margin:2px 0 4px}
.billingo-card-head-v2 p{margin:0;color:var(--muted);font-size:13px;line-height:1.45;max-width:640px;overflow-wrap:anywhere}
.billingo-payment-chip{flex:0 0 auto;min-width:150px;border:1px solid var(--line);border-radius:11px;background:#f8fafb;padding:9px 11px;display:grid;gap:2px;text-align:right}
.billingo-payment-chip small{font-size:10px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);font-weight:900}
.billingo-payment-chip b{font-size:13px;line-height:1.3;overflow-wrap:anywhere}
.billingo-active-invoice{border:1px solid #cfe2d7;background:#f8fcfa;border-radius:12px;padding:13px;display:grid;gap:12px;min-width:0}
.billingo-invoice-main{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;min-width:0}
.billingo-invoice-main>div{display:grid;gap:2px;min-width:0}
.billingo-invoice-main small{color:var(--muted);font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}
.billingo-invoice-main strong{font-size:17px;overflow-wrap:anywhere}
.billingo-invoice-main span:not(.badge){color:var(--muted);font-size:12px}
.billingo-primary-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;align-items:stretch}
.billingo-primary-actions>form{margin:0;display:block}
.billingo-primary-actions .btn{width:100%;height:100%;min-height:42px;display:flex;align-items:center;justify-content:center;text-align:center;white-space:normal}
.billingo-readiness-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.billingo-readiness-grid>div{border:1px solid var(--line);border-radius:10px;background:#f8fafb;padding:10px 12px;display:grid;gap:3px;min-width:0}
.billingo-readiness-grid small{font-size:10px;color:var(--muted);font-weight:900;text-transform:uppercase;letter-spacing:.04em}
.billingo-readiness-grid strong{font-size:13px;line-height:1.35;overflow-wrap:anywhere}
.billingo-auto-note{border:1px solid #d7e3ee;border-radius:11px;background:#f7fafc;padding:11px 12px;display:grid;gap:3px}
.billingo-auto-note b{font-size:13px}
.billingo-auto-note span{font-size:12px;color:var(--muted);line-height:1.45}
.billingo-one-click-form{margin:0}
.billingo-history-list{display:grid;gap:0;margin-top:9px;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#fff}
.billingo-history-list>div{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:9px 11px;border-bottom:1px solid var(--line);font-size:12px;min-width:0}
.billingo-history-list>div:last-child{border-bottom:0}
.billingo-history-list span{overflow-wrap:anywhere;min-width:0}
.billingo-history-list b{color:#9d3434}
.billingo-history-list a{font-weight:800;white-space:nowrap}
.billingo-settings-card{display:grid;gap:14px}
.billingo-settings-form{max-width:760px}
.billingo-settings-form label>small{display:block;margin-top:5px;color:var(--muted);font-size:11px;line-height:1.4}
.billingo-settings-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.billingo-settings-summary>div{border:1px solid var(--line);border-radius:10px;background:#f8fafb;padding:10px 12px;display:grid;gap:3px;min-width:0}
.billingo-settings-summary small{font-size:10px;color:var(--muted);font-weight:900;text-transform:uppercase}
.billingo-settings-summary strong{font-size:13px;overflow-wrap:anywhere}
.billing-rule-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.billing-rule-grid>div{border:1px solid var(--line);border-radius:10px;background:#fafcfd;padding:12px;display:grid;gap:4px;min-width:0}
.billing-rule-grid b{font-size:13px}
.billing-rule-grid span{font-size:12px;color:var(--muted);line-height:1.45}
@media(max-width:700px){
  .billingo-card-head-v2{display:grid;gap:10px}
  .billingo-payment-chip{width:100%;min-width:0;text-align:left}
  .billingo-readiness-grid,.billingo-settings-summary,.billing-rule-grid{grid-template-columns:1fr}
  .billingo-primary-actions{grid-template-columns:1fr}
  .billingo-invoice-main{align-items:center}
}


/* SweetAlert2 – RaktárPro egységes megerősítő/értesítő dialógusok */
.wms-swal-popup {
    width: min(92vw, 430px) !important;
    border-radius: 20px !important;
    padding: 24px !important;
    border: 1px solid #dbe4ec !important;
    box-shadow: 0 24px 70px rgba(16, 24, 33, .22) !important;
    font-family: inherit !important;
}
.wms-swal-title {
    color: #101821 !important;
    font-size: 1.25rem !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;
    padding-top: 4px !important;
}
.wms-swal-text {
    color: #536273 !important;
    font-size: .96rem !important;
    line-height: 1.55 !important;
    margin-top: 8px !important;
}
.swal2-actions {
    gap: 10px !important;
    width: 100% !important;
    margin-top: 22px !important;
}
.wms-swal-confirm,
.wms-swal-cancel {
    min-width: 132px;
    justify-content: center;
}
@media (max-width: 600px) {
    .wms-swal-popup {
        width: calc(100vw - 28px) !important;
        padding: 20px 18px !important;
        border-radius: 18px !important;
    }
    .swal2-actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
    }
    .wms-swal-confirm,
    .wms-swal-cancel {
        width: 100%;
        min-width: 0;
    }
}

/* GLS utánvét elszámolás */
.cod-stats{grid-template-columns:repeat(4,minmax(0,1fr))}
.cod-stats .stat small{color:var(--muted);font-size:12px;line-height:1.35}
.scheduler-health{border-left:4px solid var(--line)}
.scheduler-health.scheduler-ok{border-left-color:var(--success)}
.scheduler-health.scheduler-bad{border-left-color:var(--danger)}
.scheduler-health .card-title-row{margin-bottom:0}
.scheduler-health .card-title-row p{margin:4px 0 0}
.cod-top-grid .form-stack{display:grid;gap:12px}
.cod-table td{vertical-align:top}
.cod-table td small,.cod-note,.cod-status-text{display:block;color:var(--muted);font-size:12px;white-space:normal;max-width:380px;margin-top:3px}
.cod-table code{font-size:12px}
.cod-filters{flex-wrap:wrap}
.cod-filters input{max-width:180px}
.cod-filters select{max-width:220px}
@media(max-width:1200px){.cod-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.cod-stats{grid-template-columns:1fr}.cod-filters{grid-template-columns:1fr 1fr}.cod-filters input,.cod-filters select{max-width:none}.cod-filters select{grid-column:1/-1}.cod-filters .btn{grid-column:1/-1}}

/* WMS 5.17.1 – külön GLS/Csomagpiac utánvét nézet + kerekítés */
.cod-provider-tabs{display:inline-flex;gap:4px;padding:4px;margin:0 0 16px;background:#eef3f6;border:1px solid var(--line);border-radius:12px}
.cod-provider-tabs a{padding:8px 16px;border-radius:9px;font-weight:800;font-size:13px;color:var(--muted)}
.cod-provider-tabs a.active{background:#fff;color:var(--text);box-shadow:0 1px 3px rgba(16,24,33,.08)}
.cod-rounding{display:inline-block;color:var(--success);font-weight:800;white-space:nowrap}
@media(max-width:600px){.cod-provider-tabs{display:grid;grid-template-columns:1fr 1fr;width:100%}.cod-provider-tabs a{text-align:center}}

/* WMS 5.17.2 – GLS könyvelői export dátumválasztó */
.wms-export-swal-popup{width:min(92vw,520px)!important}
.wms-export-date-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;text-align:left;margin-top:8px}
.wms-export-date-grid label{display:grid;gap:7px;color:var(--text);font-weight:800;font-size:13px}
.wms-export-date-grid .swal2-input{width:100%;height:auto;margin:0!important;padding:11px 12px!important;border:1px solid var(--line)!important;border-radius:10px!important;box-shadow:none!important;font:inherit!important;color:var(--text)!important}
.wms-export-help{margin:14px 0 0;color:var(--muted);font-size:12px;line-height:1.5;text-align:left}
@media(max-width:600px){.wms-export-date-grid{grid-template-columns:1fr}}
