/* 添付ファイルアイコン */
.attachment-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #1976d2;
  margin-left: 4px;
}
/* mock-0302.html から分離したCSS */

/* ここに <style> タグ内の全CSSを貼り付けてください */
.switch-btn {
  background: #f5f7fb;
  color: #1976d2;
  border: none;
  border-radius: 8px;
  padding: 7px 16px;
  font-weight: normal;
  font-size: 13px;
  box-shadow: 0 2px 8px #1976d220;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  outline: none;
}
.switch-btn.active {
  background: #e3f2fd;
  color: #1976d2;
  box-shadow: 0 2px 8px #1976d220;
  border: 1.5px solid #1976d2;
}
.switch-btn:not(.active):hover {
  background: #e3f2fd;
  color: #1565c0;
}

nav {
  background: white;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 20px;
  border-bottom: 1px solid #ddd;
}

nav a {
  text-decoration: none;
  color: #0b3d91;
  font-weight: 500;
  font-size: 15px;
  border-radius: 0 8px 8px 0;
  padding: 7px 14px 7px 18px;
  transition: background 0.18s, color 0.18s;
  display: block;
  position: relative;
}
nav a.active, nav a.selected {
  /* background: #f5f7fb; */
  color: #1976d2;
  font-weight: 700;
}
nav a.active::before, nav a.selected::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  border-radius: 4px;
  background: #1976d2;
}
nav a:not(.active):hover {
  background: #f0f4fa;
  color: #0b3d91;
}

nav a {
  text-decoration: none;
  color: #0b3d91;
  font-weight: bold;
}

.container {
  display: grid;
  grid-template-columns: 1fr 4fr 1fr;
  gap: 20px;
  padding: 0px 20px;
}

.card {
  background: white;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  margin-bottom: 20px;
}

.card h2 {
  margin-top: 0;
  color: #0b3d91;
  font-size: 20px;
}

.weekly-weather-card h2 {
  padding: 0px 0px 0px 18px;
}

.weekly-weather-card {
  padding: 18px 4px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  margin-bottom: 20px;
}

/* 売上速報テーブル */
.summary-table {
  width: 100%;
  border-collapse: collapse;
}

.summary-table th,
.summary-table td {
  padding: 10px;
  border-bottom: 1px solid #eee;
  text-align: center;
}

.summary-table th {
  background: #eef3ff;
  color: #0b3d91;
}

.progress {
  background: #eee;
  border-radius: 8px;
  height: 8px;
  margin-bottom: 4px;
}

.bar {
  background: #0b3d91;
  height: 8px;
  border-radius: 8px;
}

.good { color: #28a745; font-weight: bold; }
.bad { color: #dc3545; font-weight: bold; }
/* 100%超え達成率強調 */
.over100 {
  color: #1976d2;
  font-weight: bold;
  /* background: linear-gradient(90deg,#e3f2fd 60%,#fff 100%); */
  /* background-color: #e3f2fd; */
  border-radius: 8px;
  padding: 2px 8px;
  box-shadow: 0 1px 6px #1976d220;
}

/* AIチャット */
.chat-toggle {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #0b3d91;
  color: white;
  border: none;
  padding: 14px 18px;
  border-radius: 50px;
  cursor: pointer;
}

.chat-window {
  position: fixed;
  right: -380px;
  top: 0;
  width: 360px;
  height: 100%;
  background: white;
  box-shadow: -4px 0 10px rgba(0,0,0,0.2);
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.chat-window.active { right: 0; }

.chat-header {
  background: #0b3d91;
  color: white;
  padding: 15px;
  font-weight: bold;
}

.chat-body { flex: 1; padding: 10px; overflow-y: auto; }

.chat-input { display: flex; border-top: 1px solid #ddd; }
.chat-input input { flex: 1; border: none; padding: 10px; }
.chat-input button {
  border: none;
  background: #0b3d91;
  color: white;
  padding: 10px 15px;
}


.grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; }

.pending {
  background: #ffffff;
  font-weight: bold;
}

.done {
  background: #f2f2f2;
  color: #777;
}

.tab-header {
  display: flex;
  gap: 0;
  border-bottom: 2.5px solid #e0e6f6;
  margin-bottom: 0;
  background: #f5f7fb;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}
.tab-btn {
  background: #f5f7fb;
  border: none;
  border-right: 1px solid #e0e6f6;
  color: #0b3d91;
  font-weight: bold;
  padding: 14px 38px 12px 38px;
  font-size: 17px;
  border-radius: 12px 12px 0 0;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  outline: none;
  position: relative;
  top: 2.5px;
  z-index: 2;
}
.tab-btn:last-child {
  border-right: none;
}
.tab-btn.active {
  background: #fff;
  color: #0b3d91;
  box-shadow: 0 -2px 0 #0b3d91 inset, 0 2px 8px #0b3d9120;
  z-index: 3;
}
.tab-btn:not(.active):hover {
  background: #eaf0fc;
  color: #0b3d91;
}
/* .tab-content {
  background: #fff;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  padding: 0 0 18px 0;
  border-top: none;
} */
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 10px;
}

.tab {
  flex: 1;
  padding: 6px;
  border: none;
  background: #e6ecf5;
  cursor: pointer;
  border-radius: 6px;
}

.tab.active {
  background: #0b3d91;
  color: white;
  font-weight: bold;
}

.attendance-card select,
.attendance-card button {
  width: 100%;
  margin: 6px 0;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.attendance-card button {
  background: #0b3d91;
  color: white;
  border: none;
  cursor: pointer;
}

.log {
  margin-top: 10px;
  font-size: 13px;
  max-height: 120px;
  overflow-y: auto;
  background: #f7f9fc;
  padding: 8px;
  border-radius: 6px;
}

.employee-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4人ずつ横並び */
  gap: 10px;
}

.employee-buttons button {
  background: #0b3d91;
  color: white;
  border: none;
  padding: 14px 8px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 18px;   /* 👈 大きめ文字 */
  font-weight: bold;
  text-align: center;
}

.employee-buttons button.working {
  background: #ffea01;
  color: white;
}

.employee-buttons button:hover {
  background: #092f6b;
}

/* ===== モーダル ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
}

.modal-content {
    background: white;
    width: 320px;
    margin: 15% auto;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.modal h3 {
    margin-top: 0;
}

.modal-buttons button {
    margin: 5px;
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-size: 30px;
    background: #4caf50;
    color: white;
    cursor: pointer;
}

.modal-buttons button:hover {
    background: #43a047;
}

.close-btn {
    margin-top: 10px;
    background: #ccc !important;
    color: black !important;
}

.store-condition {
  display: flex;
 min-width: 1100px;
  gap: 20px;
}

/* 左側 */
.metrics-area {
  width: 55%;
}

.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 14px;
  /* width: 50%; */
}

/* カード */
.metric-card {
  background: white;
  border-radius: 14px;
  padding: 16px 10px 16px 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  min-width: 120px;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* ヘッダー */
.metric-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.metric-name {
  font-weight: bold;
  font-size: 15px;
  color: #333;
}

/* .metric-allstore {
  font-size: 14px;
} */

.metric-allstore-value {
  font-size: 18px;
  font-weight: bold;
  margin: 2px 0;
}


/* メイン数値 */
.metric-value {
  font-size: 20px;
  font-weight: bold;
  margin: 2px 0;
}

/* サブ */
.metric-sub {
  font-size: 13px;
  color: #666;
}

.metric-rate {
  font-size: 13px;
  margin-top: 4px;
}

.metric-rank {
  font-size: 14px;
  /* color: #d71e1e; */
  color: #1976d2;
  font-weight: bold;
}

/* 状態色 */
.metric-card.up .arrow {
  color: #1976d2; /* 青 */
  font-size: 30px;
}

.metric-card.down .arrow {
  color: #d32f2f; /* 赤 */
  font-size: 30px;
}


/* 右側 */
.chart-area {
  width: 45%;
}


/*  各店舗の報告 投稿・リプライ用 */
.reply-list {margin-top:10px;margin-left:18px;border-left:2px solid #e0e6f6;padding-left:10px;}
.reply-item {background:#f5f7fb;border-radius:8px;padding:7px 10px;margin-bottom:6px;font-size:13px;}
.reply-form {display:flex;gap:6px;margin-top:6px;}
.reply-form input {flex:1;padding:5px 7px;border-radius:6px;border:1px solid #ccc;}
.reply-form button {background:#1976d2;color:#fff;border:none;border-radius:6px;padding:5px 12px;font-size:13px;cursor:pointer;}
.review-right-card { position:relative; }
.post-icon-btn {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #1976d2;
  z-index: 10;
}

.modal-content.sns-modal {
  width: 370px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(25, 118, 210, 0.18), 0 1.5px 8px #1976d220;
  padding: 32px 28px 22px 28px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
.sns-modal h3 {
  margin: 0 0 18px 0;
  color: #1976d2;
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  letter-spacing: 1px;
}
.sns-modal input,
.sns-modal select,
.sns-modal textarea {
  width: 100%;
  margin-bottom: 14px;
  padding: 12px 10px;
  border-radius: 10px;
  border: 1.5px solid #e0e6f6;
  font-size: 15px;
  background: #f7faff;
  transition: border 0.2s;
  outline: none;
  box-sizing: border-box;
}
.sns-modal input:focus,
.sns-modal select:focus,
.sns-modal textarea:focus {
  border: 1.5px solid #1976d2;
  background: #fff;
}
.sns-modal textarea {
  min-height: 60px;
  resize: vertical;
}
.sns-modal .modal-btns {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}
.sns-modal .modal-btns button[type="submit"] {
  background: #1976d2;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 28px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 8px #1976d220;
  transition: background 0.2s;
}
.sns-modal .modal-btns button[type="button"] {
  background: #1976d2;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 22px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}
.sns-modal .modal-btns button[type="button"]:hover {
  background: #dbeafe;
}
.sns-modal .modal-btns button[type="submit"]:hover {
  background: linear-gradient(90deg,#1565c0 60%,#388e3c 100%);
}


.review-flex {margin-top:10px;}
.review-tabs .review-tab {
  background: #f5f7fb;
  color: #1976d2;
  border: none;
  border-radius: 8px 8px 0 0;
  padding: 7px 13px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  outline: none;
}
.review-tabs .review-tab.active {
  background: #1976d2;
  color: #fff;
}
.review-tabs .review-tab.success.active {
  background: #43a047;
  color: #fff;
}
.review-tabs .review-tab.claim.active {
  background: #d32f2f;
  color: #fff;
}
.review-tabs .review-tab.issue.active {
  background: #ffa000;
  color: #fff;
}
.review-tabs .review-tab:not(.active):hover {
  background: #e3f2fd;
  color: #1565c0;
}
.review-post {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 6px #1976d220;
  margin-bottom: 12px;
  padding: 14px 16px 10px 16px;
}
.review-post-header {font-size: 16px;}
.review-post-summary {font-size: 15px;}
.review-post-meta {margin-bottom: 2px;}
.review-post-detail {font-size: 14px;line-height:1.7;}


.grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.pending { background:#fdecea; }
.done { background:#e8f8f0; }

.tab-header {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.tab-btn {
  background: #eef3ff;
  border: none;
  color: #0b3d91;
  font-weight: bold;
  padding: 10px 28px;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.2s, color 0.2s;
  outline: none;
}
.tab-btn.active, .tab-btn:hover {
  background: #0b3d91;
  color: #fff;
}
.tab-content {
  background: #fff;
  /* border-radius: 0 0 12px 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  padding: 0 0 18px 0;  */
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* 再読み込みボタンのホバー効果 */
#reload-btn:hover svg {
  transform: rotate(-30deg) scale(1.08);
  transition: transform 0.2s;
  filter: drop-shadow(0 2px 6px #0b3d9140);
}

/* Google Chat風チャット欄 */
.msg {
  display: flex;
  align-items: flex-end;
  margin: 12px 0;
  font-size: 15px;
  line-height: 1.7;
}
.msg.user {
  justify-content: flex-end;
}
.msg.assistant {
  justify-content: flex-start;
}
.msg-bubble {
  padding: 10px 16px;
  border-radius: 18px;
  max-width: 70vw;
  word-break: break-word;
  box-shadow: 0 2px 8px #00000010;
  position: relative;
}
.msg.user .msg-bubble {
  background: #eaf0fc;
  color: #0b3d91;
  border-bottom-right-radius: 4px;
  margin-right: 8px;
}
.msg.assistant .msg-bubble {
  background: #fff;
  color: #222;
  border-bottom-left-radius: 4px;
  margin-left: 8px;
}
.msg-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #dbeafe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin: 0 4px;
}
.msg.user .msg-icon {
  background: #0b3d91;
  color: #fff;
  margin-left: 8px;
}
.msg.assistant .msg-icon {
  background: #dbeafe;
  color: #0b3d91;
  margin-right: 8px;
}


/* 外部リンクカードデザイン */
.external-link-card {
  background: linear-gradient(135deg,#eef3ff 60%,#fff 100%);
  border: 1.5px solid #e0e6f6;
  box-shadow: 0 2px 12px #0b3d9140;
}
.external-link-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 18px;
}
.external-link-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 16px;
  padding: 22px 0 12px 0;
  font-size: 17px;
  font-weight: 500;
  color: #0b3d91;
  text-decoration: none;
  box-shadow: 0 1px 6px #0b3d9120;
  transition: background 0.18s, box-shadow 0.18s, color 0.18s;
  min-height: 120px;
}
.external-link-item:hover {
  background: #eaf0fc;
  color: #1746a0;
  box-shadow: 0 2px 12px #0b3d9140;
}
.external-link-icon.big {
  font-size: 38px;
  background: #eef3ff;
  border-radius: 50%;
  padding: 12px;
  box-shadow: 0 1px 4px #0b3d9120;
  margin-bottom: 8px;
}
.external-link-title.under {
  font-size: 15px;
  color: #0b3d91;
  margin-top: 2px;
  font-weight: 600;
  text-align: center;
}



/* 納品状況テーブル シンプル */
.delivery-table-wrap {
  margin-top: 18px;
  overflow-x: auto;
}
.delivery-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 15px;
  min-width: 520px;
}
.delivery-table th, .delivery-table td {
  padding: 10px 14px;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
}
.delivery-table thead th {
  background: #eef3ff;
  color: #0b3d91;
  font-weight: bold;
  border-bottom: 2px solid #e0e6f6;
}
.delivery-table tbody tr:last-child td {
  border-bottom: none;
}
.status-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: normal;
  background: #fff;
  color: #888;
  border: 1px solid #eee;
}
.status-badge.pending {
  color: #b8860b;
  border-color: #ffe082;
}
.status-badge.done {
  color: #28a745;
  border-color: #b2f2e5;
}


          /* 直近60分トレンド & 即アクションカード */
          .sales-trend-action-card {
            margin-top: 32px;
            background: #fff;
            border-radius: 14px;
            box-shadow: 0 2px 12px #1976d220;
            padding: 22px 18px 18px 18px;
          }

          .sales-trend-action-card .card-title {
            font-size: 20px;
            font-weight: bold;
            color: #1976d2;
            margin-bottom: 18px;
          }

          .trend-products-list {
            display: flex;
            gap: 18px;
            flex-wrap: wrap;
          }

          .trend-product {
            background: #f5f7fa;
            border-radius: 12px;
            box-shadow: 0 1px 6px #1976d220;
            padding: 16px 14px 12px 14px;
            min-width: 220px;
            flex: 1 1 220px;
            display: flex;
            flex-direction: column;
            gap: 10px;
          }

          .product-header {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 16px;
            font-weight: bold;
            color: #1976d2;
          }

          .product-name {
            font-weight: bold;
            font-size: 17px;
            color: #1976d2;
          }

          .badge {
            display: inline-block;
            font-size: 12px;
            font-weight: bold;
            border-radius: 10px;
            padding: 2px 8px;
            margin-left: 4px;
            vertical-align: middle;
          }

          .badge.new {
            background: #e3f2fd;
            color: #1976d2;
            border: 1px solid #90caf9;
          }

          .badge.soldout-predict {
            background: #fff3e0;
            color: #d32f2f;
            border: 1px solid #ffb74d;
          }

          .product-info {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
          }

          .info-item {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            min-width: 70px;
            font-size: 14px;
            color: #444;
          }

          .info-item .label {
            font-size: 13px;
            color: #888;
          }

          .info-item .value {
            font-size: 15px;
            font-weight: bold;
            color: #1976d2;
          }

          .change {
            font-size: 13px;
            font-weight: bold;
            margin-left: 2px;
          }

          .change.up {
            color: #43a047;
          }

          .change.down {
            color: #d32f2f;
          }

          .action-suggestion {
            margin-top: 8px;
            font-size: 14px;
            color: #1976d2;
            font-weight: bold;
            background: #e3f2fd;
            border-radius: 8px;
            padding: 6px 10px;
            text-align: left;
          }

  .trend-action-card__title {
    font-size: 20px;
    font-weight: 700;
    color: #1976d2;
    letter-spacing: 1px;
    margin-bottom: 2px;
  }
          

  .trend-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px #1976d220;
  padding: 22px 28px 18px 28px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height:200px;
}
.trend-header {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 8px;
}
.trend-header h2 {
  font-size: 18px;
  color: #1976d2;
  font-weight: bold;
  margin: 0;
  flex: none;
}
.trend-next-btn {
  background: #f5f7fb;
  color: #1976d2;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 2px 8px #1976d220;
  cursor: pointer;
  margin-right: 4px;
  transition: background 0.2s, color 0.2s;
}
.trend-next-btn:hover {
  background: #e3f2fd;
  color: #1565c0;
}
.material-icons {
  font-family: 'Material Icons', sans-serif;
  font-style: normal;
  font-weight: normal;
  font-size: 22px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  color: #1976d2;
}
.trend-content {
  width: 100%;
  min-height: 56px;
  /* display: flex; */
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}
.trend-content span {
  font-size: 16px;
  margin-right: 8px;
}