/* Βασικά στυλ — ίδια με το mockup. Τα περισσότερα στυλ των στοιχείων είναι inline στο app.js, όπως στο mockup. */
html, body { height: 100%; }
body { margin: 0; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; background: #EEF0F3; color: #1F2937; }
button { font-family: inherit; cursor: pointer; }
input, select { font-family: inherit; }
button:disabled { opacity: .5; cursor: not-allowed; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #5EEAD4; outline-offset: 1px; }

#login { min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; background: #241B3D; }

#app { height: 100%; }
#board { height: 100%; min-height: 640px; box-sizing: border-box; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: #EEF0F3; position: relative; }
#header { display: flex; align-items: center; gap: 6px; row-gap: 6px; flex-wrap: wrap; background: #241B3D; border-radius: 10px; padding: 10px 12px; flex-shrink: 0; }
#cart { background: #FFFFFF; border-radius: 10px; border: 1px solid #DDE1E7; flex-grow: 1; display: flex; flex-direction: column; overflow: hidden; min-height: 0; }
#keypad { position: relative; overflow: hidden; height: 336px; flex-shrink: 0; border-radius: 10px; }
#version { position: absolute; bottom: 2px; left: 0; right: 0; text-align: center; font-size: 9px; color: #B8BCC6; pointer-events: none; }

.slide-track { display: flex; width: 200%; height: 100%; transition: transform .3s ease; }
.cart-row .row-actions { opacity: 0; transition: opacity .15s; pointer-events: none; }
.cart-row:hover .row-actions, .cart-row:focus-within .row-actions { opacity: 1; pointer-events: auto; }
.cart-row:hover { background: #F9FAFB; }
@media (hover: none) { .cart-row .row-actions { opacity: 1; pointer-events: auto; } } /* οθόνες αφής: δεν υπάρχει hover */
.tabs-row::-webkit-scrollbar { height: 0px; }
.overlay { position: fixed; inset: 0; background: rgba(17, 24, 39, 0.55); display: flex; align-items: center; justify-content: center; z-index: 40; padding: 12px; box-sizing: border-box; overflow-y: auto; }
.dd-item:hover { background: #F3F4F6; }

.spinner { width: 34px; height: 34px; border: 4px solid #E5E7EB; border-top-color: #4F46E5; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } .slide-track { transition: none; } }

#toast { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); display: grid; gap: 6px; z-index: 80; width: min(92vw, 460px); pointer-events: none; }
.toast { background: #17212B; color: #fff; border-radius: 8px; padding: 10px 14px; font-size: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.toast.err { background: #B91C1C; } .toast.warn { background: #B45309; } .toast.ok { background: #0D9488; }

@media (max-width: 900px) { #board { padding: 8px; gap: 8px; } #header { padding: 10px 12px; gap: 8px; } }

/* απόδειξη προς εκτύπωση */
#printArea { display: none; }
.rcpt { width: 72mm; margin: 0 auto; font: 12px/1.35 Consolas, "Courier New", monospace; color: #000; }
.rcpt h4 { text-align: center; margin: 0 0 2px; font-size: 14px; }
.rcpt .c { text-align: center; }
.rcpt hr { border: 0; border-top: 1px dashed #000; margin: 6px 0; }
.rcpt .rw { display: flex; justify-content: space-between; gap: 6px; }
.rcpt .wrap { word-break: break-all; }
.rcpt .sig { font-size: 8.5px; line-height: 1.2; }
.rcpt .test { border: 1px solid #000; text-align: center; font-weight: 700; padding: 3px; margin: 4px 0; }
@media print {
  body > *:not(#printArea) { display: none !important; }
  #printArea { display: block !important; }
  @page { margin: 4mm; }
}

/* Backoffice */
#bo { position: fixed; inset: 0; display: flex; background: #F5F6F8; z-index: 5; }
#bo .bo-side { width: 200px; flex-shrink: 0; background: #241B3D; display: flex; flex-direction: column; padding: 18px 0; box-sizing: border-box; overflow-y: auto; }
#bo .bo-main { flex-grow: 1; display: flex; flex-direction: column; padding: 20px 24px; box-sizing: border-box; min-width: 0; overflow-y: auto; }
#bo .bo-row:hover { background: #F9FAFB; }
#bo .bo-row:has([data-bo^="edit"], [data-bo="viewReceipt"], [data-bo="viewCount"], [data-bo="orderOpen"], [data-bo="invOpen"], [data-bo="loyOpen"]) { cursor: pointer; }
#bo .bo-name { background: none; border: none; padding: 0; margin: 0; font: inherit; color: #0B3D91; font-weight: 600; text-align: left; cursor: pointer; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
#bo .bo-name:hover { text-decoration: underline; }
.bo-panel-wrap { position: fixed; inset: 0; background: rgba(17, 24, 39, 0.35); display: flex; justify-content: flex-end; z-index: 30; }
@media (max-width: 800px) { #bo .bo-side { width: 64px; } #bo .bo-side .bo-label { display: none; } #bo .bo-main { padding: 14px 12px; } }
@media (max-width: 1000px) { #bo .bo-two { grid-template-columns: 1fr !important; } }
.bo-panel-wrap > div > * { flex-shrink: 0; }

/* v24: NEW MIND TECH ROBOT — κάρτα βοήθειας */
#robotHelp { position: fixed; left: 16px; bottom: 16px; z-index: 200; width: 360px; max-width: calc(100vw - 32px); background: #FFFFFF; border-radius: 14px; box-shadow: 0 12px 40px rgba(36, 27, 61, 0.28); border: 1px solid #E9E3FF; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: #1F2937; animation: rhIn .18s ease-out; }
@keyframes rhIn { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #robotHelp { animation: none; } }
#robotHelp .rh-head { display: flex; align-items: center; gap: 10px; }
#robotHelp .rh-bot { width: 34px; height: 34px; border-radius: 10px; background: #6D28D9; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
#robotHelp .rh-kicker { font-size: 9px; font-weight: 700; letter-spacing: .8px; color: #6D28D9; }
#robotHelp .rh-title { font-size: 14px; font-weight: 700; color: #111827; }
#robotHelp .rh-x { background: #F3F4F6; border: none; border-radius: 8px; width: 26px; height: 26px; font-size: 15px; color: #374151; cursor: pointer; }
#robotHelp .rh-err { font-size: 11px; color: #991B1B; background: #FEF2F2; border-radius: 8px; padding: 6px 8px; }
#robotHelp .rh-why { color: #374151; }
#robotHelp .rh-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
#robotHelp .rh-steps li::marker { color: #6D28D9; font-weight: 700; }
#robotHelp .rh-acts { display: flex; gap: 8px; justify-content: flex-end; }
#robotHelp .rh-ok { background: #F3F4F6; color: #374151; border: none; border-radius: 8px; padding: 8px 12px; font-size: 12px; font-weight: 600; cursor: pointer; }
#robotHelp .rh-ask { background: #6D28D9; color: #FFFFFF; border: none; border-radius: 8px; padding: 8px 12px; font-size: 12px; font-weight: 600; cursor: pointer; }
/* v26.3: πιο μικρά κουμπιά επικεφαλίδας — όλα σε μία γραμμή */
#header > button, #header > div > button, #header .hz button { font-size: 12px !important; padding: 6px 9px !important; border-radius: 7px !important; }
#header > button[data-act="openSettings"] { padding: 0 !important; width: 30px !important; height: 30px !important; }
#header #clock { font-size: 11px !important; line-height: 1.15; text-align: right; }
@media (max-width: 1280px) { #header #clock { display: none; } }
