* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: Arial, Helvetica, sans-serif;
  background: #000;
  color: #fff;
}

body {
  background: #000;
}

.screen {
  width: 100vw;
  height: 100vh;
  background: #000;
  display: flex;
  flex-direction: column;
  padding: 2px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #00ff66;
  font-weight: bold;
  padding: 2px 6px;
  height: 28px;
  flex: 0 0 28px;
}

.clock {
  font-size: 18px;
}

.store-info {
  font-size: 14px;
  color: #cfcfcf;
}

.status-text {
  padding: 0 6px 4px 6px;
  font-size: 13px;
  color: #cfcfcf;
  flex: 0 0 20px;
}

.grid {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 6px;
  min-height: 0;
}

.panel {
  border: 2px solid #bfbfbf;
  background: #000;
  display: flex;
  flex-direction: column;
  min-height: 0;
  cursor: pointer;
}

.panel.selected {
  border-color: #ffffff;
  box-shadow: inset 0 0 0 1px #ffffff;
}

.panel.empty {
  cursor: default;
}

.panel-header {
  background: #0000ff;
  color: #fff;
  font-weight: bold;
  padding: 3px 6px;
  font-size: 18px;
  line-height: 1.1;
  min-height: 28px;
  flex: 0 0 28px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.panel-body {
  flex: 1 1 auto;
  padding: 4px 8px;
  overflow: hidden;
  min-height: 0;
}

.item-line {
  font-size: 18px;
  line-height: 1.35;
  font-weight: bold;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-line.finished {
  color: #9ca3af;
  text-decoration: line-through;
}

.item-line.modifier {
  padding-left: 18px;
}

.item-line.special {
  color: #ffd166;
}

.empty-text {
  color: #000;
}

.bottom-bar {
  flex: 0 0 52px;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px 2px 2px 2px;
}

.action-btn {
  min-width: 110px;
  height: 42px;
  border: 1px solid #333;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
}

.action-btn span {
  font-size: 11px;
  font-weight: bold;
}

.action-red {
  background: #d32f2f;
  color: white;
}

.action-green {
  background: #8bc34a;
  color: #111;
}

.action-gray {
  background: #e5e7eb;
  color: #111;
}

.action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 1200px) {
  .panel-header {
    font-size: 16px;
  }

  .item-line {
    font-size: 16px;
  }
}
.panel-top {
  height: 24px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 16px;
  color: #00ff66;
  background: #000;
  flex: 0 0 24px;
}

.panel-top.overdue {
  color: #ff3333;
}

.panel-header.continue {
  background: #ffff00;
  color: #000;
}

.panel-body.overdue {
  background: #ff1a1a;
  color: #fff;
}

.panel.selected {
  border-color: #ffff66;
  box-shadow: inset 0 0 0 1px #ffff66;
}

.topbar .clock {
  display: none;
}

