* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #0b0f19;
  color: #f8fafc;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

header {
  height: 56px;
  padding: 0 16px;
  padding-top: env(safe-area-inset-top, 0px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #1e293b;
  background-color: #0f172a;
  flex-shrink: 0;
}

h1 {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #38bdf8;
  user-select: none;
}

.header-center {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: #0b0f19;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid #334155;
}

.nav-btn {
  background-color: #1e293b;
  color: #38bdf8;
  border: 1px solid #475569;
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.15s ease;
}

.nav-btn:hover {
  background-color: #334155;
  border-color: #38bdf8;
}

.nav-btn:active {
  transform: scale(0.92);
}

.nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  border-color: #334155;
}

.page-badge-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 130px;
}

.page-badge-main {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.page-badge-main .current-page {
  color: #38bdf8;
  font-size: 18px;
}

.page-badge-sub {
  font-size: 11px;
  color: #94a3b8;
  font-weight: bold;
}

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

.status-online {
  color: #22c55e;
  font-size: 13px;
  font-weight: bold;
}

.status-offline {
  color: #ef4444;
  font-size: 13px;
  font-weight: bold;
}

#clock {
  font-size: 18px;
  font-weight: 900;
  color: #ffffff;
  background-color: #1e293b;
  border: 1px solid #38bdf8;
  padding: 4px 12px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.2);
}

.recall-nav-btn {
  background-color: #1e293b;
  color: #38bdf8;
  border: 1px solid #475569;
  font-size: 13px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.recall-nav-btn:active {
  transform: scale(0.92);
}

.settings-gear-btn {
  background: #1e293b;
  border: 1px solid #334155;
  color: #fff;
  font-size: 16px;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.settings-gear-btn:active {
  transform: scale(0.92);
}

#orders-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  gap: 10px;
  padding: 10px;
  overflow: hidden;
  transition: opacity 0.2s ease-in-out;
}

#orders-grid.grid-1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
#orders-grid.grid-2 { grid-template-columns: repeat(2, 1fr); grid-template-rows: 1fr; }
#orders-grid.grid-3 { grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr; }
#orders-grid.grid-4 { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); }
#orders-grid.grid-5 { grid-template-columns: repeat(5, 1fr); grid-template-rows: 1fr; }
#orders-grid.grid-6 { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); }
#orders-grid.grid-8 { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr); }
#orders-grid.grid-12 { grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(2, 1fr); gap: 6px; padding: 6px; }

#orders-grid.fade-out {
  opacity: 0;
}

.no-orders {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #64748b;
  font-size: 24px;
  font-weight: bold;
}

.order-card {
  background-color: #0f172a;
  border: 2px solid #22c55e;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
   transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1), 
              opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), 
              box-shadow 0.6s ease !important;
}

.order-card.order-card-dismissing {
  transform: scale(0.88) translateY(20px) !important;
  opacity: 0 !important;
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.7) !important;
  filter: blur(1px);
}

/* === カードが完了・削除された時の退場アニメーション === */
.order-card.fade-out {
  opacity: 0 !important;
  transform: scale(0.92) !important;
  transition: opacity 0.35s ease-out, transform 0.35s ease-out !important;
  pointer-events: none;
}

/* === 残りのカードが横滑りしてくるときの極上スムーズ仕様 === */
.order-card.card-sliding {
  /* ふすまがスーッと吸い込まれるような極上イージング */
  transition: transform 1.8s cubic-bezier(0.4, 0, 0.2, 1) !important;
  z-index: 5;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
}

.order-card.no-anim {
  transition: none !important;
}

.order-card.takeout {
  border-color: #38bdf8;
}

.order-card.is-future {
  border: 2.5px solid #a855f7 !important;
  background-color: #120d24;
}

.future-warning-banner {
  background-color: #4c1d95;
  color: #f5f3ff;
  font-weight: 900;
  font-size: 13px;
  text-align: center;
  padding: 6px 8px;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #a855f7;
}

/* 追加注文カード（目立つオレンジ枠） */
.order-card.is-addon-card {
  border: 2.5px solid #f97316 !important;
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.35);
}

.order-card.is-addon-card .card-header-static {
  background-color: #31180a;
  border-bottom: 1px solid #7c2d12;
}

.addon-badge {
  background-color: #f97316 !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  font-size: 12px !important;
  padding: 3px 6px !important;
  border-radius: 4px;
  animation: pulse-orange 2s infinite;
}

@keyframes pulse-orange {
  0% { opacity: 1; }
  50% { opacity: 0.7; }
  100% { opacity: 1; }
}

.card-header-static {
  background-color: #1e293b;
  border-bottom: 1px solid #334155;
  cursor: default;
}

.card-header {
  padding: 6px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.order-badge-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.order-index-btn {
  background-color: #ffffff;
  color: #0f172a;
  font-weight: 900;
  font-size: 13px;
  padding: 3px 8px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: transform 0.1s ease;
}

.order-index-btn:active {
  transform: scale(0.92);
}

.order-badge {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  background-color: #22c55e;
  color: #000;
}

.order-badge.takeout {
  background-color: #38bdf8;
}

.order-badge.future {
  background-color: #a855f7;
  color: #ffffff;
}

.pickup-time-badge {
  background-color: #eab308;
  color: #000;
  font-weight: bold;
  font-size: 12px;
  padding: 3px 6px;
  border-radius: 4px;
}

.new-badge {
  background-color: #ef4444;
  color: #ffffff;
  font-weight: bold;
  font-size: 12px;
  padding: 3px 6px;
  border-radius: 4px;
  animation: blink-glow 1s infinite alternate;
}

@keyframes blink-glow {
  0% { opacity: 1; transform: scale(1); box-shadow: 0 0 4px #ef4444; }
  100% { opacity: 0.5; transform: scale(0.95); box-shadow: 0 0 8px #ef4444; }
}

.header-time-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.order-time {
  font-size: 14px;
  font-weight: bold;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

.card-sub-header {
  padding: 4px 10px;
  background-color: #162032;
  border-bottom: 1px solid #1e293b;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-shrink: 0;
}

.sub-header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.table-badge {
  color: #38bdf8;
  font-weight: bold;
  font-size: 14px;
}

.customer-name {
  color: #f1f5f9;
  font-weight: bold;
  font-size: 14px;
  word-break: break-word;
}

.collapsible-cn-note {
  margin-top: 4px;
  background-color: rgba(234, 179, 8, 0.1);
  border: 1px dashed #eab308;
  border-radius: 4px;
  font-size: 12px;
}

.collapsible-cn-note summary {
  padding: 3px 6px;
  color: #fef08a;
  cursor: pointer;
  user-select: none;
  font-weight: bold;
}

.collapsible-cn-note .cn-content {
  padding: 4px 6px;
  color: #fef9c3;
  border-top: 1px dashed rgba(234, 179, 8, 0.4);
  font-family: monospace;
  white-space: pre-wrap;
  word-break: break-all;
}

.items-list {
  padding: 6px 10px;
  flex: 1;
  min-height: 0;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-y !important;
  overscroll-behavior: contain !important;
  padding-right: 4px;
}

.items-list::-webkit-scrollbar {
  width: 5px;
}
.items-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}
.items-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 3px;
}

.item-row-wrapper {
  display: flex;
  flex-direction: column;
  padding: 3px 0 5px 0;
  border-radius: 4px;
  cursor: default;
  transition: opacity 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.item-row-wrapper.is-item-done {
  opacity: 0.35;
  background-color: transparent !important;
}

.item-row-wrapper.is-item-done .item-name {
  text-decoration: line-through;
  color: #64748b;
}

.item-row-wrapper.is-item-done .item-check-icon {
  background-color: #22c55e;
  border-color: #22c55e;
  color: #000;
}

.item-clickable-target {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  width: 100%;
  box-sizing: border-box;
}

.item-clickable-target:active {
  background-color: rgba(255, 255, 255, 0.08);
}

.item-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15.5px;
  line-height: 1.3;
}

.item-check-icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  flex-shrink: 0;
  transition: all 0.15s ease;
  color: transparent;
}

.item-qty-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 800;
  background-color: #1e293b;
  color: #94a3b8;
  border: 1px solid #334155;
  flex-shrink: 0;
  letter-spacing: -0.5px;
}

.item-qty-badge.multiple {
  background-color: #f59e0b !important;
  color: #000000 !important;
  border: 2px solid #fbbf24 !important;
  font-size: 17px !important;
  font-weight: 900 !important;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.8) !important;
}

.item-row-wrapper.is-item-done .item-qty-badge {
  background-color: #1e293b !important;
  color: #475569 !important;
  border-color: #334155 !important;
  box-shadow: none !important;
}

.item-name {
  color: #f1f5f9;
  font-weight: 500;
  word-break: break-word;
  transition: color 0.15s ease;
}

.sub-items-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
  margin-left: 28px;
}

.sub-clickable-row {
  display: inline-flex !important;
  align-items: center !important;
  cursor: pointer !important;
  padding: 4px 6px !important;
  border-radius: 4px !important;
  max-width: fit-content !important;
  transition: all 0.15s ease !important;
  user-select: none !important;
}

.sub-clickable-row:active {
  transform: scale(0.97);
  opacity: 0.8;
}

.sub-check-icon {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  border: 1.5px solid #ef4444;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  margin-right: 6px;
  flex-shrink: 0;
  color: transparent;
  background-color: rgba(0, 0, 0, 0.2);
}

.sub-clickable-row.item-note {
  font-family: 'Consolas', 'Courier New', monospace !important;
  font-size: 15.5px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: #ffffff !important;
  background-color: rgba(239, 68, 68, 0.12) !important;
  border-left: 4px solid #ef4444 !important;
  border-radius: 2px !important;
}

.sub-clickable-row.item-note .sub-text {
  text-decoration: underline !important;
  text-decoration-color: #ef4444 !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 3px !important;
}

.sub-clickable-row.item-note .note-tag {
  background-color: #dc2626 !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 3px;
  margin-right: 6px;
}

.sub-clickable-row.modifier-row {
  font-family: 'Consolas', 'Courier New', monospace !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #fde047 !important;
  padding: 3px 6px !important;
}

.sub-clickable-row.modifier-row .sub-check-icon {
  border-color: #facc15;
}

.sub-clickable-row.modifier-row .modifier-item {
  color: #fde047 !important;
  text-decoration: underline !important;
  text-decoration-color: #facc15 !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 3px !important;
}

.sub-clickable-row.is-sub-done {
  opacity: 0.35 !important;
  background-color: transparent !important;
  border-color: transparent !important;
  border-left-color: #6b7280 !important;
}

.sub-clickable-row.is-sub-done .sub-check-icon {
  background-color: #22c55e !important;
  border-color: #22c55e !important;
  color: #000 !important;
}

.sub-clickable-row.is-sub-done .sub-text,
.sub-clickable-row.is-sub-done .modifier-item {
  text-decoration: line-through !important;
  color: #64748b !important;
}

.sub-clickable-row.is-sub-done .note-tag {
  background-color: #4b5563 !important;
  color: #9ca3af !important;
}

.item-divider {
  border-top: 1px dashed #334155;
  margin: 4px 0;
}

/* カードフッター */
.card-footer {
  padding: 6px 10px;
  background-color: #1e293b;
  border-top: 1px solid #334155;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  cursor: default;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.elapsed-time-badge {
  font-size: 13px;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 4px;
  background-color: #334155;
  color: #94a3b8;
  border: 1px solid #475569;
}

.elapsed-time-badge.warning {
  background-color: #eab308;
  color: #000;
  border-color: #facc15;
}

.elapsed-time-badge.urgent {
  background-color: #ef4444;
  color: #ffffff;
  border-color: #f87171;
  animation: blink-glow 1s infinite alternate;
}

.done-btn {
  background-color: #334155;
  color: #94a3b8;
  border: 1px solid #475569;
  padding: 6px 18px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}

.done-btn:active {
  transform: scale(0.95);
}

.order-card-dismissing {
  transform: scale(0.92) translateY(12px) !important;
  opacity: 0 !important;
  box-shadow: 0 0 25px rgba(34, 197, 94, 0.6) !important;
  border-color: #22c55e !important;
  pointer-events: none !important;
}

/* ========================================================
   UNDO トースト通知（MARK DONE 直後の復元ポップアップ）
   ======================================================== */
#undo-toast {
  position: fixed;
  bottom: 84px;
  right: 24px;
  background-color: #0f172a;
  border: 2px solid #38bdf8;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8), 0 0 15px rgba(56, 189, 248, 0.4);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 3000;
  transform: translateY(120px);
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}

#undo-toast.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

#undo-toast .undo-text {
  font-size: 15px;
  font-weight: 700;
}

#undo-toast .undo-btn {
  background-color: #0284c7;
  color: #ffffff;
  border: 1px solid #38bdf8;
  font-size: 14px;
  font-weight: 900;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 0.5px;
}

#undo-toast .undo-btn:active {
  transform: scale(0.92);
}

/* モーダル基本設定 */
#modal-overlay,
#recall-overlay,
#settings-overlay {
  display: none !important;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 2000;
  justify-content: center;
  align-items: center;
  pointer-events: none !important;
}

#modal-overlay.active,
#recall-overlay.active,
#settings-overlay.active {
  display: flex !important;
  pointer-events: auto !important;
}

#settings-overlay {
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(3px);
}

.settings-card {
  background-color: #0f172a;
  border: 2px solid #38bdf8;
  border-radius: 14px;
  width: 92%;
  max-width: 580px;
  padding: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
}

.settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #1e293b;
  padding-bottom: 14px;
  margin-bottom: 20px;
}

.settings-header h2 {
  font-size: 22px;
  font-weight: 900;
  color: #38bdf8;
}

.settings-close-btn {
  background: #1e293b;
  border: 1px solid #334155;
  color: #94a3b8;
  font-size: 20px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.settings-section {
  margin-bottom: 22px;
}

.settings-section label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #94a3b8;
  margin-bottom: 10px;
}

.settings-btn-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.settings-btn-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.setting-opt-btn {
  padding: 14px 6px;
  background-color: #1e293b;
  border: 1.5px solid #334155;
  color: #f1f5f9;
  font-size: 16px;
  font-weight: 800;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
}

.setting-opt-btn.active {
  background-color: #38bdf8;
  border-color: #38bdf8;
  color: #0f172a;
}

#recall-overlay {
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.recall-card {
  background-color: #0f172a;
  border: 2px solid #38bdf8;
  border-radius: 14px;
  width: 90%;
  max-width: 680px;
  height: 80vh;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.recall-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #1e293b;
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.recall-header h2 {
  font-size: 20px;
  font-weight: 900;
  color: #38bdf8;
}

.recall-list-container {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.recall-item-card {
  background-color: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.recall-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.recall-table {
  font-size: 16px;
  font-weight: 900;
  color: #f8fafc;
}

.recall-action-btn {
  background-color: #0284c7;
  color: #ffffff;
  border: 1px solid #38bdf8;
  font-size: 14px;
  font-weight: 900;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
}

.recall-action-btn:active {
  transform: scale(0.92);
}

.recall-actions-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.recall-delete-btn {
  background-color: #334155;
  color: #ef4444;
  border: 1px solid #475569;
  font-size: 15px;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.12s ease;
}

.recall-delete-btn:active {
  transform: scale(0.92);
  background-color: #ef4444;
  color: #ffffff;
}

.recall-item-body {
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.4;
}

.no-recall {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  color: #64748b;
  font-size: 16px;
}

/* 文字サイズ連動 */
body.font-large .item-row { font-size: 18px; }
body.font-large .item-name { font-size: 18px; }
body.font-large .item-qty-badge { min-width: 32px; height: 28px; font-size: 17px; }
body.font-xlarge .item-row { font-size: 21px; }
body.font-xlarge .item-name { font-size: 21px; }
body.font-xlarge .item-qty-badge { min-width: 36px; height: 32px; font-size: 20px; }

/* 拡大モーダル */
#modal-overlay {
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  padding: 16px;
}

#modal-content {
  width: 94vw;
  max-width: 850px;
  height: 88vh;
  display: flex;
  flex-direction: column;
}

.modal-card-wrapper {
  background-color: #0f172a;
  border: 3px solid #38bdf8;
  border-radius: 12px;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header-close { cursor: pointer; }
.modal-quick-close-hint {
  font-size: 12px;
  font-weight: 900;
  color: #94a3b8;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
}

#modal-content .card-header { padding: 12px 18px; }
#modal-content .items-list { padding: 16px 20px 24px 20px; gap: 12px; }
#modal-content .item-row { font-size: 24px; gap: 14px; }
#modal-content .item-qty-badge { min-width: 38px; height: 32px; font-size: 20px; }
.modal-footer-split {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 12px 20px !important;
}

#modal-content .close-modal-btn {
  background-color: #334155 !important;
  border: 1px solid #64748b !important;
  color: #f8fafc !important;
  font-size: 18px !important;
  padding: 10px 24px !important;
  border-radius: 6px;
  cursor: pointer;
}

#modal-content .modal-done-btn {
  font-size: 18px !important;
  padding: 10px 28px !important;
  border-radius: 6px;
}

/* RECALL Clear All ボタン */
.recall-clear-all-btn {
  background-color: #7f1d1d;
  color: #fca5a5;
  border: 1px solid #ef4444;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  margin-left: auto;
  margin-right: 12px;
  transition: all 0.15s ease;
}

.recall-clear-all-btn:active {
  transform: scale(0.92);
  background-color: #ef4444;
  color: #ffffff;
}

