/* =========================================================================
 * מטגנת הזהב — תחנת הגימור (js/stations/finish.js). מחלקות fin-*
 * ========================================================================= */

.station-finish { background: #f7dcc0; }
.fin-bg { position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.18) 0 34px, transparent 34px 68px),
    linear-gradient(#ffe7cc, #f3c9a0); }

/* ---------- מגש הסופגניות ---------- */
.fin-tray { position: absolute; top: 8px; right: 10px; left: 10px; height: 94px;
  display: flex; align-items: center; gap: 12px; padding: 6px 14px; }
.fin-tray-title { display: flex; flex-direction: column; min-width: 118px; line-height: 1.2; }
.fin-tray-title b { font-size: 20px; font-weight: 900; }
.fin-tray-title span { font-size: 14px; font-weight: 700; }
.fin-tray-title .fin-title-row { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.fin-tray-title .fin-title-row span { font-size: 20px; font-weight: 900; }
.fin-tray-title .worker-avatar { flex: none; }
.fin-cards { flex: 1; display: flex; gap: 10px; align-items: center; }
.fin-card { font-family: var(--font); color: var(--cocoa); cursor: pointer;
  display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; height: 72px;
  background: #fff; border: 2.5px solid #eedbbd; border-radius: 16px;
  box-shadow: 0 3px 0 #e3c79e; transition: transform .1s, border-color .15s, box-shadow .15s; }
/* רק כפתורי המגש: בסופגניות שבקופסה (SVG) transform ב-CSS דורס את המיקום והן קופצות */
button.fin-card.st-ready:hover { transform: translateY(-2px); }
.fin-card.sel { border-color: var(--gold-2); background: #fff7dd; box-shadow: 0 0 0 3px rgba(246,196,69,.55), 0 3px 0 var(--gold-3); }
.fin-card[class*="st-missing"], .fin-card.st-oil, .fin-card.st-raw { background: #f6ecdd; box-shadow: none; }
.fin-card:not(.st-ready) svg { opacity: .55; filter: grayscale(.4); }
.fin-card-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.fin-card-text b { font-size: 15px; font-weight: 800; }
.fin-card-text small { font-size: 12px; font-weight: 700; color: #9a7650; }
.fin-card.st-ready small { color: var(--good); }
.fin-card.st-oil small { color: var(--mid); }
.fin-serve { margin-right: auto; font-size: 20px; padding: 12px 24px; }

/* ---------- משטח העבודה ---------- */
.fin-work { position: absolute; top: 110px; left: 10px; width: 626px; height: 456px; padding: 0; overflow: hidden; }
.fin-svg { display: block; touch-action: none; user-select: none; -webkit-user-select: none; }
.fin-work[data-tool="drizzle"] .fin-svg,
.fin-work[data-tool="toppings"] .fin-svg { cursor: none; }
.fin-work[data-tool="glaze"] .fin-svg { cursor: grab; }
.fin-work[data-tool="glaze"] .fin-svg:active { cursor: grabbing; }
.fin-work[data-tool="filling"] .fin-svg { cursor: pointer; }
.fin-work.is-empty .fin-svg { cursor: default; }
.fin-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; }
.fin-empty svg { animation: finFloat 2.4s ease-in-out infinite alternate; }
.fin-empty h3 { margin: 8px 0 4px; font-size: 26px; font-weight: 900; }
.fin-empty p { margin: 0 0 14px; font-size: 17px; font-weight: 600; color: #8a5a2e; max-width: 380px; }
@keyframes finFloat { from { transform: translateY(0) rotate(-6deg); } to { transform: translateY(-10px) rotate(6deg); } }

.fin-dip-arrow { animation: finBob 0.9s ease-in-out infinite alternate; }
@keyframes finBob { from { transform: translate(460px, 140px); } to { transform: translate(460px, 162px); } }
.fin-syringe.pushing { filter: drop-shadow(0 0 6px rgba(255,255,255,.9)); }

/* ---------- פאנל הכלים ---------- */
.fin-tools { position: absolute; top: 110px; right: 10px; width: 388px; height: 456px;
  padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; overflow-x: hidden; overflow-y: auto; }
.fin-tools::-webkit-scrollbar { width: 6px; }
.fin-tools::-webkit-scrollbar-thumb { background: #d2ad7c; border-radius: 3px; }
.fin-tools > * { flex: none; }
.fin-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.fin-tab { position: relative; font-family: var(--font); color: var(--cocoa); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 2px 5px;
  background: #fff; border: 2.5px solid #eedbbd; border-radius: 14px; font-size: 15px; font-weight: 800;
  box-shadow: 0 3px 0 #e3c79e; transition: transform .1s; }
.fin-tab:hover:not(:disabled) { transform: translateY(-2px); }
.fin-tab.active { background: linear-gradient(#ffe27a, var(--gold)); border-color: #fff3b8; box-shadow: 0 3px 0 var(--gold-3); }
.fin-tab.needed::after { content: ''; position: absolute; top: 5px; left: 6px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--pink); box-shadow: 0 0 0 2px #fff; }
.fin-tab:disabled { cursor: default; opacity: .5; box-shadow: none; filter: grayscale(.6); }
.fin-tab small { font-size: 9.5px; font-weight: 700; color: #9a7650; line-height: 1; }
.fin-tools-empty { margin: auto; text-align: center; font-weight: 700; font-size: 16px; }

.fin-req { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 5px 8px;
  background: #fff3dc; border: 2px dashed #e8c79a; border-radius: 12px; font-size: 14px; }
.fin-req b { margin-left: 2px; }

.fin-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.fin-opt { font-family: var(--font); color: var(--cocoa); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; padding: 2px 2px 4px;
  background: #fff; border: 2.5px solid #eedbbd; border-radius: 14px; transition: transform .1s, border-color .15s; }
.fin-opt:hover { transform: translateY(-2px); }
.fin-opt span { font-size: 12.5px; font-weight: 800; line-height: 1.1; text-align: center; }
.fin-opt.sel { border-color: var(--gold-2); background: #fff7dd; box-shadow: 0 0 0 3px rgba(246,196,69,.5); }
.fin-opts-topping .fin-opt svg { margin-top: 2px; }

.fin-gauges { display: flex; flex-direction: column; gap: 5px; }
.fin-gauge-head { display: flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 800; margin-bottom: 2px; }
.fin-gauge-val { margin-right: auto; font-size: 13px; color: #8a5a2e; direction: ltr; }
.fin-meter > i { transition: width .08s linear; }
.fin-meter.ok > i { background: linear-gradient(90deg, #2f9a4c, #6fd38a); }
.fin-meter-extra > i { background: linear-gradient(90deg, #c9492f, #f08b6f); }
.fin-small { font-size: 13px; }
.fin-hint { margin-top: auto; font-size: 13.5px; font-weight: 700; color: #7a4518; background: #fff; border-radius: 10px; padding: 5px 9px; border: 1.5px solid #eedbbd; }
.fin-actions { display: flex; gap: 8px; justify-content: center; }

/* ---------- חלון אישור הגשה ---------- */
.fin-confirm { width: 460px; }
.fin-issues { margin: 6px 0 0; padding: 0 22px 0 0; font-weight: 700; color: #8a3a22; }
.fin-issues li { margin: 3px 0; }
