#tcs-terminal{min-height:100vh;background:#0f0b08;color:#f5e6c8;font-family:Arial,sans-serif}.tcs-terminal-login{min-height:100vh;display:grid;place-items:center;padding:20px}.tcs-terminal-card{width:min(420px,100%);background:#17100c;border:1px solid #b87333;border-radius:20px;padding:32px;text-align:center}.tcs-terminal-card h1{font-size:38px;margin:0}.tcs-terminal-card input,.tcs-terminal-card button{width:100%;font-size:24px;padding:16px;margin-top:16px;border-radius:12px}.tcs-terminal-card button{background:#b87333;color:#fff;border:0;font-weight:700}.tcs-terminal-app header{position:sticky;top:0;z-index:4;display:flex;justify-content:space-between;align-items:center;padding:16px 20px;background:#17100c;border-bottom:1px solid #b87333}.tcs-terminal-app header strong,.tcs-terminal-app header span{display:block}.tcs-terminal-app header button,.tcs-terminal-tools button{padding:12px 18px;border-radius:10px}.tcs-terminal-tools{display:flex;gap:10px;padding:16px;position:sticky;top:73px;background:#0f0b08;z-index:3}.tcs-terminal-tools input{flex:1;font-size:20px;padding:14px;border-radius:10px}.tcs-terminal-grid{padding:0 16px 100px}.tcs-category h2{color:#d89143;margin:24px 0 12px}.tcs-products{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:14px}.tcs-product-card{overflow:hidden;border:1px solid #b87333;border-radius:18px;background:#1e1510;box-shadow:0 8px 22px rgba(0,0,0,.22);display:flex;flex-direction:column}.tcs-product-image-wrap{position:relative;aspect-ratio:1/1;background:#fff;overflow:hidden}.tcs-product-image{width:100%;height:100%;object-fit:contain;display:block}.tcs-stock-badge{position:absolute;top:10px;right:10px;background:rgba(15,11,8,.9);color:#f5e6c8;border:1px solid #b87333;border-radius:999px;padding:7px 10px;font-size:13px;font-weight:700}.tcs-product-info{padding:13px 14px;display:flex;flex-direction:column;gap:5px;flex:1}.tcs-product-info h3{font-size:17px;line-height:1.25;margin:0;color:#f5e6c8}.tcs-product-info small{opacity:.65;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tcs-product-price{font-size:22px;color:#d89143;margin-top:auto;padding-top:8px}.tcs-product-sale{border:0;border-top:1px solid #b87333;background:#b87333;color:#fff;padding:14px;display:flex;align-items:center;justify-content:space-between;font-size:17px;font-weight:800;cursor:pointer}.tcs-product-sale b{font-size:12px;opacity:.8}.tcs-product-sale:active{transform:scale(.98)}.tcs-product-sale:disabled{opacity:.6;cursor:wait}.tcs-empty{margin:40px auto;max-width:600px;padding:28px;border:1px dashed #b87333;border-radius:16px;text-align:center;display:grid;gap:8px}.tcs-empty span{opacity:.75}#tcs-terminal-toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%) translateY(30px);opacity:0;background:#2a8a45;color:#fff;padding:16px 24px;border-radius:12px;font-weight:700;transition:.2s;z-index:10}#tcs-terminal-toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
@media(max-width:700px){.tcs-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.tcs-terminal-tools{padding:10px;top:69px}.tcs-terminal-tools input{font-size:16px}.tcs-product-info h3{font-size:15px}.tcs-product-price{font-size:19px}.tcs-product-sale{padding:12px 10px;font-size:15px}.tcs-stock-badge{font-size:12px}.tcs-terminal-grid{padding:0 10px 90px}}

.tcs-sale-controls{border-top:1px solid #b87333;background:#17100c}.tcs-quantity-picker{display:grid;grid-template-columns:48px 1fr 48px;gap:8px;padding:10px}.tcs-quantity-picker button,.tcs-quantity-picker input{min-height:44px;border-radius:10px;border:1px solid #b87333;font-size:20px;text-align:center}.tcs-quantity-picker button{background:#2a1d16;color:#f5e6c8;font-weight:900;cursor:pointer}.tcs-quantity-picker input{width:100%;background:#fff;color:#17100c;font-weight:800;-moz-appearance:textfield}.tcs-quantity-picker input::-webkit-outer-spin-button,.tcs-quantity-picker input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.tcs-product-sale{width:100%}.tcs-product-sale em{font-style:normal}.tcs-product-price{white-space:nowrap}
.tcs-header-actions{display:flex;gap:8px}.tcs-finish-btn{background:#9f2f22!important;color:#fff!important;border-color:#c94837!important;font-weight:900}.tcs-terminal-card #tcs-event-name{font-size:18px}.tcs-finish-modal{}#tcs-finish-modal{position:fixed;inset:0;background:rgba(0,0,0,.78);z-index:30;display:grid;place-items:center;padding:16px}#tcs-finish-modal[hidden]{display:none}.tcs-finish-dialog{width:min(760px,100%);max-height:92vh;overflow:auto;background:#17100c;border:1px solid #b87333;border-radius:18px;padding:22px}.tcs-finish-dialog h2{margin-top:0;color:#f5e6c8}.tcs-finish-dialog table{width:100%;border-collapse:collapse;margin:14px 0}.tcs-finish-dialog th,.tcs-finish-dialog td{padding:10px;border-bottom:1px solid rgba(184,115,51,.35);text-align:left}.tcs-finish-dialog td small{display:block;opacity:.65}.tcs-finish-totals{display:flex;justify-content:space-between;align-items:center;background:#241811;border-radius:12px;padding:14px;font-size:20px}.tcs-finish-totals strong{color:#d89143;font-size:26px}.tcs-restock-list{display:grid;gap:9px}.tcs-restock-item{display:grid;grid-template-columns:1fr auto;gap:3px 12px;background:#241811;border-left:5px solid #b87333;border-radius:10px;padding:12px}.tcs-restock-item small{grid-column:1/-1;opacity:.75}.tcs-restock-item.is-shortage{border-left-color:#d64535;background:#321714}.tcs-finish-dialog>button{width:100%;padding:14px;margin-top:18px;border:0;border-radius:10px;background:#b87333;color:#fff;font-weight:800;font-size:17px}

/* V1.8 - Lisibilité tablette, protections contre les styles du thème */
#tcs-terminal,#tcs-terminal *{box-sizing:border-box}
#tcs-terminal{font-family:Poppins,Arial,sans-serif!important;color:#f7ead2!important;background:#0f0b08!important;min-height:100vh!important}
#tcs-terminal .tcs-terminal-login,#tcs-terminal .tcs-terminal-app{background:#0f0b08!important;color:#f7ead2!important}
#tcs-terminal .tcs-terminal-card{background:#17100c!important;color:#f7ead2!important;border-color:#b87333!important}
#tcs-terminal .tcs-terminal-card h1{color:#d9a45c!important;text-shadow:none!important}
#tcs-terminal .tcs-terminal-card p,#tcs-terminal .tcs-terminal-card label{color:#fff!important}
#tcs-terminal input[type="text"],#tcs-terminal input[type="password"],#tcs-terminal input[type="search"],#tcs-terminal input[type="number"]{background:#fff!important;color:#17100c!important;border:3px solid #6d625c!important;box-shadow:none!important;opacity:1!important;-webkit-text-fill-color:#17100c!important}
#tcs-terminal input::placeholder{color:#6b625c!important;opacity:1!important;-webkit-text-fill-color:#6b625c!important}
#tcs-terminal #tcs-event-name{color:#17100c!important;-webkit-text-fill-color:#17100c!important}
#tcs-terminal button{opacity:1!important;text-shadow:none!important}
#tcs-terminal #tcs-terminal-login-btn{background:#c77b2f!important;color:#fff!important;border:2px solid #d9954d!important}
#tcs-terminal .tcs-terminal-app>header{background:#17100c!important;color:#fff!important;border-bottom:1px solid #b87333!important}
#tcs-terminal .tcs-terminal-app>header strong{color:#f5e6c8!important}
#tcs-terminal .tcs-terminal-app>header span{color:#fff!important}
#tcs-terminal #tcs-terminal-finish{background:#b43125!important;color:#fff!important;border:2px solid #d14b3e!important}
#tcs-terminal #tcs-terminal-lock,#tcs-terminal #tcs-terminal-refresh{background:#fff!important;color:#17100c!important;border:2px solid #ddd!important}
#tcs-terminal .tcs-terminal-tools{background:#0f0b08!important;border-bottom:1px solid #b87333!important}
#tcs-terminal .tcs-product-card{background:#17100c!important;color:#f7ead2!important}
#tcs-terminal .tcs-product-info h3{color:#fff!important}
#tcs-terminal .tcs-product-info small{color:#d8cdc4!important;opacity:1!important}
#tcs-terminal .tcs-product-price{color:#f0ad55!important}
#tcs-terminal .tcs-product-sale{background:#b87333!important;color:#fff!important}
#tcs-terminal .tcs-quantity-picker button{background:#2a1d16!important;color:#fff!important}
#tcs-terminal .tcs-finish-dialog{background:#17100c!important;color:#fff!important}
#tcs-terminal .tcs-finish-dialog h2,#tcs-terminal .tcs-finish-dialog h3{color:#f5e6c8!important}
@media(max-width:900px){#tcs-terminal .tcs-terminal-app>header{position:sticky;top:0;z-index:20;display:flex!important;align-items:center!important;justify-content:space-between!important;padding:12px!important}#tcs-terminal .tcs-terminal-tools{position:sticky!important;top:78px!important;z-index:19!important;display:grid!important;grid-template-columns:1fr auto!important;gap:10px!important;padding:12px!important}#tcs-terminal .tcs-header-actions{display:flex!important;gap:8px!important}#tcs-terminal .tcs-header-actions button,#tcs-terminal #tcs-terminal-refresh{min-height:54px!important;padding:10px 18px!important;font-size:17px!important}#tcs-terminal #tcs-terminal-search{min-height:54px!important;font-size:18px!important}}


/* V1.9.7 - Protection de la session événement */
#tcs-terminal .tcs-active-session-warning{display:grid;gap:5px;margin:18px 0 4px;padding:13px 15px;text-align:left;background:#321714!important;border:1px solid #d14b3e!important;border-radius:12px;color:#fff!important}
#tcs-terminal .tcs-active-session-warning strong{color:#ffd7cf!important;font-size:16px}
#tcs-terminal .tcs-active-session-warning span{color:#fff!important;font-size:13px;line-height:1.4}
#tcs-terminal #tcs-event-name[readonly]{background:#e7e1dc!important;color:#5b514b!important;-webkit-text-fill-color:#5b514b!important;cursor:not-allowed!important;border-color:#b87333!important}

#tcs-terminal #tcs-session-name{width:100%!important;min-height:56px!important;margin-top:10px!important;padding:12px 14px!important;background:#fff!important;color:#17100c!important;-webkit-text-fill-color:#17100c!important;border:2px solid #b87333!important;border-radius:10px!important;font-size:17px!important}
#tcs-terminal #tcs-session-name[readonly]{background:#e7e1dc!important;color:#5b514b!important;-webkit-text-fill-color:#5b514b!important;cursor:not-allowed!important}

.tcs-close-event-btn{background:#6f42c1!important;color:#fff!important;border-color:#8f63d9!important;font-weight:900}
.tcs-finish-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}
.tcs-finish-actions button{width:100%;padding:14px;border:0;border-radius:10px;font-weight:800;font-size:16px}
.tcs-event-closed-banner{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:14px;margin-bottom:14px;background:#153d25;border:1px solid #2ea65a;border-radius:12px;color:#fff}
@media(max-width:760px){.tcs-header-actions{flex-wrap:wrap}.tcs-header-actions button{flex:1 1 44%}.tcs-finish-actions{grid-template-columns:1fr}}

/* V1.9.9.11 — boutons de clôture lisibles */
#tcs-terminal #tcs-finish-close{background:#b87333!important;color:#fff!important;border:2px solid #d89143!important;box-shadow:none!important;opacity:1!important;text-shadow:none!important}
#tcs-terminal #tcs-finish-close:hover,#tcs-terminal #tcs-finish-close:focus{background:#d08335!important;color:#fff!important;outline:3px solid rgba(216,145,67,.35)!important}
#tcs-terminal #tcs-finish-close-event{color:#fff!important}

/* V1.9.9.20 — navigation de la caisse par catégories */
#tcs-terminal .tcs-terminal-categories{position:sticky;top:145px;z-index:18;display:flex;gap:9px;overflow-x:auto;padding:10px 14px 12px;background:#0f0b08!important;border-bottom:1px solid rgba(184,115,51,.65);scrollbar-width:thin;scrollbar-color:#b87333 #17100c}
#tcs-terminal .tcs-terminal-categories[hidden]{display:none!important}
#tcs-terminal .tcs-terminal-categories::-webkit-scrollbar{height:8px}
#tcs-terminal .tcs-terminal-categories::-webkit-scrollbar-track{background:#17100c}
#tcs-terminal .tcs-terminal-categories::-webkit-scrollbar-thumb{background:#b87333;border-radius:999px}
#tcs-terminal .tcs-category-button{flex:0 0 auto;min-height:46px!important;padding:10px 17px!important;border:2px solid #b87333!important;border-radius:999px!important;background:#241811!important;color:#f5e6c8!important;font-size:15px!important;font-weight:800!important;line-height:1.1!important;white-space:nowrap!important;cursor:pointer!important}
#tcs-terminal .tcs-category-button:hover,#tcs-terminal .tcs-category-button:focus{background:#342219!important;color:#fff!important;outline:none!important}
#tcs-terminal .tcs-category-button.is-active{background:#c77b2f!important;color:#fff!important;border-color:#e0a15f!important;box-shadow:0 0 0 3px rgba(199,123,47,.2)!important}
@media(max-width:900px){#tcs-terminal .tcs-terminal-categories{top:144px;padding:9px 10px 11px}#tcs-terminal .tcs-category-button{min-height:44px!important;padding:9px 14px!important;font-size:14px!important}}

/* V1.9.9.21 — navigation tactile en grille */
#tcs-terminal .tcs-category-panel{position:sticky;top:145px;z-index:18;background:#0f0b08!important;border-bottom:1px solid rgba(184,115,51,.65);padding:10px 14px 12px}
#tcs-terminal .tcs-category-toggle{display:flex!important;width:100%!important;align-items:center!important;justify-content:space-between!important;min-height:52px!important;padding:11px 16px!important;margin:0 0 10px!important;border:2px solid #b87333!important;border-radius:12px!important;background:#241811!important;color:#f5e6c8!important;font-size:18px!important;font-weight:800!important;cursor:pointer!important}
#tcs-terminal .tcs-category-toggle span{font-size:22px!important;line-height:1!important}
#tcs-terminal .tcs-terminal-categories{position:static!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important;overflow:visible!important;padding:0!important;background:transparent!important;border:0!important;max-height:500px!important;transition:max-height .2s ease,opacity .2s ease!important}
#tcs-terminal .tcs-terminal-categories.is-collapsed{max-height:0!important;opacity:0!important;overflow:hidden!important;pointer-events:none!important}
#tcs-terminal .tcs-category-button{width:100%!important;min-height:56px!important;padding:10px 12px!important;border-radius:12px!important;white-space:normal!important;text-align:center!important;font-size:16px!important}
#tcs-terminal .tcs-products{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important}
#tcs-terminal .tcs-product-image-wrap{aspect-ratio:4/3!important;overflow:hidden!important}
#tcs-terminal .tcs-product-image{width:100%!important;height:100%!important;object-fit:cover!important}
#tcs-terminal .tcs-product-info h3{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important;min-height:2.7em!important}
#tcs-terminal .tcs-quantity-picker button{min-width:58px!important;min-height:58px!important;font-size:25px!important}
#tcs-terminal .tcs-sale-qty{min-height:58px!important;font-size:24px!important}
#tcs-terminal .tcs-product-sale{min-height:64px!important;font-size:20px!important}
@media(max-width:1100px) and (orientation:landscape){#tcs-terminal .tcs-terminal-categories{grid-template-columns:repeat(3,minmax(0,1fr))!important}#tcs-terminal .tcs-products{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:900px){#tcs-terminal .tcs-category-panel{top:144px;padding:9px 10px 11px}#tcs-terminal .tcs-terminal-categories{grid-template-columns:repeat(2,minmax(0,1fr))!important}#tcs-terminal .tcs-category-button{min-height:58px!important;font-size:16px!important}#tcs-terminal .tcs-products{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}#tcs-terminal .tcs-product-image-wrap{aspect-ratio:1/1!important}}
@media(max-width:560px){#tcs-terminal .tcs-terminal-categories{grid-template-columns:repeat(2,minmax(0,1fr))!important}#tcs-terminal .tcs-products{grid-template-columns:repeat(2,minmax(0,1fr))!important}#tcs-terminal .tcs-category-toggle{font-size:16px!important}}
