@charset "UTF-8";
/* ========================================
   変数定義
======================================== */
/* ========================================
   基本設定
======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  background: #f5f5f5;
  padding-bottom: 50px;
  color: #333;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
@keyframes slideUp {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
}
/* ========================================
   ヘッダー
======================================== */
.header {
  background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
  color: #fff;
  text-align: center;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header h1 {
  font-size: 24px;
  font-weight: 500;
}

/* ========================================
   サマリーカード
======================================== */
.summary-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 30px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.summary-card {
  background: #fff;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}
.summary-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.summary-content {
  flex: 1;
}

.summary-label {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.summary-value {
  font-size: 32px;
  font-weight: bold;
  color: #b61220;
}

/* ========================================
   日付選択
======================================== */
.date-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  margin: 0 20px 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.date-nav-btn {
  padding: 10px 20px;
  background: #f5f5f5;
  border: 2px solid #ddd;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  font-weight: 600;
  transition: all 0.2s;
}
.date-nav-btn:hover {
  background: #b61220;
  color: #fff;
  border-color: #b61220;
}

.current-date {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

#dateInput {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.date-display {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  padding: 10px 20px;
  background: #f5f5f5;
  border-radius: 8px;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

/* ========================================
   日別サマリー
======================================== */
.daily-summary {
  text-align: center;
  background: linear-gradient(135deg, #b61220 0%, #d91428 100%);
  color: #fff;
  padding: 30px;
  margin: 0 20px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(182, 18, 32, 0.3);
}
.daily-summary h2 {
  font-size: 18px;
  margin-bottom: 10px;
  opacity: 0.9;
}

.daily-total {
  font-size: 48px;
  font-weight: bold;
  margin: 10px 0;
}

.daily-count {
  font-size: 16px;
  opacity: 0.9;
}

/* ========================================
   注文詳細テーブル
======================================== */
.orders-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}
.orders-container h2 {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #333;
}

.no-orders {
  background: #fff;
  padding: 60px;
  text-align: center;
  border-radius: 12px;
  color: #666;
  font-size: 18px;
}

.orders-table-wrapper {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
}
.orders-table thead {
  background: #f5f5f5;
}
.orders-table th {
  padding: 15px;
  text-align: left;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #ddd;
}
.orders-table td {
  padding: 15px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: top;
}

.order-row:hover {
  background: #fafafa;
}

.time-cell {
  font-weight: 600;
  color: #05155d;
  white-space: nowrap;
}

.order-id-cell {
  font-weight: 600;
  color: #666;
}

.table-cell {
  font-weight: 600;
}

.items-cell {
  max-width: 500px;
}

.order-item-detail {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}
.order-item-detail:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.item-qty {
  color: #666;
  margin-left: 8px;
  font-size: 14px;
}

.item-options {
  font-size: 13px;
  color: #666;
  margin-top: 4px;
}

.item-toppings {
  font-size: 13px;
  color: #05155d;
  margin-top: 4px;
}

.special-instructions {
  background: #fff3cd;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  margin-top: 8px;
  border-left: 3px solid #ffc107;
}

.status-cell {
  white-space: nowrap;
}

.status-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}
.status-badge.status-pending {
  background: #fff3cd;
  color: #856404;
}
.status-badge.status-preparing {
  background: #cfe2ff;
  color: #084298;
}
.status-badge.status-ready {
  background: #d1e7dd;
  color: #0f5132;
}
.status-badge.status-completed {
  background: #e2e3e5;
  color: #41464b;
}
.status-badge.status-refunded {
  background: #f8d7da;
  color: #b61220;
}

.amount-cell {
  font-weight: bold;
  color: #b61220;
  text-align: right;
  white-space: nowrap;
  font-size: 16px;
}

/* ========================================
   合計行
======================================== */
.total-row {
  background: #f5f5f5;
  font-weight: bold;
}

.total-label {
  text-align: right;
  font-size: 18px;
  padding: 20px;
}

.total-amount {
  color: #b61220;
  font-size: 24px;
  text-align: right;
  padding: 20px;
}

/* ========================================
   編集ボタン
======================================== */
.action-cell {
  text-align: center;
  white-space: nowrap;
}

.edit-btn {
  padding: 8px 16px;
  border: none;
  background: #05155d;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-size: 14px;
  font-weight: 600;
  position: relative;
  z-index: 1;
}
.edit-btn:hover {
  background: #041045;
  transform: scale(1.05);
}
.edit-btn:active {
  transform: scale(0.95);
}

/* ========================================
   モーダル
======================================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  overflow-y: auto;
  padding: 20px;
}
.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: #fff;
  border-radius: 15px;
  padding: 30px;
  max-width: 500px;
  width: 100%;
  position: relative;
  animation: modalSlideIn 0.3s ease-out;
  z-index: 2001;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.modal-header {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f5f5f5;
  color: #333;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
  color: #999;
  line-height: 1;
  transition: color 0.2s;
  background: none;
  border: none;
}
.close-btn:hover {
  color: #333;
}

/* ========================================
   フォーム要素
======================================== */
.form-group {
  margin-bottom: 25px;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 12px;
  color: #333;
  font-size: 15px;
}

.status-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.status-option-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
  border: 2px solid #ddd;
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  font-weight: 500;
  color: #333;
}
.status-option-btn:hover {
  border-color: #05155d;
  background: #6a84f7;
}
.status-option-btn.selected {
  border-color: #05155d;
  background: #05155d;
  color: #fff;
}
.status-option-btn.selected .status-dot {
  background: #fff;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-dot.status-pending {
  background: #FFC107;
}
.status-dot.status-preparing {
  background: #2196F3;
}
.status-dot.status-ready {
  background: #4CAF50;
}
.status-dot.status-completed {
  background: #999;
}
.status-dot.status-refunded {
  background: #b61220;
}

.btn {
  background: #b61220;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
  font-weight: bold;
  transition: background 0.2s;
}
.btn:hover {
  background: #910e19;
}
.btn:active {
  background: #700b14;
  transform: scale(0.98);
}

.btn-save {
  margin-top: 10px;
}

/* ========================================
   エクスポートセクション
======================================== */
.export-section {
  display: flex;
  gap: 15px;
  justify-content: center;
  padding: 30px 20px;
}

.export-btn {
  padding: 12px 30px;
  background: #fff;
  border: 2px solid #b61220;
  color: #b61220;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.export-btn:hover {
  background: #b61220;
  color: #fff;
}
.export-btn:active {
  transform: scale(0.98);
}

/* ========================================
   印刷用スタイル
======================================== */
@media print {
  body {
    background: white;
  }
  .export-section {
    display: none;
  }
  .date-selector {
    border: 1px solid #ddd;
  }
  .date-nav-btn {
    display: none;
  }
  .orders-table {
    font-size: 12px;
  }
  .orders-table td,
  .orders-table th {
    padding: 8px;
  }
}
/* ========================================
   レスポンシブ
======================================== */
@media (max-width: 768px) {
  .summary-container {
    grid-template-columns: 1fr;
    padding: 20px 10px;
  }
  .summary-card {
    padding: 20px;
  }
  .summary-value {
    font-size: 24px;
  }
  .date-selector {
    flex-direction: column;
    gap: 15px;
  }
  .date-nav-btn {
    width: 100%;
  }
  .daily-total {
    font-size: 36px;
  }
  .orders-container {
    padding: 0 10px;
  }
  .orders-table-wrapper {
    overflow-x: auto;
  }
  .orders-table {
    min-width: 800px;
  }
  .orders-table th,
  .orders-table td {
    padding: 10px;
    font-size: 13px;
  }
  .export-section {
    flex-direction: column;
  }
  .export-section .export-btn {
    width: 100%;
  }
}/*# sourceMappingURL=report.css.map */