:root{
--navy:#0b1f4d;
--navy-2:#12295e;
--gold:#d4a83a;
--gold-light:#f0cf6f;
--accent:#d4a83a;
--bg:#eef1f7;
--border:#e3e6ee;
--card:#ffffff;
--text:#1b2540;
--muted:#6b7590;
--green:#1f9d55;
--red:#e0483f;
--blue:#2563eb;
--radius:14px;
--shadow:0 4px 14px rgba(11,31,77,.08)
}

*{
box-sizing:border-box
}

html{
overflow-x:hidden;
width:100%
}

body{
margin:0;
padding:0;
overflow-x:hidden;
width:100%
}

body{
font-family:Segoe UI,system-ui,-apple-system,Roboto,Arial,sans-serif;
background:var(--bg);
color:var(--text);
padding-bottom:20px
}

header.topbar{
background:linear-gradient(135deg,var(--navy) 0%,var(--navy-2) 100%);
color:#fff;
padding:18px 18px 26px;
position:relative;
border-bottom:3px solid var(--gold)
}

.topbar-row{
display:flex;
flex-direction:column;
align-items:center;
text-align:center;
gap:14px
}

.topbar-menu-btn{
position:fixed;
top:16px;
left:16px;
z-index:50;
width:46px;
height:46px;
border-radius:50%;
background:#ffffff14;
border:1px solid rgba(255,255,255,.16);
display:flex;
align-items:center;
justify-content:center;
cursor:pointer
}

.topbar-menu-btn svg{
width:22px;
height:22px;
stroke:#fff
}

.brand{
display:flex;
flex-direction:column;
align-items:center;
gap:2px;
padding-top:4px
}

.brand-icon{
width:60px;
height:60px;
border-radius:50%;
border:2px solid var(--gold);
display:flex;
align-items:center;
justify-content:center;
background:#d4a83a1a;
box-shadow:0 0 0 6px #d4a83a12;
flex-shrink:0
}

.brand-icon svg{
width:28px;
height:28px;
stroke:var(--gold-light)
}

.brand-text{
display:flex;
flex-direction:column;
align-items:center
}

.brand-text h1{
margin:12px 0 0;
font-size:1.3rem;
letter-spacing:.3px;
line-height:1.2;
color:var(--gold-light);
font-weight:800;
max-width:320px
}

.brand-text p.tag{
margin:6px 0 0;
font-size:.68rem;
color:#c9d2ea;
letter-spacing:1.6px;
text-transform:uppercase;
background:#ffffff0f;
border:1px solid rgba(255,255,255,.1);
padding:3px 12px;
border-radius:20px
}

.brand-text p.addr{
margin:8px 0 0;
font-size:.72rem;
color:#9fb0cf;
line-height:1.5;
max-width:300px;
background:none;
border:none;
padding:0;
letter-spacing:normal;
text-transform:none
}

.topbar-actions{
display:flex;
flex-wrap:wrap;
justify-content:center;
align-items:center;
gap:10px;
margin-top:2px
}

header.topbar.topbar-slim{
padding:12px 14px;
border-bottom:3px solid var(--gold)
}

.topbar-slim-row{
display:flex;
align-items:center;
gap:10px;
padding-left:72px
}

.topbar-slim-row .topbar-menu-btn{
flex-shrink:0
}

.topbar-slim-name{
flex:1;
color:var(--gold-light);
font-weight:800;
font-size:1rem;
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap
}

.menu-brand-card{
background:linear-gradient(135deg,var(--navy) 0%,var(--navy-2) 100%);
border:1px solid var(--gold);
border-radius:18px;
padding:14px 14px 4px;
margin:0 0 16px
}

.menu-brand-card .brand{
padding-top:0
}

.menu-cashier-bar{
border-radius:14px;
margin:14px 0
}

.admin-btn{
background:#ffffff0f;
border:1px solid rgba(255,255,255,.14);
color:#fff;
display:flex;
align-items:center;
gap:6px;
font-size:.82rem;
cursor:pointer;
padding:8px 16px;
border-radius:22px;
transition:background .15s ease
}

.admin-btn:active{
background:#ffffff24
}

.admin-btn svg{
width:20px;
height:20px;
stroke:#fff
}

.admin-btn{
border:1px solid var(--gold);
color:var(--gold-light)
}

main{
max-width:900px;
width:100%;
margin:0 auto;
padding:0 16px;
box-sizing:border-box
}

.stats{
display:grid;
grid-template-columns:repeat(2,1fr);
gap:12px;
margin-top:-22px;
position:relative;
z-index:2
}

@media(min-width:640px){
.stats{
grid-template-columns:repeat(3,1fr)
}

}
.stat-card{
background:var(--card);
border-radius:var(--radius);
padding:16px;
box-shadow:var(--shadow)
}

.stat-icon{
width:40px;
height:40px;
border-radius:10px;
display:flex;
align-items:center;
justify-content:center;
margin-bottom:10px
}

.stat-icon svg{
width:20px;
height:20px;
stroke:#fff;
fill:none
}

.stat-icon.blue{
background:#2563eb
}

.stat-icon.green{
background:var(--green)
}

.stat-icon.orange{
background:#e8821c
}

.stat-icon.purple{
background:#8b3fd6
}

.stat-label{
font-size:.82rem;
color:var(--muted);
margin:0 0 4px
}

.stat-value{
font-size:1.5rem;
font-weight:800;
margin:0
}

.stat-unit{
font-size:.75rem;
color:var(--muted)
}

.toolbar{
display:flex;
gap:10px;
margin-top:18px;
flex-wrap:wrap
}

.search-wrap{
flex:1 1 220px;
background:var(--card);
border-radius:12px;
display:flex;
align-items:center;
padding:0 14px;
box-shadow:var(--shadow)
}

.search-wrap svg{
width:18px;
height:18px;
stroke:var(--muted);
flex-shrink:0
}

.search-wrap input{
border:none;
outline:none;
padding:13px 10px;
flex:1;
font-size:.95rem;
background:transparent;
color:var(--text)
}

.btn-add{
background:var(--navy);
color:#fff;
border:none;
border-radius:12px;
padding:0 18px;
display:flex;
align-items:center;
gap:8px;
font-weight:700;
font-size:.92rem;
cursor:pointer;
box-shadow:var(--shadow)
}

.btn-add svg{
width:16px;
height:16px;
stroke:#fff
}

.btn-add:active{
transform:scale(.98)
}

.section-title{
display:flex;
align-items:center;
gap:8px;
margin:40px 0 16px;
font-weight:800;
font-size:1.05rem
}

.section-title svg{
width:20px;
height:20px;
stroke:var(--navy)
}

.table-card{
background:var(--card);
border-radius:var(--radius);
overflow:hidden;
box-shadow:var(--shadow)
}

.table-scroll{
overflow-x:auto
}

table{
width:100%;
border-collapse:collapse;
min-width:680px
}

.receipt-table{
min-width:0
}

thead th{
background:var(--navy);
color:#fff;
text-align:left;
padding:13px 12px;
font-size:.78rem;
letter-spacing:.3px;
white-space:nowrap;
cursor:pointer;
user-select:none
}

thead th span.arrow{
opacity:.6;
font-size:.7rem;
margin-left:3px
}

tbody tr{
border-bottom:1px solid #eef0f5
}

tbody tr:last-child{
border-bottom:none
}

tbody td{
padding:12px;
font-size:.88rem;
vertical-align:middle
}

.code-cell{
color:var(--blue);
font-weight:700
}

.article-cell{
display:flex;
align-items:center;
gap:10px
}

.thumb{
width:44px;
height:44px;
border-radius:8px;
object-fit:cover;
flex-shrink:0;
background:#f1f3f8
}

.thumb-fallback{
width:44px;
height:44px;
border-radius:8px;
flex-shrink:0;
display:flex;
align-items:center;
justify-content:center;
color:#fff;
font-weight:800;
font-size:1rem
}

.article-name{
font-weight:700;
display:block
}

.badge{
display:inline-block;
margin-top:3px;
padding:2px 10px;
border-radius:20px;
font-size:.72rem;
font-weight:600
}

.price-sell{
color:var(--green);
font-weight:700
}

.price-buy{
font-weight:600
}

.stock-val{
color:var(--blue);
font-weight:700
}

.stock-alert{
font-size:.78rem
}

.stock-alert.out{
filter:grayscale(0)
}

.stock-low{
color:var(--red)!important
}

.actions-cell{
display:flex;
gap:6px
}

.icon-btn{
width:34px;
height:34px;
border-radius:9px;
border:1px solid #e3e6ee;
background:#fff;
display:flex;
align-items:center;
justify-content:center;
cursor:pointer
}

.icon-btn svg{
width:16px;
height:16px
}

.icon-btn.sell.wide{
width:auto;
height:auto;
padding:8px 14px;
gap:6px;
font-weight:700;
font-size:.82rem;
color:var(--green)
}

.icon-btn:disabled{
opacity:.4;
cursor:not-allowed
}

.icon-btn.edit svg{
stroke:var(--blue)
}

.icon-btn.del{
background:#fdecec;
border-color:#fdecec
}

.icon-btn.del svg{
stroke:var(--red)
}

.icon-btn.sell{
background:#e8f8ee;
border-color:#e8f8ee
}

.icon-btn.sell svg{
stroke:var(--green)
}

.icon-btn.sell:disabled{
opacity:.35;
cursor:not-allowed
}

.icon-btn.adminaction.wide{
width:auto;
height:auto;
padding:8px 14px;
gap:6px;
font-weight:700;
font-size:.82rem
}

.icon-btn.adminaction{
background:#e8f8ee;
border-color:#e8f8ee
}

.icon-btn.restock{
background:#fdf1e3;
border-color:#fdf1e3
}

.icon-btn.restock svg{
stroke:#e8821c
}

.empty-row td{
padding:40px 12px;
text-align:center;
color:var(--muted)
}

.summary-bar{
margin-top:16px;
background:#dce6fb;
border-radius:12px;
padding:14px 16px;
display:flex;
justify-content:space-between;
flex-wrap:wrap;
gap:14px
}

.summary-item{
display:flex;
align-items:center;
gap:10px
}

.summary-item svg{
width:20px;
height:20px;
stroke:var(--navy);
flex-shrink:0
}

.summary-label{
font-size:.78rem;
color:var(--navy);
margin:0
}

.summary-value{
font-size:1.05rem;
font-weight:800;
color:var(--navy);
margin:0
}

.overlay{
position:fixed;
inset:0;
background:#0b142d8c;
display:none;
align-items:flex-end;
justify-content:center;
z-index:100
}

.overlay.show{
display:flex
}

.overlay.kiosk-gate{
background:var(--navy)
}

@media(min-width:640px){
.overlay{
align-items:center
}

}
.modal{
background:#fff;
border-radius:18px 18px 0 0;
width:100%;
max-width:480px;
max-height:90vh;
overflow-y:auto;
overflow-x:hidden;
padding:22px 20px 26px;
animation:slideUp .25s ease
}

@media(min-width:640px){
.modal{
border-radius:18px
}

}
@keyframes slideUp{
0%{
transform:translateY(30px);
opacity:0
}

to{
transform:translateY(0);
opacity:1
}

}
.chart-wrap{
background:#fff;
border-radius:12px;
padding:14px 10px 6px;
margin-bottom:18px;
border:1px solid #eef0f6
}

.chart-wrap canvas{
width:100%;
display:block
}

.home-menu-sheet{
background:#fff;
width:100%;
max-width:560px;
border-radius:26px 26px 0 0;
padding:10px 20px calc(24px + env(safe-area-inset-bottom));
box-shadow:0 -10px 40px #0b142d47;
animation:sheetUp .28s cubic-bezier(.22,.9,.32,1);
max-height:80vh;
overflow-y:auto
}

@keyframes sheetUp{
0%{
transform:translateY(100%)
}

to{
transform:translateY(0)
}

}
.home-menu-handle{
width:38px;
height:4px;
background:#e2e5f0;
border-radius:99px;
margin:8px auto 14px
}

.home-menu-header{
display:flex;
align-items:center;
justify-content:space-between;
padding:0 2px 16px;
font-weight:800;
color:var(--navy);
font-size:1.05rem;
letter-spacing:.2px
}

.home-menu-close{
background:#f2f4fa;
border:none;
color:var(--muted);
padding:6px;
border-radius:10px;
cursor:pointer;
display:flex
}

.home-menu-close svg{
width:18px;
height:18px
}

.home-menu-grid{
display:grid;
grid-template-columns:repeat(2,1fr);
gap:12px;
padding-bottom:4px
}

.home-menu-tile{
display:flex;
flex-direction:column;
align-items:flex-start;
gap:12px;
background:#f6f7fb;
border:1px solid #eef0f7;
border-radius:18px;
padding:16px 14px;
text-align:left;
font-weight:700;
font-size:.84rem;
color:var(--text);
cursor:pointer;
transition:transform .12s ease,background .12s ease
}

.home-menu-tile:active{
transform:scale(.96);
background:#eef0f9
}

.home-menu-tile-icon{
width:40px;
height:40px;
border-radius:13px;
display:flex;
align-items:center;
justify-content:center;
color:#fff;
box-shadow:0 4px 10px #0b142d2e
}

.home-menu-tile-icon svg{
width:21px;
height:21px
}

.home-menu-tile-icon svg{
stroke:#fff;
fill:none;
stroke-width:2
}

.home-menu-tile-icon span{
stroke:none
}

#orderQrBox{
position:relative;
width:236px;
height:236px;
background:#fff
}

#orderQrBox img{
width:236px;
height:236px;
display:block;
image-rendering:pixelated
}

#orderQrBox #orderQrCenterLogo{
position:absolute;
top:50%;
left:50%;
transform:translate(-50%,-50%);
width:44px;
height:44px;
border-radius:50%;
object-fit:cover;
background:#fff;
padding:3px;
box-sizing:content-box;
border:1px solid #e5e8ef
}

#orderQrCenterLogo[hidden]{
display:none
}

.overlay.fullpage{
align-items:stretch;
justify-content:stretch;
z-index:90
}

.modal.fullpage{
width:100%;
max-width:100%;
height:100vh;
max-height:100vh;
border-radius:0;
margin:0;
animation:none
}

@media(min-width:640px){
.modal.fullpage{
border-radius:0
}

}
#accessOverlay{
background:linear-gradient(160deg,var(--navy),#0f2a63);
align-items:center;
justify-content:center;
padding:24px 20px 96px;
flex-direction:column
}

#accessOverlay .modal{
background:#fff;
border-radius:18px;
max-width:400px;
width:100%;
padding:26px 22px;
animation:slideUp .25s ease;
text-align:center
}

#accessOverlay h2{
color:var(--navy);
font-size:20px;
margin-bottom:4px;
text-align:center
}

#accessOverlay .gate-sub{
text-align:center;
color:var(--muted);
font-size:13px;
margin-bottom:20px
}

#accessOverlay .cashier-select{
flex-direction:row;
gap:10px;
margin-bottom:0
}

#accessOverlay .cashier-option{
flex:1;
flex-direction:column;
gap:6px;
border:2px solid #e3e6ee;
background:#f7f9fc;
border-radius:12px;
padding:18px 8px;
text-align:center;
font-weight:700;
font-size:13px
}

#accessOverlay .cashier-option .avatar{
width:auto;
height:auto;
background:none;
font-size:28px;
margin:0 0 4px
}

#accessOverlay .cashier-option:hover{
border-color:var(--navy);
background:#eef1fb
}

#accessOverlay .gate-copyright{
text-align:center;
color:#cfd8ee;
font-size:11px;
margin-top:16px
}

#accessOverlay .modal{
text-align:left
}

#accessOverlay .auth-logo{
width:64px;
height:64px;
border-radius:50%;
margin:0 auto 14px;
border:2px solid var(--gold);
display:flex;
align-items:center;
justify-content:center;
background:#d4a83a14
}

#accessOverlay .auth-logo svg{
width:30px;
height:30px;
stroke:var(--gold)
}

#accessOverlay h2{
text-align:center
}

#accessOverlay .gate-sub{
margin-bottom:22px
}

.auth-error{
color:var(--red);
font-size:.82rem;
display:none;
margin:-6px 0 12px;
text-align:center
}

.auth-info{
color:var(--muted);
font-size:.78rem;
text-align:center;
margin:-6px 0 14px;
line-height:1.5
}

.auth-switch{
text-align:center;
margin-top:16px;
font-size:.85rem;
color:var(--muted)
}

.auth-switch a{
color:var(--navy);
font-weight:700;
text-decoration:none;
cursor:pointer
}

.auth-forgot{
display:block;
text-align:right;
font-size:.8rem;
color:var(--navy);
font-weight:600;
text-decoration:none;
margin:-6px 0 16px;
cursor:pointer
}

.auth-role-badge{
display:inline-flex;
align-items:center;
gap:6px;
background:#eef2fb;
color:var(--navy);
border-radius:20px;
padding:6px 14px;
font-size:.76rem;
font-weight:700;
margin:0 auto 18px;
width:fit-content
}

.auth-success-icon{
width:56px;
height:56px;
border-radius:50%;
background:#e8f8ee;
color:var(--green);
display:flex;
align-items:center;
justify-content:center;
margin:0 auto 14px;
font-size:28px
}

.modal h2{
margin:0 0 18px;
font-size:1.15rem;
color:var(--navy)
}

.field{
margin-bottom:14px
}

.field label{
display:block;
font-size:.8rem;
color:var(--muted);
margin-bottom:5px;
font-weight:600
}

.field input,.field select{
width:100%;
padding:11px 12px;
border:1.5px solid #e3e6ee;
border-radius:10px;
font-size:.92rem;
outline:none;
background:#fbfcfe
}

.field input:focus,.field select:focus{
border-color:var(--navy)
}

.field-row{
display:flex;
gap:10px
}

.field-row .field{
flex:1
}

.pw-wrap{
position:relative
}

.pw-wrap input{
padding-right:42px!important
}

.pw-toggle{
position:absolute;
top:50%;
right:4px;
transform:translateY(-50%);
background:none;
border:none;
font-size:1.05rem;
padding:8px;
cursor:pointer;
line-height:1;
color:var(--muted)
}

.modal-actions{
display:flex;
gap:10px;
margin-top:18px;
flex-wrap:wrap
}

.modal-actions .btn{
flex:1;
min-width:110px
}

.btn{
flex:1;
padding:13px;
border-radius:10px;
border:none;
font-weight:700;
font-size:.92rem;
cursor:pointer
}

.btn-primary{
background:var(--navy);
color:#fff
}

.btn-secondary{
background:#f0f1f6;
color:var(--text)
}

.btn-danger{
background:var(--red);
color:#fff
}

.swatches{
display:flex;
gap:8px;
flex-wrap:wrap;
margin-top:4px
}

.swatch{
width:30px;
height:30px;
border-radius:50%;
cursor:pointer;
border:2px solid transparent
}

.swatch.selected{
border-color:var(--navy)
}

.toast{
position:fixed;
bottom:20px;
left:50%;
transform:translate(-50%);
background:var(--navy);
color:#fff;
padding:11px 20px;
border-radius:30px;
font-size:.85rem;
box-shadow:var(--shadow);
z-index:400;
width:max-content;
max-width:min(92vw,460px);
white-space:normal;
text-align:center;
line-height:1.45;
opacity:0;
pointer-events:none;
transition:opacity .25s,bottom .25s
}

/* Écran de connexion : le message s'affiche en haut de l'écran, il ne
   recouvre plus « © … Tous droits réservés » en bas de la carte. */
#accessOverlay.show~.toast{
top:16px;
bottom:auto;
border-radius:16px
}

.toast.show{
opacity:1;
bottom:30px
}

.report-cat{
display:flex;
justify-content:space-between;
padding:10px 0;
border-bottom:1px solid #eef0f5;
font-size:.9rem
}

.report-cat:last-child{
border-bottom:none
}

.modal-wide{
max-width:640px
}

.report-tabs{
display:flex;
gap:8px;
margin-bottom:16px;
flex-wrap:wrap
}

.report-tab{
border:1.5px solid #e3e6ee;
background:#fbfcfe;
color:var(--text);
padding:7px 14px;
border-radius:20px;
font-size:.8rem;
font-weight:600;
cursor:pointer
}

.report-tab.active{
background:var(--navy);
color:#fff;
border-color:var(--navy)
}

.report-stats{
display:grid;
grid-template-columns:repeat(2,1fr);
gap:10px;
margin-bottom:18px
}

@media(min-width:520px){
.report-stats{
grid-template-columns:repeat(3,1fr)
}

}
.report-stat{
background:#fff;
border-radius:14px;
padding:14px;
box-shadow:0 4px 12px #0b1f4d14
}

.report-stat p.label{
margin:0 0 6px;
font-size:.72rem;
color:var(--muted);
font-weight:600;
text-transform:none;
letter-spacing:0
}

.report-stat .stat-icon{
width:40px;
height:40px;
border-radius:10px;
display:flex;
align-items:center;
justify-content:center;
font-size:20px;
color:#fff;
margin-bottom:10px
}

.report-stat p.value{
margin:0;
font-size:1.3rem;
font-weight:800;
color:var(--navy)
}

.report-section-title{
font-size:1.05rem;
font-weight:800;
color:var(--navy);
margin:40px 0 14px;
text-transform:none;
letter-spacing:0;
padding-bottom:8px;
border-bottom:2px solid #eef1f8
}

.sales-list{
max-height:none;
overflow-y:auto;
border:none;
border-radius:0;
background:transparent
}

.sales-list .sale-row{
background:#fff;
border-radius:14px;
padding:14px;
margin-bottom:10px;
box-shadow:0 3px 10px #0b1f4d0f;
border-bottom:none
}

.sale-row{
display:flex;
justify-content:space-between;
align-items:center;
padding:10px 12px;
border-bottom:1px solid #eef0f5;
font-size:.85rem
}

.sale-row:last-child{
border-bottom:none
}

.sale-row .sale-meta{
color:var(--muted);
font-size:.75rem
}

.sale-empty{
padding:24px;
text-align:center;
color:var(--muted);
font-size:.85rem
}

.article-detail-card{
background:#fff;
border-radius:14px;
padding:16px;
margin-bottom:10px;
box-shadow:0 3px 10px #0b1f4d0f
}

.article-detail-title{
font-weight:700;
color:var(--navy);
margin-bottom:10px;
font-size:.92rem
}

.article-detail-stats{
display:flex;
flex-wrap:wrap;
gap:14px;
font-size:.85rem;
color:var(--muted)
}

.article-detail-stats strong{
color:var(--text);
font-size:.95rem
}

.top-item{
display:flex;
justify-content:space-between;
padding:12px 14px;
margin-bottom:8px;
background:#fff;
border-radius:12px;
box-shadow:0 3px 10px #0b1f4d0f;
border-bottom:none;
font-size:.87rem
}

.sell-summary{
background:#eef1f7;
border-radius:12px;
padding:14px;
margin-top:6px;
display:flex;
justify-content:space-between;
align-items:center
}

.sell-summary .lbl{
font-size:.8rem;
color:var(--muted)
}

.sell-summary .val{
font-size:1.3rem;
font-weight:800;
color:var(--navy)
}

.qty-stepper{
display:flex;
align-items:center;
gap:10px
}

.qty-stepper button{
width:38px;
height:38px;
border-radius:10px;
border:1.5px solid #e3e6ee;
background:#fbfcfe;
font-size:1.1rem;
font-weight:700;
cursor:pointer;
color:var(--navy)
}

.qty-stepper input{
width:64px;
text-align:center;
padding:9px 6px;
border:1.5px solid #e3e6ee;
border-radius:10px;
font-size:1rem;
font-weight:700
}

.cart-fab{
position:fixed;
right:16px;
bottom:18px;
z-index:30;
width:58px;
height:58px;
border-radius:50%;
background:var(--navy);
border:2px solid var(--gold);
display:flex;
align-items:center;
justify-content:center;
box-shadow:0 6px 18px #0b1f4d59;
cursor:pointer
}

.cart-fab svg{
width:26px;
height:26px;
stroke:var(--gold-light)
}

.cart-badge{
position:absolute;
top:-4px;
right:-4px;
background:var(--red);
color:#fff;
font-size:.68rem;
font-weight:800;
min-width:20px;
height:20px;
border-radius:10px;
display:flex;
align-items:center;
justify-content:center;
padding:0 4px;
border:2px solid #fff
}

.cart-badge.hidden{
display:none
}

.rental-fab{
right:16px;
bottom:88px;
width:50px;
height:50px;
background:#e8821c;
border-color:#fff
}

.rental-fab svg{
width:22px;
height:22px;
stroke:#fff
}

.home-fab{
position:fixed;
left:16px;
bottom:18px;
z-index:95;
width:52px;
height:52px;
border-radius:50%;
background:var(--navy);
border:2px solid var(--gold);
display:flex;
align-items:center;
justify-content:center;
box-shadow:0 6px 18px #0b1f4d59;
cursor:pointer
}

.home-fab svg{
width:24px;
height:24px;
stroke:var(--gold-light)
}

.cart-item-row{
display:flex;
align-items:center;
justify-content:space-between;
gap:10px;
padding:11px 0;
border-bottom:1px solid #eef0f5
}

.cart-item-row:last-child{
border-bottom:none
}

.cart-item-info{
flex:1;
min-width:0
}

.cart-item-name{
font-weight:700;
font-size:.9rem;
display:block
}

.cart-item-price{
font-size:.78rem;
color:var(--muted)
}

.cart-item-qty{
display:flex;
align-items:center;
gap:6px;
flex-shrink:0
}

.cart-item-qty button{
width:28px;
height:28px;
border-radius:8px;
border:1.5px solid #e3e6ee;
background:#fbfcfe;
font-weight:700;
cursor:pointer;
color:var(--navy)
}

.cart-item-qty span{
min-width:22px;
text-align:center;
font-weight:700;
font-size:.88rem
}

.cart-qty-input{
width:46px;
text-align:center;
font-weight:700;
font-size:.9rem;
padding:5px 2px;
border:1.5px solid #e3e6ee;
border-radius:8px;
color:var(--text);
background:#fbfcfe
}

.cart-price-input{
width:110px;
text-align:center;
font-weight:700;
font-size:.9rem;
padding:5px 6px;
border:1.5px solid #e3e6ee;
border-radius:8px;
color:var(--text);
background:#fbfcfe
}

.cart-item-remove{
width:28px;
height:28px;
border-radius:8px;
background:#fdecec;
border:none;
display:flex;
align-items:center;
justify-content:center;
cursor:pointer;
flex-shrink:0
}

.cart-item-remove svg{
width:14px;
height:14px;
stroke:var(--red)
}

.cart-empty{
padding:30px 10px;
text-align:center;
color:var(--muted);
font-size:.88rem
}

.cart-totals{
margin-top:8px
}

.cart-total-row{
display:flex;
justify-content:space-between;
padding:6px 0;
font-size:.92rem
}

.cart-change{
background:#eef1f7;
border-radius:12px;
padding:14px;
margin-top:10px;
display:flex;
justify-content:space-between;
align-items:center
}

.cart-change .lbl{
font-size:.82rem;
color:var(--muted)
}

.cart-change .val{
font-size:1.3rem;
font-weight:800;
color:var(--navy)
}

.cart-change.negative .val{
color:var(--red)
}

.payment-toggle{
display:flex;
gap:10px;
flex-wrap:wrap
}

.payment-option{
flex:1 1 45%;
padding:12px;
border-radius:10px;
border:1.5px solid #e3e6ee;
background:#fbfcfe;
font-weight:700;
font-size:.9rem;
cursor:pointer;
color:var(--text)
}

.payment-option.selected{
border-color:var(--navy);
background:var(--navy);
color:#fff
}

.receipt-payment{
margin-top:14px;
padding-top:12px;
border-top:1.5px dashed #d8dde8
}

.receipt-paper{
border:1.5px solid #cfd5e4;
border-radius:10px;
padding:16px;
overflow-x:hidden
}

#receiptPaymentBlock{
position:relative
}

.receipt-credit-stamp{
display:none;
position:absolute;
top:50%;
left:50%;
transform:translate(-50%,-50%) rotate(-18deg);
font-family:Algerian,Impact,Arial Narrow,sans-serif;
font-weight:900;
text-transform:uppercase;
letter-spacing:2px;
font-size:2.6rem;
color:#e0483f;
opacity:.35;
white-space:nowrap;
pointer-events:none;
z-index:1;
user-select:none
}

.stamp-credit{
color:#e0483f
}

.receipt-paid-stamp{
display:none;
position:absolute;
top:50%;
left:50%;
transform:translate(-50%,-50%) rotate(-18deg);
font-family:Algerian,Impact,Arial Narrow,sans-serif;
font-weight:900;
text-transform:uppercase;
letter-spacing:2px;
font-size:2.6rem;
color:#1f9d55;
opacity:.35;
white-space:nowrap;
pointer-events:none;
z-index:1;
user-select:none
}

#receiptPaymentBlock>*{
position:relative;
z-index:2
}

#rentalReceiptPaymentBlock{
position:relative
}

.receipt-stamp-row{
display:none;
position:absolute;
top:50%;
left:50%;
transform:translate(-50%,-50%) rotate(-18deg);
align-items:center;
justify-content:center;
gap:18px;
white-space:nowrap;
pointer-events:none;
z-index:1;
user-select:none
}

.receipt-stamp-row .stamp{
font-family:Algerian,Impact,Arial Narrow,sans-serif;
font-weight:900;
text-transform:uppercase;
letter-spacing:2px;
font-size:2.2rem;
opacity:.35
}

.receipt-stamp-row .stamp-paid{
color:#1f9d55
}

.receipt-stamp-row .stamp-delivered{
color:#2563eb
}

#rentalReceiptPaymentBlock>:not(.receipt-stamp-row){
position:relative;
z-index:2
}

.receipt-doctype-row{
display:flex;
justify-content:center;
gap:24px;
border-top:1.5px solid var(--text);
border-bottom:1.5px solid var(--text);
padding:8px 0;
margin:10px 0;
flex-wrap:wrap
}

.receipt-checkbox-label{
font-weight:800;
font-size:.9rem;
letter-spacing:.5px;
display:flex;
align-items:center;
gap:6px
}

.receipt-checkbox{
font-size:1.1rem
}

.receipt-checkbox-label.checked .receipt-checkbox{
color:var(--navy)
}

.receipt-meta-row{
display:flex;
justify-content:space-between;
flex-wrap:wrap;
gap:8px;
font-size:.85rem;
margin-bottom:10px
}

.receipt-table{
width:100%;
table-layout:fixed;
border-collapse:collapse;
font-size:.82rem;
margin-top:6px
}

.receipt-table th{
border-bottom:2px solid var(--text);
padding:6px 4px;
text-align:left;
font-size:.76rem;
word-wrap:break-word;
overflow-wrap:break-word
}

.receipt-table th:last-child,.receipt-table td:last-child{
text-align:right
}

.receipt-table th:nth-child(3),.receipt-table td:nth-child(3){
text-align:right
}

.receipt-table td{
padding:5px 4px;
border-bottom:1px solid #e3e6ee;
word-wrap:break-word;
overflow-wrap:break-word
}

.receipt-table tfoot td{
border-top:2px solid var(--text);
border-bottom:none;
padding-top:8px
}

.receipt-signature-row{
margin-top:30px;
display:flex;
justify-content:space-between;
align-items:flex-end
}

.receipt-signature-line{
border-top:1px solid var(--text);
padding-top:4px;
font-size:.76rem;
color:var(--muted);
width:180px;
text-align:center
}

.receipt-payment-row{
display:flex;
gap:24px;
justify-content:center;
font-size:.9rem;
font-weight:600
}

.receipt-payment-row .check-box{
display:flex;
align-items:center;
gap:6px
}

.receipt-payment-row .check-box.checked{
color:var(--navy);
font-weight:800
}

@media print{
body *{
visibility:hidden
}

.printable,.printable *{
visibility:visible
}

.printable{
position:fixed;
top:0;
left:0;
width:100%;
padding:20px
}

.no-print{
display:none!important
}

}
.activation-screen{
position:fixed;
inset:0;
z-index:9999;
background:linear-gradient(135deg,var(--navy) 0%,var(--navy-2) 100%);
display:flex;
align-items:center;
justify-content:center;
padding:24px
}

.activation-box{
background:#fff;
border-radius:18px;
padding:32px 26px;
max-width:380px;
width:100%;
text-align:center;
box-shadow:0 12px 40px #0000004d
}

.activation-box .lock-icon{
width:64px;
height:64px;
border-radius:50%;
background:#fdf1e3;
display:flex;
align-items:center;
justify-content:center;
margin:0 auto 16px
}

.activation-box .lock-icon svg{
width:30px;
height:30px;
stroke:#e8821c
}

.activation-box h2{
margin:0 0 8px;
color:var(--navy);
font-size:1.15rem
}

.activation-box p{
margin:0 0 18px;
color:var(--muted);
font-size:.85rem;
line-height:1.5
}

.activation-box input{
width:100%;
padding:13px 14px;
border:1.5px solid #e3e6ee;
border-radius:10px;
font-size:1rem;
text-align:center;
letter-spacing:1px;
margin-bottom:10px
}

.activation-box .err{
color:var(--red);
font-size:.82rem;
margin-bottom:10px;
display:none
}

.activation-box button{
width:100%;
padding:13px;
border-radius:10px;
border:none;
background:var(--navy);
color:#fff;
font-weight:700;
font-size:.95rem;
cursor:pointer
}

.cashier-bar{
background:var(--navy-2);
color:#fff;
display:flex;
align-items:center;
justify-content:space-between;
padding:10px 16px;
font-size:.82rem
}

.cashier-bar .status{
display:flex;
align-items:center;
gap:8px
}

.cashier-bar .status svg{
width:16px;
height:16px;
stroke:var(--gold-light);
flex-shrink:0
}

.cashier-bar button{
background:#ffffff1f;
border:1px solid rgba(255,255,255,.3);
color:#fff;
padding:5px 12px;
border-radius:16px;
font-size:.76rem;
cursor:pointer;
font-weight:600
}

.cashier-select{
display:flex;
flex-direction:column;
gap:8px;
margin-bottom:14px
}

.cashier-option{
display:flex;
align-items:center;
gap:10px;
padding:11px 14px;
border-radius:12px;
border:1.5px solid #e3e6ee;
background:#fbfcfe;
cursor:pointer;
font-weight:600;
font-size:.9rem
}

.cashier-option.selected{
border-color:var(--navy);
background:#eef2fb
}

.cashier-option .avatar{
width:32px;
height:32px;
border-radius:50%;
background:var(--navy);
color:#fff;
display:flex;
align-items:center;
justify-content:center;
font-weight:800;
font-size:.82rem;
flex-shrink:0
}

.cashier-mgmt-row{
display:flex;
align-items:center;
justify-content:space-between;
padding:9px 0;
border-bottom:1px solid #eef0f5;
font-size:.88rem
}

.cashier-mgmt-row:last-child{
border-bottom:none
}

.cashier-mgmt-row button{
background:#fdecec;
border:none;
color:var(--red);
width:28px;
height:28px;
border-radius:8px;
display:flex;
align-items:center;
justify-content:center;
cursor:pointer
}

.cashier-mgmt-row button svg{
width:14px;
height:14px;
stroke:var(--red)
}

.admin-article-row{
display:flex;
align-items:center;
justify-content:space-between;
gap:10px;
padding:10px 0;
border-bottom:1px solid #eef0f5
}

.admin-article-row:last-child{
border-bottom:none
}

.admin-article-info{
flex:1;
min-width:0
}

.admin-article-info .name{
font-weight:700;
font-size:.88rem;
display:block
}

.admin-article-info .meta{
font-size:.76rem;
color:var(--muted)
}

.admin-article-actions{
display:flex;
gap:6px;
flex-shrink:0
}

.return-check-row{
display:flex;
align-items:center;
gap:10px;
padding:9px 0;
border-bottom:1px solid #eef0f5
}

.return-check-row:last-child{
border-bottom:none
}

.return-check-row input[type=checkbox]{
width:18px;
height:18px;
flex-shrink:0
}

.return-check-row .info{
flex:1;
font-size:.85rem
}

.return-check-row .meta{
font-size:.74rem;
color:var(--muted)
}

body.admin-no-sell .icon-btn.sell,body.admin-no-sell #cartFab{
display:none!important
}

@keyframes cardIn{
0%{
opacity:0;
transform:translateY(14px)
}

to{
opacity:1;
transform:translateY(0)
}

}
.stat-card{
animation:cardIn .4s ease both
}

.stat-card:nth-child(2){
animation-delay:.06s
}

.stat-card:nth-child(3){
animation-delay:.12s
}

.stat-card:nth-child(4){
animation-delay:.18s
}

.stat-card:nth-child(n+5){
animation-delay:.24s
}

.btn,.admin-btn,.payment-option,.report-tab,.qty-stepper button,.cart-item-qty button,.cart-item-remove,.cashier-option,.cashier-mgmt-row button,.modal-actions .btn,.activation-box button{
-webkit-tap-highlight-color:transparent;
transition:transform .12s ease,background .15s ease,box-shadow .15s ease,border-color .15s ease,opacity .15s ease
}

.btn:active,.payment-option:active,.report-tab:active,.qty-stepper button:active,.cart-item-qty button:active,.cashier-mgmt-row button:active,.modal-actions .btn:active{
transform:scale(.95)
}

.btn:hover,.modal-actions .btn:hover{
filter:brightness(1.06)
}

.admin-btn:active{
transform:scale(.96)
}

.cart-item-remove:active,.cashier-mgmt-row button:active{
transform:scale(.88)
}

.field input:focus,.field select:focus,.activation-box input:focus{
border-color:var(--navy);
box-shadow:0 0 0 3px #0b1f4d1a
}

.cart-fab,.home-fab,.rental-fab{
transition:transform .15s ease,box-shadow .2s ease
}

.cart-fab:active,.home-fab:active,.rental-fab:active{
transform:scale(.92)
}

.cart-fab:hover,.home-fab:hover{
box-shadow:0 10px 24px #0b1f4d6b
}

.toast{
transform:translate(-50%) translateY(8px);
transition:opacity .25s ease,bottom .25s ease,transform .25s ease
}

.toast.show{
transform:translate(-50%) translateY(0)
}

.sale-row,.article-detail-card,.top-item,.report-stat{
transition:transform .15s ease,box-shadow .2s ease
}

@media(hover:hover){
.article-detail-card:hover,.top-item:hover{
transform:translateY(-2px);
box-shadow:0 8px 20px #0b1f4d1f
}

}
.topbar-menu-btn,.icon-btn{
-webkit-tap-highlight-color:transparent;
transition:transform .12s ease,background .15s ease
}

.topbar-menu-btn:active{
transform:scale(.92)
}

@media(prefers-reduced-motion:reduce){
*,*:before,*:after{
animation-duration:.01ms!important;
animation-iteration-count:1!important;
transition-duration:.01ms!important
}

.stat-card{
animation:none
}

}
:root{
--shadow-sm:0 2px 8px rgba(11,20,45,.06);
--shadow-md:0 6px 18px rgba(11,20,45,.1);
--shadow-lg:0 14px 34px rgba(11,20,45,.18);
--spring:cubic-bezier(.22,1.2,.32,1)
}

html{
scroll-behavior:smooth
}

body{
background:radial-gradient(1100px 480px at 85% -10%,rgba(82,145,180,.1),transparent 60%),radial-gradient(900px 420px at -10% 25%,rgba(212,168,58,.09),transparent 55%),var(--bg)
}

.overlay{
background:#0b142d80;
backdrop-filter:blur(7px) saturate(1.1);
-webkit-backdrop-filter:blur(7px) saturate(1.1)
}

.modal{
box-shadow:var(--shadow-lg)
}

.overlay.show .modal{
animation:modalIn .45s var(--spring) both
}

.overlay.show .modal.fullpage{
animation:pageIn .3s ease both
}

#homeMenuOverlay.show .modal.fullpage{
animation:sheetUp .34s var(--spring) both
}

@keyframes modalIn{
0%{
opacity:0;
transform:translateY(44px) scale(.95)
}

to{
opacity:1;
transform:none
}

}
@keyframes pageIn{
0%{
opacity:0;
transform:translateY(14px)
}

to{
opacity:1;
transform:none
}

}
.btn{
border-radius:12px;
position:relative;
overflow:hidden
}

.btn-primary{
background:linear-gradient(135deg,var(--navy),var(--navy-2));
box-shadow:0 6px 16px #0b142d47
}

.btn-danger{
background:linear-gradient(135deg,#e0483f,#e0483f);
box-shadow:0 6px 16px #e0483f47
}

.btn-secondary{
background:#f0f1f6
}

@media(hover:hover){
.btn-primary:hover{
transform:translateY(-1px);
box-shadow:0 10px 24px #0b142d57
}

.btn-danger:hover{
transform:translateY(-1px);
box-shadow:0 10px 24px #e0483f57
}

.btn-secondary:hover{
background:#e9ebf3
}

}
.field input,.field select,.modal input,.modal select,.modal textarea{
transition:border-color .2s ease,box-shadow .2s ease,background .2s ease
}

.search-wrap{
transition:box-shadow .25s ease
}

.search-wrap:focus-within{
box-shadow:0 0 0 3px #0b1f4d1f,var(--shadow)
}

.stat-card{
transition:transform .22s ease,box-shadow .22s ease
}

@media(hover:hover){
.stat-card:hover{
transform:translateY(-3px);
box-shadow:0 12px 28px #0b1f4d24
}

}
.home-menu-tile{
position:relative;
overflow:hidden
}

.home-menu-tile:after{
content:attr(data-hint);
display:block;
margin-top:-8px;
font-size:.68rem;
font-weight:500;
color:var(--muted);
line-height:1.35
}

.home-menu-tile:not([data-hint]):after{
display:none
}

.home-menu-tile-icon{
transition:transform .3s var(--spring)
}

@media(hover:hover){
.home-menu-tile:hover{
transform:translateY(-3px);
background:#fff;
box-shadow:0 12px 26px #0b142d21
}

.home-menu-tile:hover .home-menu-tile-icon{
transform:scale(1.1) rotate(-4deg)
}

}
#homeMenuOverlay.show .home-menu-tile{
animation:tileIn .5s var(--spring) both
}

#homeMenuOverlay.show .home-menu-tile:nth-child(1){
animation-delay:.03s
}

#homeMenuOverlay.show .home-menu-tile:nth-child(2){
animation-delay:.07s
}

#homeMenuOverlay.show .home-menu-tile:nth-child(3){
animation-delay:.11s
}

#homeMenuOverlay.show .home-menu-tile:nth-child(4){
animation-delay:.15s
}

#homeMenuOverlay.show .home-menu-tile:nth-child(5){
animation-delay:.19s
}

#homeMenuOverlay.show .home-menu-tile:nth-child(6){
animation-delay:.23s
}

#homeMenuOverlay.show .home-menu-tile:nth-child(7){
animation-delay:.27s
}

#homeMenuOverlay.show .home-menu-tile:nth-child(8){
animation-delay:.31s
}

#homeMenuOverlay.show .home-menu-tile:nth-child(9){
animation-delay:.35s
}

#homeMenuOverlay.show .home-menu-tile:nth-child(10){
animation-delay:.38s
}

#homeMenuOverlay.show .home-menu-tile:nth-child(n+11){
animation-delay:.41s
}

@keyframes tileIn{
0%{
opacity:0;
transform:translateY(18px) scale(.97)
}

to{
opacity:1;
transform:none
}

}
.home-menu-close{
transition:transform .3s var(--spring),background .2s ease
}

.home-menu-close:hover{
transform:rotate(90deg);
background:#e8eaf2
}

.section-title{
position:relative
}

.section-title:after{
content:"";
display:block;
width:44px;
height:3px;
border-radius:99px;
margin-top:6px;
background:linear-gradient(90deg,var(--gold),transparent)
}

.report-section-title{
position:relative;
border-bottom:none;
padding-bottom:4px
}

.report-section-title:after{
content:"";
display:block;
width:52px;
height:3px;
border-radius:99px;
margin-top:4px;
background:linear-gradient(90deg,var(--gold),transparent)
}

tbody tr{
transition:background .15s ease
}

@media(hover:hover){
tbody tr:hover{
background:#f5f8fd
}

}
.sales-list .sale-row{
animation:cardIn .35s ease both
}

.sales-list .sale-row:nth-child(2){
animation-delay:.04s
}

.sales-list .sale-row:nth-child(3){
animation-delay:.08s
}

.sales-list .sale-row:nth-child(4){
animation-delay:.12s
}

.sales-list .sale-row:nth-child(5){
animation-delay:.16s
}

.sales-list .sale-row:nth-child(6){
animation-delay:.2s
}

.sales-list .sale-row:nth-child(n+7){
animation-delay:.24s
}

.payment-option,.report-tab{
position:relative;
overflow:hidden;
border-radius:12px;
transition:all .18s ease
}

.payment-option.selected{
box-shadow:0 4px 14px #0b142d47
}

.report-tab.active{
box-shadow:0 4px 14px #0b142d38
}

.toast{
background:#0f172aeb;
backdrop-filter:blur(8px);
-webkit-backdrop-filter:blur(8px);
box-shadow:0 10px 30px #0b142d66;
border:1px solid rgba(255,255,255,.08)
}

header.topbar{
overflow:hidden
}

header.topbar:after{
content:"";
position:absolute;
top:0;
left:-70%;
width:45%;
height:100%;
pointer-events:none;
background:linear-gradient(100deg,transparent,rgba(255,255,255,.08),transparent);
animation:sheen 7s ease-in-out infinite
}

@keyframes sheen{
0%{
left:-70%
}

55%{
left:135%
}

to{
left:135%
}

}
@media(hover:hover){
.topbar-menu-btn:hover{
background:#ffffff29
}

}
.admin-btn{
position:relative;
overflow:hidden
}

.cashier-bar button{
transition:transform .12s ease,filter .2s ease
}

.cashier-bar button:active{
transform:scale(.94)
}

@media(hover:hover){
.cashier-bar button:hover{
filter:brightness(1.08)
}

}
::-webkit-scrollbar{
width:9px;
height:9px
}

::-webkit-scrollbar-track{
background:transparent
}

::-webkit-scrollbar-thumb{
background:#c7cfe2;
border-radius:99px;
border:2px solid var(--bg)
}

::-webkit-scrollbar-thumb:hover{
background:#aeb9d4
}


/* ---------- Mode vêtements : grille tailles × couleurs ---------- */
#zvFashionWrap .zv-fashion-chips{display:flex;
flex-wrap:wrap;
gap:6px;
margin-bottom:8px
}

#zvFashionWrap .zv-fashion-chip{flex:0 0 auto;
width:auto;
padding:7px 13px;
font-size:.82rem;
white-space:nowrap
}

#zvFashionWrap .zv-fashion-row{display:flex;
gap:8px;
flex-wrap:wrap;
align-items:flex-end;
margin-bottom:10px
}

#zvFashionWrap .zv-fashion-row>input{flex:1 1 150px;
min-width:0
}

#zvFashionWrap .zv-fashion-row .field{flex:1 1 130px;
min-width:0;
margin-bottom:0
}

#zvFashionWrap .zv-fashion-row .btn{flex:0 0 auto;
width:auto;
padding:9px 12px;
font-size:.82rem;
white-space:nowrap
}

#zvFashionGrid{overflow-x:auto;
-webkit-overflow-scrolling:touch
}

#zvFashionWrap .zv-fashion-step{display:flex;
align-items:center;
gap:7px;
font-size:.78rem;
font-weight:800;
color:var(--navy);
margin:14px 0 7px
}

#zvFashionWrap .zv-fashion-step-n{display:inline-flex;
align-items:center;
justify-content:center;
width:19px;
height:19px;
border-radius:50%;
background:var(--navy);
color:#fff;
font-size:.68rem;
font-weight:800;
flex:0 0 auto
}

#zvFashionWrap .zv-fashion-guide{margin:7px 0 0;
font-size:.72rem;
color:var(--muted);
line-height:1.5;
background:#fff;
border-left:3px solid var(--gold);
border-radius:0 6px 6px 0;
padding:6px 9px
}

#zvFashionWrap .zv-fashion-guide:empty{display:none
}

#zvFashionWrap .zv-fashion-grid-scroll{overflow-x:auto;
-webkit-overflow-scrolling:touch;
border-radius:8px
}

#zvFashionGrid table{min-width:100%;
border-collapse:separate;
border-spacing:0;
font-size:.8rem
}

#zvFashionGrid th,#zvFashionGrid td{padding:5px 6px;
text-align:center;
white-space:nowrap
}

#zvFashionGrid thead th{background:#eef3fb;
color:var(--navy);
font-size:.74rem
}

#zvFashionGrid .zv-fashion-rowhead{position:sticky;
left:0;
background:#eef3fb;
color:var(--navy);
font-weight:800;
text-align:left;
z-index:2
}

#zvFashionGrid .zv-fashion-corner{position:sticky;
left:0;
background:#eef3fb;
z-index:2
}

#zvFashionGrid tfoot th,#zvFashionGrid tfoot td{border-top:2px solid #cdd8ea;
background:#f7f9fc
}

#zvFashionGrid input{width:64px;
padding:7px 6px;
text-align:center;
font-size:.82rem;
border:1px solid #d7dee9;
border-radius:7px
}

#zvFashionGrid table{border-collapse:separate;
border-spacing:4px;
font-size:.78rem
}

#zvFashionGrid th{padding:2px 4px;
white-space:nowrap;
color:var(--navy)
}

#zvFashionGrid thead th{background:transparent;
color:var(--navy);
font-weight:700;
text-align:center;
cursor:default
}

#zvFashionGrid tbody th{text-align:left;
font-weight:800
}

#zvFashionGrid td{padding:0;
text-align:center
}

#zvFashionGrid input{width:58px;
padding:7px 4px;
text-align:center;
border:1.5px solid #e3e6ee;
border-radius:8px;
background:#fff;
font-size:.82rem;
font-weight:700
}

#zvFashionGrid input:focus{border-color:var(--navy)
}

/* ============================================================
   PAGE DES VENTES — nouveau format (bandeau du jour, barre de
   recherche collante, raccourcis, et la liste des articles en
   cartes sur téléphone)
   ============================================================ */
#salesMain{padding-bottom:96px
}

#articlesSectionTitle:empty{display:none
}

/* --- bandeau « aujourd'hui » --- */
.zv-sales-hero{margin:14px 0 2px;
border-radius:20px;
padding:15px 16px 13px;
background:linear-gradient(135deg,var(--navy) 0%,var(--navy-2) 55%,#1c3c7d 100%);
color:#fff;
box-shadow:0 12px 30px #0b142d3d;
position:relative;
overflow:hidden
}

.zv-sales-hero:after{content:"";
position:absolute;
top:-45%;
right:-12%;
width:190px;
height:190px;
border-radius:50%;
background:radial-gradient(circle,#d4a83a59,transparent 65%);
pointer-events:none
}

.zv-hero-top{display:flex;
align-items:center;
justify-content:space-between;
gap:10px;
position:relative;
z-index:2
}

.zv-hero-title{font-size:.72rem;
font-weight:800;
letter-spacing:.8px;
text-transform:uppercase;
color:var(--gold-light)
}

.zv-hero-date{font-size:.7rem;
color:#c9d2ea
}

.zv-hero-stats{display:grid;
grid-template-columns:repeat(3,1fr);
gap:8px;
margin-top:13px;
position:relative;
z-index:2
}

.zv-hero-stat{background:#ffffff14;
border:1px solid #ffffff24;
border-radius:14px;
padding:9px 6px;
text-align:center
}

.zv-hero-stat .k{display:block;
font-size:.63rem;
color:#c9d2ea;
font-weight:700;
margin-bottom:4px;
letter-spacing:.3px
}

.zv-hero-stat .v{display:block;
font-size:1.02rem;
font-weight:800;
line-height:1.15;
word-break:break-word
}

.zv-hero-stat .v small{display:block;
font-size:.62rem;
font-weight:700;
color:var(--gold-light);
margin-top:3px
}

.zv-hero-foot{margin-top:11px;
display:flex;
justify-content:space-between;
align-items:center;
gap:8px;
font-size:.7rem;
color:#c9d2ea;
position:relative;
z-index:2
}

.zv-hero-trend{font-weight:800;
color:var(--gold-light)
}

.zv-hero-trend.up{color:#5be39a
}

.zv-hero-trend.down{color:#ff9d95
}

/* --- barre de recherche collante --- */
#salesMain>.toolbar{position:sticky;
top:0;
z-index:25;
margin:14px -16px 0;
padding:10px 16px;
gap:8px;
flex-wrap:nowrap;
background:linear-gradient(180deg,#eef1f7f5,#eef1f7d9);
backdrop-filter:blur(10px) saturate(1.1);
-webkit-backdrop-filter:blur(10px) saturate(1.1);
border-bottom:1px solid #0b142d0f
}

#salesMain>.toolbar .search-wrap{border:1.5px solid #e3e6ee;
border-radius:14px;
background:#fff;
padding:0 12px;
transition:border-color .2s ease,box-shadow .2s ease
}

#salesMain>.toolbar .search-wrap:focus-within{border-color:var(--navy);
box-shadow:0 0 0 4px #0b142d12
}

#salesMain>.toolbar .search-wrap input{padding:13px 8px;
font-size:.9rem
}

#salesMain>.toolbar .icon-btn{width:44px;
height:44px;
border-radius:14px;
border:1.5px solid #e3e6ee;
background:#fff;
font-size:1.05rem;
transition:transform .15s ease,box-shadow .2s ease
}

#salesMain>.toolbar .icon-btn:active{transform:scale(.94)
}

/* --- raccourcis --- */
.sales-actions{display:grid;
grid-template-columns:1fr;
gap:10px;
margin:14px 0
}

@media(min-width:560px){.sales-actions{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))
}
}
#salesMain .sales-actions .btn{width:100%!important;
margin-bottom:0!important;
padding:15px;
border-radius:15px;
font-size:.86rem;
font-weight:800;
border:1.5px solid #e6e9f2;
background:#fff;
color:var(--navy);
box-shadow:0 4px 14px #0b142d0d;
display:flex;
align-items:center;
justify-content:center;
gap:8px
}

#salesMain .sales-actions #homeAddArticleBtn{background:linear-gradient(135deg,var(--navy),var(--navy-2));
color:#fff;
border-color:transparent;
box-shadow:0 8px 22px #0b142d33
}

#salesMain .sales-actions .btn:active{transform:scale(.97)
}

/* --- pastilles de catégorie --- */
#articleCategoryChips{scrollbar-width:none;
gap:8px!important;
padding:4px 2px 12px!important
}

#articleCategoryChips::-webkit-scrollbar{display:none
}

#articleCategoryChips>button{border-radius:999px!important;
padding:9px 16px!important;
font-size:.78rem!important;
letter-spacing:.2px;
box-shadow:0 2px 8px #0b142d12;
transition:transform .15s ease
}

#articleCategoryChips>button:active{transform:scale(.94)
}

/* --- liste des articles (bureau) --- */
#salesTableCard{border-radius:18px;
border:1px solid #0b142d0d;
box-shadow:0 8px 24px #0b142d14
}

#salesTableCard thead th{letter-spacing:.4px;
position:sticky;
top:0;
z-index:2
}

#salesTableCard .article-name{font-size:.9rem
}

#salesTableCard .price-sell{font-weight:800;
white-space:nowrap
}

#salesTableCard .stock-cell{font-weight:800
}

#salesTableCard tbody tr{transition:background .15s ease
}

@media(hover:hover){#salesTableCard tbody tr:hover{background:#f7faff
}
}
/* --- liste des articles (téléphone) : chaque article devient une carte --- */
@media(max-width:700px){
#salesTableCard{background:transparent;
border:none;
box-shadow:none;
border-radius:0;
overflow:visible
}

#salesTableCard .table-scroll{overflow:visible
}

#salesTableCard table{min-width:0;
width:100%;
border-collapse:separate;
border-spacing:0
}

#salesTableCard thead{display:none
}

#salesTableCard tbody{display:block;
width:100%
}

#salesTableCard tbody tr{display:grid;
grid-template-columns:repeat(auto-fit,minmax(118px,1fr));
gap:7px;
width:100%;
background:#fff;
border:1px solid #eaeef6;
border-radius:16px;
box-shadow:0 4px 14px #0b142d12;
margin-bottom:12px;
padding:13px 13px 12px;
position:relative;
overflow:hidden
}

#salesTableCard tbody tr:before{content:"";
position:absolute;
left:0;
top:0;
bottom:0;
width:4px;
background:linear-gradient(180deg,var(--navy),var(--gold))
}

#salesTableCard tbody td.zv-on{display:block!important;
background:#f6f8fd;
border:none!important;
border-radius:12px;
padding:8px 10px!important;
font-size:.86rem;
text-align:left;
min-width:0
}

#salesTableCard tbody td.zv-on:before{content:attr(data-label);
display:block;
color:var(--muted);
font-size:.64rem;
font-weight:800;
text-transform:uppercase;
letter-spacing:.6px;
margin-bottom:2px
}

#salesTableCard tbody td.zv-article{grid-column:1/-1;
order:1;
display:block!important;
padding:0 0 4px!important;
border:none!important;
text-align:left
}

#salesTableCard tbody td.zv-article:before{display:none
}

#salesTableCard tbody td[data-label="Code"]{grid-column:1/-1;
order:2;
display:flex!important;
align-items:center;
justify-content:space-between;
gap:10px
}

#salesTableCard tbody td[data-label="Code"]:before{margin-bottom:0
}

#salesTableCard tbody td.zv-on:not([data-label="Code"]){order:3
}

#salesTableCard tbody td.actions-cell{order:4
}

#salesTableCard tbody td.zv-article .article-cell{gap:12px
}

#salesTableCard .thumb,#salesTableCard .thumb-fallback{width:52px;
height:52px;
border-radius:14px;
font-size:1.05rem
}

#salesTableCard tbody td.price-sell{color:var(--green);
font-size:.95rem
}

#salesTableCard tbody td.actions-cell{grid-column:1/-1;
display:flex!important;
justify-content:flex-end;
flex-wrap:wrap;
gap:8px;
padding:4px 0 0!important;
border:none!important
}

#salesTableCard tbody td.actions-cell:before{display:none
}

#salesTableCard tbody td.actions-cell .icon-btn{width:44px;
height:44px;
border-radius:13px
}

#salesTableCard tbody td.actions-cell .icon-btn.sell.wide{flex:1;
width:auto;
padding:0 18px;
font-size:.86rem;
border-radius:13px;
background:linear-gradient(135deg,#1f9d55,#17864a);
border-color:transparent;
color:#fff
}

#salesTableCard tbody td.actions-cell .icon-btn.sell.wide svg{stroke:#fff
}

#salesTableCard tbody .empty-row{display:block
}

#salesTableCard tbody .empty-row td{display:block!important;
text-align:center;
padding:30px 14px!important;
border:none!important
}

#salesTableCard tbody .empty-row td:before{display:none
}

#salesTableCard tbody td[data-label="Code"]{font-size:.78rem;
font-weight:700;
letter-spacing:.3px
}

}
/* --- panier de vente (modale) : en-tête, lignes, paiement, encaissement --- */
#cartOverlay .modal{padding-top:20px
}

#cartOverlay #cartModalTitle{margin-bottom:12px
}

#zvCartSummary{position:relative;
display:flex;
align-items:center;
justify-content:space-between;
gap:10px;
flex-wrap:wrap;
margin:0 0 16px;
padding:13px 15px;
border-radius:16px;
background:linear-gradient(135deg,#f7f9fe,#e8eefb);
border:1px solid #e3e9f7;
border-left:3px solid var(--gold);
box-shadow:0 3px 10px #0b142d0f
}

#zvCartSummary .zv-cs-pill{display:inline-flex;
align-items:center;
gap:6px;
background:#fff;
border:1px solid #e3e9f7;
border-radius:999px;
padding:6px 13px;
font-size:.76rem;
font-weight:800;
color:var(--navy)
}

#zvCartSummary .zv-cs-total{text-align:right;
font-size:1.28rem;
font-weight:800;
color:var(--navy);
line-height:1.1
}

#zvCartSummary .zv-cs-total small{display:block;
font-size:.62rem;
font-weight:800;
color:var(--muted);
text-transform:uppercase;
letter-spacing:.7px;
margin-bottom:2px
}

#zvCartSummary .zv-cs-due{border-radius:999px;
padding:6px 13px;
font-size:.74rem;
font-weight:800;
background:#fdf1f0;
color:#e0483f;
border:1px solid #f8dcd9
}

#zvCartSummary .zv-cs-due.ok{background:#eafaf0;
color:#17864a;
border-color:#d3f2e0
}

#cartOverlay .cart-item-row{position:relative;
background:linear-gradient(180deg,#fff,#fbfcff);
border:1px solid #eaeef6;
border-radius:16px;
padding:13px 13px 13px 64px;
margin-bottom:9px;
gap:10px;
box-shadow:0 4px 12px #0b142d0d;
transition:border-color .2s ease,box-shadow .2s ease
}

#cartOverlay .cart-item-row:hover{border-color:#dbe3f3;
box-shadow:0 9px 22px #0b142d1a
}

#cartOverlay .cart-item-row:before{content:attr(data-zv-initial);
position:absolute;
left:13px;
top:13px;
width:38px;
height:38px;
border-radius:12px;
display:flex;
align-items:center;
justify-content:center;
font-weight:800;
font-size:.95rem;
color:#fff;
text-transform:uppercase;
background:linear-gradient(135deg,var(--navy),#27407e);
box-shadow:0 4px 10px #0b142d33
}

#cartOverlay .cart-item-info{display:flex;
flex-direction:column;
gap:2px;
align-items:flex-start
}

#cartOverlay .cart-item-name{font-size:.96rem;
letter-spacing:.1px
}

#cartOverlay .cart-item-price{font-size:.75rem;
color:var(--muted);
margin-top:4px;
display:flex;
align-items:baseline;
gap:7px;
flex-wrap:wrap
}

#cartOverlay .cart-item-price .zv-ci-calc{background:#f1f4fa;
border-radius:8px;
padding:3px 8px;
font-weight:700;
color:#5c6885
}

#cartOverlay .cart-item-price .zv-ci-total{font-size:.96rem;
font-weight:800;
color:var(--navy);
letter-spacing:.2px
}

#cartOverlay .cart-item-row button[onclick^="editLineDiscount"]{align-self:flex-start;
margin-top:8px!important;
background:#f1f4fa!important;
border:none!important;
color:#6b7590!important;
text-decoration:none!important;
border-radius:999px!important;
padding:4px 11px!important;
font-size:.7rem!important;
font-weight:800!important;
cursor:pointer
}

#cartOverlay .cart-item-row button[onclick^="editLineDiscount"]:hover{background:#e6ebf7!important;
color:var(--navy)!important
}

#cartOverlay .cart-item-row button[onclick^="editLineDiscount"].zv-ci-disc-on{background:#eafaf0!important;
color:#17864a!important
}

#cartOverlay .cart-item-qty{gap:0;
background:#fff;
border:1.5px solid #e3e6ee;
border-radius:13px;
padding:3px;
flex-shrink:0;
box-shadow:0 2px 6px #0b142d0f
}

#cartOverlay .cart-item-qty button{width:32px;
height:32px;
border:none;
background:transparent;
border-radius:10px;
font-size:1.05rem;
font-weight:800;
color:var(--navy);
cursor:pointer
}

#cartOverlay .cart-item-qty button:hover{background:#eef2fb
}

#cartOverlay .cart-item-qty button:active{transform:scale(.9);
background:#e2e9f8
}

#cartOverlay .cart-item-qty input{width:44px;
height:32px;
border:none;
border-radius:9px;
background:transparent;
font-weight:800;
font-size:.95rem;
box-shadow:none
}

#cartOverlay .cart-item-qty input:focus{background:#f1f4fa;
outline:none
}

#cartOverlay .cart-item-remove{width:32px;
height:32px;
border-radius:10px;
background:transparent;
border:1.5px solid transparent;
opacity:.5;
transition:opacity .18s ease,background .18s ease,border-color .18s ease
}

#cartOverlay .cart-item-row:hover .cart-item-remove{opacity:1
}

#cartOverlay .cart-item-remove:hover{background:#fdecec;
border-color:#f8dcd9
}

#cartOverlay .cart-empty{border:1.5px dashed #dfe5f0;
border-radius:16px;
background:#fbfcfe;
padding:26px 16px
}

#cartOverlay .cart-empty:before{content:"🛒";
display:block;
font-size:1.7rem;
margin-bottom:8px
}

#cartOverlay .field label{font-size:.72rem;
font-weight:800;
color:#8d97ad;
text-transform:uppercase;
letter-spacing:.6px
}

#cartOverlay .field input,#cartOverlay .field select{border-radius:12px;
padding:13px 12px
}

#cartOverlay .report-section-title{font-size:.95rem;
margin:24px 0 10px;
padding-bottom:0
}

#cartOverlay .report-section-title:after{width:36px;
height:3px;
margin-top:5px
}

#cartOverlay .payment-toggle{display:grid;
grid-template-columns:1fr 1fr;
gap:8px
}

#cartOverlay .payment-option{padding:13px 10px;
border-radius:14px;
font-size:.85rem;
display:flex;
align-items:center;
justify-content:center;
gap:6px;
background:#fbfcfe;
border:1.5px solid #e3e6ee
}

#cartOverlay .payment-option.selected{background:linear-gradient(135deg,var(--navy),var(--navy-2));
border-color:transparent;
box-shadow:0 8px 20px #0b142d33
}

#cartOverlay .cart-totals{background:#f8fafd;
border:1px solid #eaeef6;
border-radius:16px;
padding:4px 14px
}

#cartOverlay .cart-totals .cart-total-row{padding:9px 0;
font-size:.88rem;
border-bottom:1px dashed #e9edf5;
gap:10px
}

#cartOverlay .cart-totals .cart-total-row:last-child{border-bottom:none;
font-size:1.05rem;
font-weight:800;
color:var(--navy)
}

#cartOverlay .cart-totals:not(#cartEchoWrap) .cart-total-row:last-child{margin:2px -14px -4px;
padding:13px 14px;
border-radius:0 0 14px 14px;
background:linear-gradient(135deg,#f6f8fd,#eaf0fb);
font-size:1.12rem;
letter-spacing:.2px
}

#cartEchoWrap{gap:10px!important;
flex-wrap:wrap;
background:transparent!important;
border:none!important;
padding:0!important
}

#cartEchoWrap .cart-total-row{flex:1 1 130px;
flex-direction:column;
align-items:flex-start;
gap:2px;
border-bottom:none!important;
background:#f8fafd;
border:1px solid #eaeef6;
border-radius:13px;
padding:10px 12px;
font-size:.76rem;
color:var(--muted)
}

#cartEchoWrap .cart-total-row strong{font-size:1.02rem;
color:var(--navy)
}

#cartDiscountInput{padding:9px 10px!important;
border-radius:11px!important;
font-weight:800;
border:1.5px solid #e3e6ee!important;
background:#fff!important;
font-size:.92rem
}

#cartOverlay .cart-totals:not(#cartEchoWrap) .cart-total-row>:last-child>div{border:1.5px solid #e3e6ee!important;
border-radius:11px!important;
overflow:hidden;
flex-shrink:0;
background:#fff
}

#cartDiscountTypeAmountBtn,#cartDiscountTypePercentBtn{padding:8px 12px!important;
font-size:.74rem!important;
font-weight:800!important;
border:none!important;
cursor:pointer;
color:#6b7590
}

#cartDiscountTypeAmountBtn:not([style*=background]),#cartDiscountTypePercentBtn:not([style*=background]){color:#6b7590
}

#cartOverlay .cart-total-row span{color:#5c6885;
font-weight:600
}

#cartOverlay .cart-totals:not(#cartEchoWrap) .cart-total-row:last-child span{color:var(--navy);
font-weight:800
}

#cartReceived{font-size:1.15rem;
font-weight:800;
text-align:right;
padding:16px 14px;
border-radius:14px;
border:1.5px solid #e3e6ee;
background:#fbfcfe
}

#cartReceived:focus{border-color:var(--navy);
background:#fff;
box-shadow:0 0 0 4px #0b142d12
}

#cartChangeBox{border-radius:16px;
border:1px solid #eaeef6;
padding:15px 16px;
background:#f8fafd
}

#cartChangeBox.negative{background:#fdf1f0;
border-color:#f8dcd9
}

#cartChangeBox.positive{background:#eafaf0;
border-color:#d3f2e0
}

#cartChangeBox .lbl{font-weight:800;
text-transform:uppercase;
font-size:.7rem;
letter-spacing:.6px;
color:var(--muted)
}

#cartChangeBox .val{font-size:1.35rem
}

#cartChangeBox.positive .val{color:#17864a
}

#cartChangeBox.negative{box-shadow:0 6px 18px #e0483f1f
}

#cartChangeBox.positive{box-shadow:0 6px 18px #1f9d551f
}

#orderChangeBox.negative{background:#fdf1f0;
border-color:#f8dcd9;
box-shadow:0 6px 18px #e0483f1f
}

/* barre d'encaissement collante en bas de la modale */
#cartOverlay .modal>.modal-actions:last-child{position:sticky;
bottom:-26px;
z-index:6;
margin:18px -20px -26px;
padding:12px 20px calc(16px + env(safe-area-inset-bottom));
gap:10px;
flex-wrap:nowrap;
align-items:center;
background:linear-gradient(0deg,#fff 66%,#ffffffd9);
border-top:1px solid #eef0f6;
box-shadow:0 -10px 22px #0b142d12
}

#cartOverlay .modal>.modal-actions:last-child .btn{padding:15px;
border-radius:14px;
font-size:.92rem
}

#zvCartStickyTotal{flex:0 0 auto;
font-size:.64rem;
font-weight:800;
color:var(--muted);
text-transform:uppercase;
letter-spacing:.5px;
line-height:1.35;
text-align:left
}

#zvCartStickyTotal b{display:block;
font-size:1.05rem;
color:var(--navy);
text-transform:none;
letter-spacing:0
}

.receipt-payment-row{flex-wrap:wrap;
row-gap:6px
}

/* --- panier flottant --- */
.cart-fab{box-shadow:0 10px 26px #0b142d5c
}

@keyframes zvFabPulse{0%,to{box-shadow:0 10px 26px #0b142d5c,0 0 0 0 #d4a83a7a
}
70%{box-shadow:0 10px 26px #0b142d5c,0 0 0 14px #d4a83a00
}
}
.cart-fab:has(.cart-badge:not(.hidden)){animation:zvFabPulse 2.4s ease-out infinite
}

@media(prefers-reduced-motion:reduce){.cart-fab:has(.cart-badge:not(.hidden)){animation:none
}
}
.zv-ripple{position:absolute;
border-radius:50%;
pointer-events:none;
animation:zvRip .55s ease-out forwards
}
@keyframes zvRip{0%{transform:scale(0);
opacity:.55
}
to{transform:scale(1);
opacity:0
}
}
/* =====================================================================
   🛍️ BOUTIQUE — habillage de la liste des articles (CSS SEULEMENT)
   ---------------------------------------------------------------------
   On ne touche à aucun contenu : mêmes balises, mêmes classes, mêmes
   boutons. On change seulement l'apparence pour que la liste des
   articles ressemble à une vraie boutique en ligne :
     · vignette plus grande, arrondie, avec ombre (et zoom au survol) ;
     · nom du produit plus fort, étoiles dorées, étiquette catégorie en
       pastille ;
     · prix en gros, vert, aligné à droite ;
     · stock en pastille d'état ;
     · bouton « Vendre » en bouton plein vert, bien lisible.
   Sur téléphone, la liste est déjà en cartes : on affine seulement.
   ===================================================================== */

#salesTableCard.table-card{
background:var(--card);
border:1px solid #edf1f9;
border-radius:20px;
box-shadow:0 12px 34px rgba(11,31,77,.07)
}

/* --- en-tête de colonnes --- */
#salesTableCard thead th{
background:linear-gradient(180deg,var(--navy),#0f2c66);
color:#fff;
font-size:.7rem;
font-weight:800;
text-transform:uppercase;
letter-spacing:.7px;
padding:14px 14px 12px;
border-bottom:3px solid var(--gold)
}

#salesTableCard tbody td{padding:13px 14px}

/* --- nom du produit : bien en avant --- */
#salesTableCard .article-name{
font-weight:800;
font-size:.93rem;
line-height:1.25;
letter-spacing:-.1px;
color:var(--text)
}
#salesTableCard .article-name .zvi{color:#e8a33d}

/* --- étiquette catégorie en pastille --- */
#salesTableCard .badge{
font-size:.66rem;
font-weight:800;
text-transform:uppercase;
letter-spacing:.5px;
padding:3px 10px;
border-radius:999px;
margin-top:5px
}

/* --- code produit --- */
#salesTableCard td.code-cell{
font-size:.79rem;
font-weight:800;
letter-spacing:.4px;
color:var(--navy);
white-space:nowrap
}
#salesTableCard td.code-cell .stock-alert.out{color:var(--red)}

/* --- prix de vente --- */
#salesTableCard td.price-sell{
color:#17864a;
font-weight:800;
font-size:1rem;
text-align:right;
white-space:nowrap
}
#salesTableCard td.price-sell>span{font-weight:700;opacity:.7}

/* --- stock : une pastille d'état --- */
#salesTableCard td.stock-cell{
font-weight:800;
font-size:.85rem;
text-align:center;
color:var(--navy);
background:#f3f7fd;
border-radius:11px;
min-width:62px
}
#salesTableCard td.stock-cell strong{color:var(--red)}

/* --- bouton Vendre --- */
#salesTableCard td.actions-cell{text-align:right;white-space:nowrap}
#salesTableCard td.actions-cell .icon-btn{
border-radius:12px;
transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease
}
#salesTableCard td.actions-cell .icon-btn.sell.wide{
background:linear-gradient(135deg,#1fae62,#17864a);
border-color:transparent;
color:#fff;
font-weight:800;
height:40px;
border-radius:12px;
box-shadow:0 6px 16px rgba(23,134,74,.28)
}
#salesTableCard td.actions-cell .icon-btn.sell.wide svg{stroke:#fff}
@media(hover:hover){
#salesTableCard td.actions-cell .icon-btn.sell.wide:hover{transform:translateY(-2px);box-shadow:0 10px 22px rgba(23,134,74,.35)}
#salesTableCard td.actions-cell .icon-btn:hover{border-color:var(--gold)}
}

/* --- vignette : plus grande, arrondie, qui zoome au survol --- */
#salesTableCard .thumb,
#salesTableCard .thumb-fallback{
transition:transform .18s ease,box-shadow .18s ease
}
@media(hover:hover){
#salesTableCard tbody tr:hover .thumb,
#salesTableCard tbody tr:hover .thumb-fallback{transform:scale(1.07)}
}

/* ------------------------------ ordinateur / tablette ----------------- */
@media(min-width:701px){
#salesTableCard tbody tr{transition:background .16s ease}
#salesTableCard tbody td{padding:14px 16px;vertical-align:middle}
#salesTableCard .thumb,
#salesTableCard .thumb-fallback{
width:56px;
height:56px;
border-radius:16px;
font-size:1.15rem;
border:2px solid #fff;
box-shadow:0 5px 16px rgba(11,31,77,.16)
}
#salesTableCard .article-cell{gap:15px;align-items:center}
#salesTableCard td.code-cell{width:98px}
#salesTableCard td.price-sell{width:120px}
#salesTableCard td.actions-cell{width:132px}
}

/* ------------------------------------- téléphone ----------------------- */
@media(max-width:700px){
/* chaque article reste une carte : on la rend plus douce et plus lisible */
#salesTableCard tbody tr{
box-shadow:0 6px 18px #0b142d14;
border-color:#e9eefb;
padding:15px 15px 14px
}
#salesTableCard .thumb,
#salesTableCard .thumb-fallback{
box-shadow:0 5px 14px rgba(11,31,77,.18);
border:2px solid #fff
}
#salesTableCard tbody td.actions-cell .icon-btn.sell.wide{
box-shadow:0 6px 16px rgba(23,134,74,.28)
}
#salesTableCard .article-name{font-size:.95rem}
#salesTableCard .badge{border-radius:999px}
}
/* =====================================================================
   🧾 LISTE DES VENTES — habillage « boutique » (ordinateur ET téléphone)
   ---------------------------------------------------------------------
   Toutes les listes de ventes partagent la classe .sales-list :
   rapports, ventes du jour, détail de caisse, livraisons, retours…
   On transforme chaque ligne en vraie carte :
     · bordure gauche dorée qui passe au bleu nuit au survol ;
     · numéro de vente bien visible, date/caissier en petit ;
     · montant en grand, aligné à droite (vert dans les listes de ventes) ;
     · boutons compacts et arrondis.
   Les lignes d'avertissement (fond rouge posé en ligne) ne sont pas
   touchées : c'est le style en ligne qui gagne.
   ===================================================================== */
.sales-list .sale-row{
background:#fff;
border:1px solid #eef1f8;
border-left:4px solid var(--gold);
border-radius:16px;
padding:15px 17px;
margin-bottom:11px;
box-shadow:0 4px 14px rgba(11,31,77,.06);
transition:box-shadow .16s ease,transform .16s ease,border-left-color .16s ease
}
@media(hover:hover){
.sales-list .sale-row:hover{
box-shadow:0 12px 26px rgba(11,31,77,.13);
transform:translateY(-2px);
border-left-color:var(--navy)
}
}
.sales-list .sale-meta{font-size:.75rem;color:var(--muted);line-height:1.5}
.sales-list .sale-meta strong{color:var(--navy);font-weight:800;font-size:.82rem;letter-spacing:.2px}
/* ligne des articles vendus (« 1x Rhum Barbancourt ⭐️ ») */
.sales-list .sale-row>div>div:not([class]){font-size:.87rem;font-weight:600;color:var(--text)}
/* montant de la ligne : gros et net */
.sales-list .sale-row:not(.zv-fiche-card)>div>strong:last-child{
color:var(--navy);
font-weight:800;
font-size:1.04rem;
letter-spacing:-.2px;
white-space:nowrap
}
/* vert pour les vraies listes de ventes */
#repSalesList .sale-row>div>strong:last-child,
#tsList .sale-row>div>strong:last-child,
#tsByCashierList .sale-row>div>strong:last-child,
#cashierReportList .sale-row>div>strong:last-child,
#repDeliveriesList .sale-row>div>strong:last-child,
#repSalesReturnsList .sale-row>div>strong:last-child,
#reportBody .sale-row>div>strong:last-child{color:#17864a}
/* boutons d'action de la ligne (reçu, WhatsApp, livrer…) — la règle globale .btn{flex:1}
   les étirerait sur toute la carte : on les remet à leur largeur naturelle */
.sales-list .sale-row .btn{border-radius:10px;padding:7px 12px;font-size:.75rem;font-weight:700;width:auto;max-width:none;flex:0 0 auto}
.sales-list .sale-row>div[style*="gap"]{flex-wrap:wrap;justify-content:flex-start}
.sales-list .sale-row .btn.btn-secondary{background:#f4f7fc;border:1px solid #e6ecf7;color:var(--navy)}
@media(hover:hover){.sales-list .sale-row .btn.btn-secondary:hover{border-color:var(--gold)}}
/* à l'impression : pas d'ombre ni de mouvement */
@media print{
.sales-list .sale-row{border:none;box-shadow:none;transform:none;padding:8px 0}
}
