/****************************************************
 * ぽっカフェ弁当 管理システム - styles.css
 ****************************************************/

/* 全体 */
body {
  margin: 0;
  padding: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: #f5f5f5;
  color: #333;
}

h1, h2, h3 {
  margin: 0 0 10px;
}

section {
  padding: 10px;
}

/****************************************************
 * ナビゲーション
 ****************************************************/
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  display: flex;
  background: #ffffff;
  border-top: 1px solid #ddd;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.05);
  z-index: 1000;
}

.bottom-nav button {
  flex: 1;
  background: none;
  border: none;
  color: #666;
  padding: 5px 0;
  border-radius: 0;
}

.bottom-nav button.active {
  color: #007aff;
  font-weight: bold;
}

/* ナビゲーションの高さ分、コンテンツの下に余白を作る */
#app {
  padding-bottom: 70px;
}
 
/****************************************************
 * カード
 ****************************************************/
.card {
  background: #fff;
  padding: 12px;
  margin: 12px 0;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.center {
  text-align: center;
}

.small {
  font-size: 13px;
  color: #666;
}

/****************************************************
 * テーブル
 ****************************************************/
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th,
.table td {
  padding: 8px;
  border-bottom: 1px solid #eee;
}

.table th {
  background: #fafafa;
  font-weight: bold;
}

.table.small th,
.table.small td {
  padding: 6px;
  font-size: 13px;
}

.right {
  text-align: right;
}

/****************************************************
 * 入力フォーム
 ****************************************************/
input[type="text"],
input[type="number"],
input[type="date"],
input[type="month"],
select {
  padding: 6px;
  font-size: 15px;
  width: 100%;
  box-sizing: border-box;
  margin: 4px 0;
}

.qty-input {
  width: 60px;
  text-align: right;
}

/****************************************************
 * ボタン
 ****************************************************/
button {
  padding: 10px 14px;
  font-size: 15px;
  border: none;
  border-radius: 4px;
  background: #007aff;
  color: #fff;
}

button:hover {
  opacity: 0.9;
}

button.delete-order-btn,
button.delete-customer-btn {
  background: #d9534f;
}

button.save-menu-btn {
  background: #5cb85c;
}

/****************************************************
 * モーダル
 ****************************************************/
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #fff;
  padding: 20px;
  width: 90%;
  max-width: 420px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/****************************************************
 * スマホ最適化
 ****************************************************/
@media (max-width: 600px) {
  .table {
    font-size: 13px;
  }

  .bottom-nav button:active {
    background-color: #f0f0f0;
  }
  
  button {
    font-size: 14px;
    padding: 8px 12px;
  }
}

/****************************************************
 * 数量入力グループ（一列配置用）
 ****************************************************/
.qty-group {
  display: flex;
  align-items: center;
  gap: 0; /* 隙間を詰めて一体感を出す */
}

/* 入力欄：左側を角丸に、右側を直線に */
.qty-group .qty-input {
  width: 50px !important; /* styles.cssの100%を上書き */
  margin: 0;
  border-radius: 4px 0 0 4px;
  border-right: none; /* プルダウンとの境界線を1本に */
  text-align: center;
}

/* プルダウン：右側を角丸に、左側を直線に */
.qty-group .qty-select {
  width: 70px !important;
  height: 31px; /* inputの高さに合わせる */
  margin: 0;
  padding: 2px;
  font-size: 13px;
  border-radius: 0 4px 4px 0;
  background-color: #f9f9f9;
  cursor: pointer;
  border: 1px solid #ccc;
}

/* ブラウザ標準の矢印を消す（スッキリさせる） */
.qty-group .qty-input::-webkit-inner-spin-button,
.qty-group .qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}