/* 売上分類トレンドデザイン */
.trend-class-card {
  background: #fff;
  /* モダンな分類別カード用 */
  .trend-class-card-modern {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(40,106,184,0.10);
    padding: 28px 32px 22px 32px;
    border: 1.5px solid #e0e6f6;
  }
  .trend-class-row-modern {
    background: #f7fafd;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(40,106,184,0.07);
    padding: 16px 18px;
    margin-bottom: 12px;
    border-bottom: none;
    transition: box-shadow 0.2s;
  }
  .trend-class-row-modern:hover {
    box-shadow: 0 4px 16px rgba(40,106,184,0.15);
  }
  border-radius: 18px;
  box-shadow: 0 2px 12px #1976d220;
  padding: 24px 28px 18px 28px;
}
.trend-class-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.trend-class-row {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 24px;
  font-weight: bold;
  padding: 18px 0 8px 0;
  border-bottom: 1.5px solid #e0e6f6;
}
.trend-class-row:last-child {
  border-bottom: none;
}
.trend-class-name {
  width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  padding: 6px 24px;
  border-radius: 12px;
  letter-spacing: 1px;
  box-shadow: 0 1px 6px #1976d220;
}
.trend-class-name--blue {
  background: #1976d2;
  color: #fff;
}
.trend-class-name--green {
  background: #43a047;
  color: #fff;
}
.trend-class-name--orange {
  background: #ffa000;
  color: #fff;
}
.trend-class-count, .trend-class-sales {
  font-size: 16px;
  font-weight: 600;
  color: #1976d2;
}
.trend-class-count-value, .trend-class-sales-value {
  font-size: 22px;
  font-weight: bold;
  color: #0b3d91;
  margin-left: 6px;
}
/* mock.css - GridStack対応ダッシュボード スタイル */
/* GridStack responsive対応: 左カラムの幅を100%に */

/* ===== 元のmock.cssから引き継いだスタイル ===== */

/* AIチャット ローディングアニメーション */
.ai-loading {
  display: inline-block;
  font-size: 16px;
  color: #1976d2;
  font-weight: 500;
  letter-spacing: 1px;
  margin-left: 8px;
}
.ai-loading .dot {
  font-size: 18px;
  font-weight: bold;
  transition: opacity 0.3s;
  opacity: 0.3;
}

/* 添付ファイルアイコン */
.attachment-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #1976d2;
  margin-left: 4px;
}

.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 a {
  text-decoration: none;
  color: #0b3d91;
  font-weight: bold;
  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 {
  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: #ffffff;
  color: #0b3d91;
}

/* Original container not used in v2 */
.container {
  display: none;
}

.card {
  /* background: white;
  border-radius: 12px; */
  padding: 18px;
  /* box-shadow: 0 4px 10px rgba(0,0,0,0.08); */
  margin-bottom: 20px;
  height: 100%;
}

.card h2 {
  margin-top: 0;
  color: #0b3d91;
  font-size: 20px;
}

/* 売上速報テーブル */
.summary-table {
  width: 100%;
  border-collapse: collapse;
}
.summary-table th,
.summary-table td {
  padding: 10px;
}
.summary-table td {
  border-bottom: 1px solid #eee;
  text-align: center;
}
.summary-table th {
  background: #eef3ff;
  color: #0b3d91;
}

/* 札幌店イイね数カード */
.likes-info-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  padding: 0 8px;
  margin-left: 18px;
  min-width: 0;
  height: auto;
  background: none;
  border-radius: 0;
  box-shadow: none;
}
.likes-title {
  font-size: 13px;
  font-weight: bold;
  color: #1976d2;
  margin-right: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.likes-counts {
  display: flex;
  gap: 12px;
}
.likes-counts.right-align {
  justify-content: flex-end;
  width: 100%;
}
.likes-label {
  color: #1976d2;
  font-size: 13px;
  font-weight: bold;
}
.likes-value {
  font-size: 15px;
  color: #1976d2;
  font-weight: bold;
}
.likes-icon {
  font-size: 18px;
  color: #ffd700;
  margin-right: 4px;
}
.likes-total {
  padding: 0 10px;
}
.likes-monthly {
  padding: 0 30px;
}

/* 保存タブのアイコン色切替 */
.review-tab.save .review-tab-icon {
  stroke: #1976d2;
  transition: stroke 0.2s;
}
.review-tab.save.active .review-tab-icon {
  stroke: #fff;
}

.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; }
.over100 {
  color: #1976d2;
  font-weight: bold;
  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;
  z-index: 1000;
}
.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;
  z-index: 1500;
}
.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: #fdecea;
  font-weight: bold;
}
.done {
  background: #e8f8f0;
  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: #0b3d91;
  color: #fff;
  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;
}
.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;
}

/* ===== モーダル ===== */
.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;
  gap: 20px;
}

/* 左側 */
.metrics-area {
  width: 100%;
}
.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 14px;
}

/* カード */
.metric-card {
  background: white;
  border: 1px solid #e0e6f6;
  border-radius: 14px;
  padding: 16px 10px 16px 14px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.12);
  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-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: #1976d2;
  font-weight: bold;
}
.metric-card.up .arrow {
  color: #1976d2;
  font-size: 30px;
}
.metric-card.down .arrow {
  color: #d32f2f;
  font-size: 30px;
}

/* 各店舗の報告 投稿・リプライ用 */
.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.improvement.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;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.review-post-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  letter-spacing: 0;
  margin-top: 2px;
  overflow: hidden;
}
.review-post-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.review-post-body {
  flex: 1;
  min-width: 0;
}
.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; }

/* 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__header { margin-bottom: 12px; }
.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;
  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;
}
.trend-content {
  width: 100%;
  min-height: 56px;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}
.trend-content span {
  font-size: 16px;
  margin-right: 8px;
}

/* 直近60分トレンド・モダンカード */
.trend-modern-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px #1976d220;
  padding: 20px 24px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.trend-modern-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.trend-modern-title {
  font-size: 20px;
  font-weight: 700;
  color: #1976d2;
  letter-spacing: 1px;
}
.trend-modern-badge {
  background: #ffecb3;
  color: #d32f2f;
  border-radius: 8px;
  padding: 3px 12px;
  font-size: 13px;
  font-weight: 700;
  margin-left: 4px;
  box-shadow: 0 1px 4px #ffd70040;
}
.trend-modern-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.trend-modern-metric {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 16px;
}
.trend-modern-label {
  color: #888;
  font-size: 15px;
  font-weight: 500;
}
.trend-modern-value {
  color: #1976d2;
  font-size: 18px;
  font-weight: 700;
}
.trend-modern-value.up, .trend-modern-rate.up {
  color: #388e3c;
  font-weight: 700;
  font-size: 16px;
}

/* ===== V2 Layout ===== */
/* .v2-wrapper {
  display: flex;
  gap: 16px;
  padding: 10px 16px;
  box-sizing: border-box;
  align-items: flex-start;
} */
/* .v2-left {
  width: 100%;
  flex-shrink: 0;
} */
/* .v2-center {
  flex: 1;
  min-width: 0;
}
.v2-right {
  width: 260px;
  flex-shrink: 0;
} */

/* GridStack overrides */



.grid-stack-item-content {
  /* text-align: left; */
  /* background-color: #eef3ff; */
  /* border-radius: 12px; */
  /* box-shadow: 0 2px 8px #1976d220;
  padding: 24px 32px; */
  /* margin: 8px;
  color: #0b3d91;
  font-size: 16px;
  font-family: 'Segoe UI', 'Meiryo', sans-serif;
  border: 1px solid #dbe6f7; */

  background: white;
  border-radius: 12px;
  /* box-shadow: 0 4px 10px rgba(0,0,0,0.08); */
  box-shadow: 0 3px 6px rgba(0,0,0,0.12);

  border: 1px solid #e0e6f6;
  transition: transform 0.2s, box-shadow 0.2s;

}

/* .grid-stack-item-content .nav-card {
  background-color:#eef3ff;
} */

.card {
  padding: 18px;
  margin-bottom: 20px;
  height: 100%;
}


/* .sidebar > .grid-stack-item, */
/* .sidebar-item {
  width: 100px;
  height: 50px;
  border: 2px dashed green;
  text-align: center;
  line-height: 35px;
  background: rgb(192, 231, 192);
  cursor: default;
  display: inline-block;
} */


.grid-stack.grid-stack-static {
  background: #eee;
}
.grid-stack-item-content {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);

  /* background: transparent !important;
  border: none !important;
  box-shadow: none !important; */

  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.border-none {
  border: none !important;
  box-shadow: none !important;
}


.grid-stack-item-content > .card,
.grid-stack-item-content > .review-card,
.grid-stack-item-content > section {
  flex: 1;
  margin-bottom: 0 !important;
  overflow-y: auto;
  box-sizing: border-box;
}

.gs-drag-handle:hover,
.gs-drag-handle-sub:hover {
  color: #1976d2;
}
.gs-drag-handle:active,
.gs-drag-handle-sub:active {
  cursor: grabbing!important;
}
.gs-drag-handle, .gs-drag-handle-sub {
  cursor: grab!important;
} 
.gs-drag-handle-space {
  height: 15px;
}

/* Tab nav wrapper */
.tab-nav-wrapper {
  background: #f5f7fb;
  border-radius: 12px 12px 0 0;
  border-bottom: 2.5px solid #e0e6f6;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Inner grid spacing */
.v2-center .grid-stack .card,
.v2-center .grid-stack .review-card { margin-bottom: 0; }
.grid-stack-item { cursor: default; }


  /* Mobile responsive */
/* @media (max-width: 900px) {
  カラムを縦積みに
  .v2-wrapper {
    flex-direction: column;
    padding: 8px;
    gap: 12px;
  }
  .v2-left, .v2-right {
    width: 100%;
  }

  KPI エリア
  .store-condition {
    flex-direction: column !important;
    min-width: 0 !important;
  }
  .metrics-area, .chart-area {
    width: 100% !important;
  }
  .metrics {
    grid-template-columns: 1fr 1fr !important;
  }

  シフトグラフ
  #shiftChart {
    height: 400px !important;
  }
} */

/* @media (max-width: 480px) {
  .metrics { grid-template-columns: 1fr !important; }
  .tab-btn { padding: 8px 12px !important; font-size: 12px !important; }
  #shiftChart { height: 300px !important; }
} */

/* KPI Card compact overrides */


.metric-card {
  padding: 14px 12px 14px 14px !important;
  min-width: 110px !important;
}
.metric-name { font-size: 14px !important; }
.metric-allstore-value { font-size: 16px !important; }
.metric-value { font-size: 18px !important; }
.metric-sub { font-size: 12px !important; }
.metric-rate { font-size: 12px !important; margin-top: 3px !important; }
.metric-rank { font-size: 12px !important; }
.metric-card.up .arrow, .metric-card.down .arrow { font-size: 24px !important; }

/* Shift tab alert badge */
.tab-alert-badge {
  display: none;
  position: absolute;
  top: 7px;
  right: 9px;
  width: 9px;
  height: 9px;
  background: #d32f2f;
  border-radius: 50%;
  border: 2px solid #fff;
}
.tab-alert-badge.visible { display: inline-block; }
@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(211,47,47,0.5); }
  50% { box-shadow: 0 0 0 5px rgba(211,47,47,0); }
}
.tab-alert-badge.visible { animation: pulse-badge 1.5s infinite; }

.alert-icon-color {
  color:#e53935;
}
.tab-btn.active .alert-icon-color {
  color:#e53935;
  background-color: #ffffff;
  border-radius: 50%;
}

/* ランキング コントロールバー */
.ranking-controls-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.ranking-view-seg-right {
  margin-left: auto;
}
/* セグメントコントロール共通 */
.seg-ctrl {
  display: flex;
  background: #eef1f7;
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}
.seg-btn {
  padding: 5px 10px;
  border: none;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  color: #7a8aaa;
  background: transparent;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  white-space: nowrap;
}
.seg-btn.active {
  background: #fff;
  color: #1565c0;
  box-shadow: 0 1px 5px rgba(25,118,210,0.15);
}
.seg-btn:not(.active):hover {
  color: #1976d2;
  background: #dde5f5;
}
/* ⚙ ギアボタン */
.ranking-gear-btn {
  margin-left: auto;
  background: #eef1f7;
  border: none;
  border-radius: 8px;
  width: 30px;
  height: 30px;
  font-size: 15px;
  color: #1976d2;
  cursor: pointer;
  transition: background 0.18s;
  line-height: 1;
}
.ranking-gear-btn:hover {
  background: #dde5f5;
}
/* Competitor Modal */
.competitor-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.competitor-modal-overlay.open { display: flex; }
.competitor-modal {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  width: 360px;
  max-width: 95vw;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  max-height: 80vh;
  overflow-y: auto;
}
.competitor-modal h3 {
  font-size: 16px;
  color: #0b3d91;
  margin-bottom: 16px;
  font-weight: bold;
}
.competitor-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 260px;
  overflow-y: auto;
  margin-bottom: 16px;
}
.competitor-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  border: 1.5px solid #e0e6f6;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.15s, border-color 0.15s;
  user-select: none;
}
.competitor-item:hover { background: #f0f5ff; border-color: #1976d2; }
.competitor-item.selected { background: #e3f2fd; border-color: #1976d2; }
.competitor-item input[type="checkbox"] { width: 16px; height: 16px; accent-color: #1976d2; pointer-events: none; }
.competitor-modal-btns {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.competitor-modal-btns button {
  padding: 8px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
}
.btn-primary { background: #1976d2; color: #fff; }
.btn-secondary { background: #f5f7fb; color: #1976d2; border: 1.5px solid #1976d2 !important; }

/* クチコミ card */
.kuchikomi-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 6px #0b3d9120;
  margin-bottom: 10px;
  padding: 14px;
}
.kuchikomi-actions-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.kuchikomi-reply-btn {
  background: none;
  border: 1.5px solid #1976d2;
  color: #1976d2;
  border-radius: 7px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.15s;
}
.kuchikomi-reply-btn:hover { background: #e3f2fd; }
.manager-action-area {
  margin-top: 10px;
  background: #f0f7ff;
  border-radius: 10px;
  padding: 10px 12px;
  border-left: 3px solid #1976d2;
}
.manager-action-area .action-header {
  font-size: 12px;
  font-weight: bold;
  color: #1976d2;
  margin-bottom: 6px;
}
.action-status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: bold;
}
.action-status-badge.done { background: #e8f5e9; color: #388e3c; }
.action-status-badge.progress { background: #fff3e0; color: #f57c00; }
.action-status-badge.check { background: #e3f2fd; color: #1976d2; }
.manager-reply-form {
  display: none;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  background: #f9fbff;
  border-radius: 10px;
  padding: 12px;
  border: 1.5px solid #e0e6f6;
}
.manager-reply-form textarea {
  width: 100%;
  padding: 8px;
  border-radius: 8px;
  border: 1.5px solid #e0e6f6;
  font-size: 13px;
  resize: vertical;
  min-height: 60px;
  box-sizing: border-box;
  font-family: inherit;
}
.manager-reply-form select {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1.5px solid #e0e6f6;
  font-size: 13px;
  color: #333;
}
.manager-reply-form-btns {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.manager-reply-form-btns button {
  padding: 6px 14px;
  border-radius: 7px;
  border: none;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
}
.manager-reply-form-btns .submit-btn { background: #1976d2; color: #fff; }
.manager-reply-form-btns .cancel-btn { background: #f5f7fb; color: #666; border: 1px solid #ddd !important; }

/* ===== 左カラム KPI固定ヘッダー ===== */
aside.gs-left {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 89px;
  height: calc(100vh - 89px);
  align-self: flex-start;
}
.gs-left-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
}

.left-kpi {
  flex-shrink: 0;
  padding: 2px 60px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #e8edf5;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  z-index: 2;
}
.left-kpi-label {
  font-size: 11px;
  font-weight: 600;
  color: #1565c0;
  letter-spacing: 0.5px;
  opacity: 0.8;
  text-transform: uppercase;
}
.left-kpi-date {
  font-weight: 400;
  color: #555;
  letter-spacing: 0;
  text-transform: none;
  font-size: 11px;
}
.left-kpi-items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  /* min-width: 0px; */
}

.left-kpi-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 30px;
}
.left-kpi-divider {
  width: 1px;
  height: 40px;
  background: rgba(25, 118, 210, 0.2);
  flex-shrink: 0;
}
.left-kpi-name {
  font-size: 15px;
  color: #7a8fa8;
  font-weight: 500;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.left-kpi-value {
  font-size: 24px;
  font-weight: 700;
  color: #0d2d6b;
  line-height: 1;
  letter-spacing: -0.5px;
}
.left-kpi-unit {
  font-size: 12px;
  font-weight: 500;
  color: #4a6fa5;
  margin-left: 1px;
}
.left-kpi-change {
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  padding: 1px 6px;
}
.left-kpi-change.up {
  color: #1b8a4e;
  background: rgba(27, 138, 78, 0.10);
}
.left-kpi-change.down {
  color: #c0392b;
  background: rgba(192, 57, 43, 0.10);
}
.left-kpi-sub {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
}
.left-kpi-rank {
  font-size: 13px;
  font-weight: 500;
  color: #7a8fa8;
}

/* ===== インラインスタイル移行クラス ===== */

/* ヘッダー */
.header-root {
  width: 100%;
  position: relative;
  z-index: 10;
  height: 89px;
}
.header-logo {
  position: absolute;
  left: 0;
  top: 0;
  height: 89px;
  z-index: 20;
  background: #fff;
  padding: 0;
  box-sizing: border-box;
}
.header-white-bar {
  height: 57px;
  width: 100%;
  background: #fff;
}
.header-blue-bar {
  height: 31px;
  width: 100%;
  background: #286AB8;
  display: flex;
  align-items: center;
  padding-left: 220px;
  box-sizing: border-box;
}

/* ナビカード */
.nav-card-bg {
  background-color: #eef3ff;
  margin-top: 0;
}
.nav-inner {
  background-color: #eef3ff;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 天気カード */
.weather-card-no-radius {
  border-radius: 0 0 12px 12px;
  margin-top: 0;
}
.weather-date {
  color: #0b3d91;
  font-size: 15px;
  margin-bottom: 0;
}
.weather-current {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}
.weather-emoji-large {
  font-size: 40px;
}
.weather-condition {
  font-size: 18px;
  font-weight: bold;
}
.weather-temp-high {
  color: #555;
}
.weather-temp-low {
  color: #555;
}
.weather-rain {
  color: #888;
}
.weather-forecast-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  margin-top: 10px;
}
.weather-forecast-day {
  text-align: center;
}
.weather-forecast-date {
  font-size: 12px;
  color: #0b3d91;
}
.weather-forecast-emoji {
  font-size: 24px;
}
.weather-forecast-temp {
  font-size: 11px;
  color: #555;
}

/* 通知カード */
.notification-list {
  font-size: 14px;
}

/* トレンドカード - ローテートアイコン */
.trend-rotate-icon {
  font-size: 20px;
  color: #1976d2;
}

/* タブヘッダー内レイアウト */
.tab-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 4px 8px 0 0;
}
.tab-btn-group {
  display: flex;
  gap: 8px;
  margin-right: 10px;
}

/* KPIエリア見出し */
.kpi-section-title {
  width: 100%;
  margin-bottom: 3px;
  font-weight: bold;
  font-size: 16px;
  color: #1976d2;
}
.kpi-section-title-mt {
  width: 100%;
  margin-top: 15px;
  margin-bottom: 8px;
  font-weight: bold;
  font-size: 16px;
  color: #1976d2;
}

/* カード（角なし上） */
.card-no-top-radius {
  border-radius: 0 0 12px 12px;
}

.chart-area {
   width: 100% !important;
}

/* ランキングカード見出し */
.ranking-title {
  font-weight: bold;
  font-size: 22px;
  color: #1976d2;
  margin-bottom: 2px;
  letter-spacing: 1.2px;
  text-align: center;
}
.ranking-period {
  font-size: 13px;
  color: #555;
  text-align: center;
  margin-bottom: 14px;
}
/* 競合店設定ボタン（旧スタイル、後方互換） */
.competitor-setting-area {
  display: none;
}

/* 競合テーブル */
.competitor-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 4px;
  font-size: 13px;
}
.competitor-table-note {
  font-size: 12px;
  color: #888;
  text-align: center;
  margin-bottom: 8px;
}
.competitor-table th {
  font-size: 12px;
  color: #888;
}
.competitor-table th.align-left {
  text-align: left;
}
.competitor-table th.align-right {
  text-align: right;
}
.competitor-row-self {
  background: #e3f2fd;
  font-weight: bold;
}
.competitor-row-self td:last-child {
  text-align: right;
  color: #43a047;
}

/* ランキングテーブル共通 */
.ranking-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 4px;
  font-size: 15px;
}
.ranking-td-center {
  text-align: center;
}
.ranking-td-right {
  text-align: right;
}
/* ランキング1位行 */
.ranking-row-gold {
  background: #fffbe7;
  font-weight: bold;
  font-size: 17px;
  border: 2px solid #FFD700;
}
/* ランキング2位・3位行 */
.ranking-row-silver {
  background: #f8f9fb;
  font-weight: bold;
  font-size: 16px;
  border: 2px solid #C0C0C0;
}
.ranking-row-bronze {
  background: #f8f9fb;
  font-weight: bold;
  font-size: 16px;
  border: 2px solid #CD7F32;
}
/* 王冠アイコン色 */
.crown-gold { color: #FFD700; }
.crown-silver { color: #C0C0C0; }
.crown-bronze { color: #CD7F32; }

/* ランキング コメントあり行 */
.ranking-has-comment {
  cursor: pointer;
}
.ranking-has-comment:hover {
  opacity: 0.85;
}
.ranking-comment-icon {
  font-size: 12px;
  vertical-align: middle;
  margin-left: 3px;
}
/* ランキング 店長コメント行（SNS風） */
.ranking-comment-row td {
  background: #f7f9fc;
  padding: 8px 12px 10px 12px;
  border-bottom: 1px solid #e0e6f0;
}
.ranking-sns-comment {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.ranking-sns-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #cdd6e8;
  flex-shrink: 0;
}
.ranking-sns-body {
  flex: 1;
  min-width: 0;
}
.ranking-sns-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.ranking-sns-name {
  font-weight: bold;
  font-size: 13px;
  color: #1a3a6b;
}
.ranking-sns-store {
  font-size: 12px;
  color: #666;
  background: #e8eef8;
  border-radius: 4px;
  padding: 1px 6px;
}
.ranking-sns-text {
  font-size: 13px;
  color: #333;
  line-height: 1.6;
}

/* ランキング自店舗表示 */
.ranking-mystore {
  font-size: 16px;
  color: #1976d2;
  text-align: center;
  margin-top: 6px;
}

/* review-flex 左右カラム */
.review-col {
  /* flex: 1 1 0; */
  min-width: 0;
  /* background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px #1976d220; */
  padding: 0px 16px 10px 16px;
}
.review-col-right {
  /* flex: 1 1 0; */
  min-width: 0;
  /* background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px #1976d220; */
  padding: 0px 16px 10px 16px;
  /* position: relative; */
}

/* review-flex ラッパー */
.review-flex {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

/* クチコミ・カキコミ小見出し */
.sub-section-title {
  font-weight: bold;
  font-size: 17px;
  color: #1976d2;
  margin-bottom: 10px;
}

/* クチコミ評価ヘッダー行 */
.kuchikomi-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.kuchikomi-score {
  font-size: 19px;
  font-weight: bold;
  color: #0b3d91;
  min-width: 54px;
}
.kuchikomi-stars {
  font-size: 19px;
  font-weight: bold;
  color: #0b3d91;
}
.kuchikomi-stars-md {
  font-size: 17px;
  font-weight: bold;
  color: #0b3d91;
}
.kuchikomi-stars-sm {
  font-size: 15px;
  font-weight: bold;
  color: #0b3d91;
}
.kuchikomi-date {
  font-size: 13px;
  color: #888;
}
.kuchikomi-likes {
  font-size: 17px;
}

/* select wrap */
.select-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* review-tabs ラッパー */
.review-tabs-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

/* review-post のタグ色 */
.tag-improvement { color: #43a047; font-weight: bold; }
.tag-issue { color: #ffa000; font-weight: bold; }
.tag-claim { color: #d32f2f; font-weight: bold; }

/* review-post 共通スタイル上書き */
.review-post-summary--styled {
  font-size: 16px;
  font-weight: bold;
  color: #222;
  margin-bottom: 2px;
  line-height: 1.5;
}
.review-post-header--styled {
  font-size: 14px;
  color: #888;
  margin-bottom: 4px;
}
.review-post-meta--styled {
  font-size: 13px;
  color: #888;
  display: flex;
  align-items: center;
  gap: 12px;
}
.review-post-detail-link {
  color: #1976d2;
  text-decoration: underline;
  cursor: pointer;
}
.like-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  color: #e0245e;
}
.like-icon {
  font-size: 18px;
}
.reply-info {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  color: #1976d2;
}
.save-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
}
.review-post-detail--styled {
  display: none;
  margin-top: 8px;
  color: #444;
}
.sns-reply-list--styled {
  display: none;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

/* 画像（包装不良写真等） */
.post-image {
  width: 120px;
  height: auto;
  border-radius: 10px;
}
.post-image-caption {
  font-size: 13px;
  color: #888;
}

/* 売上速報 サマリーグリッド */
.sales-summary-grid {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.sales-summary-item {
  flex: 1;
  background: #f5f7fb;
  border-radius: 8px;
  padding: 8px 12px;
  text-align: center;
}
.sales-summary-label {
  font-size: 11px;
  color: #888;
}
.sales-summary-value-blue {
  font-size: 18px;
  font-weight: bold;
  color: #1976d2;
}
.sales-summary-value-orange {
  font-size: 18px;
  font-weight: bold;
  color: #f57c00;
}
.sales-summary-value-green {
  font-size: 18px;
  font-weight: bold;
  color: #43a047;
}
.sales-summary-sub {
  font-size: 11px;
  color: #888;
}
.sales-summary-sub-green {
  font-size: 11px;
  color: #43a047;
}

/* 分類別売上 リスト */
.category-sales-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.category-sales-row {
  background: #f8faff;
  border-radius: 10px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 72px 1fr 80px;
  align-items: center;
  gap: 10px;
}
.category-badge {
  color: #fff;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: bold;
  text-align: center;
}
.category-badge--blue { background: #1976d2; }
.category-badge--green { background: #43a047; }
.category-badge--orange { background: #f57c00; }
.category-detail-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.category-detail-row {
  font-size: 12px;
}
.category-detail-label {
  color: #888;
}
.category-detail-change-green {
  font-size: 11px;
  color: #43a047;
}
.category-detail-change-red {
  font-size: 11px;
  color: #d32f2f;
}
.category-detail-note {
  color: #888;
  font-size: 11px;
}
.category-achieve-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.category-achieve-label {
  font-size: 11px;
  color: #888;
}
.category-achieve-value-green {
  font-size: 16px;
  font-weight: bold;
  color: #43a047;
}
.category-achieve-value-red {
  font-size: 16px;
  font-weight: bold;
  color: #d32f2f;
}
.category-progress-bar-wrap {
  background: #e0e6f6;
  border-radius: 4px;
  height: 6px;
  width: 60px;
  overflow: hidden;
}
.category-progress-bar {
  height: 100%;
  border-radius: 4px;
}
.category-progress-bar--blue { background: linear-gradient(90deg, #1565c0, #42a5f5); }
.category-progress-bar--green { background: linear-gradient(90deg, #2e7d32, #66bb6a); }
.category-progress-bar--orange { background: linear-gradient(90deg, #e65100, #ffa726); }

/* 直近60分トレンド カード */
.trend60-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.trend60-card--blue {
  background: linear-gradient(135deg, #e3f2fd, #f8faff);
  border-radius: 12px;
  border: 1.5px solid #bbdefb;
  padding: 12px 14px;
}
.trend60-card--green {
  background: linear-gradient(135deg, #e8f5e9, #f8faff);
  border-radius: 12px;
  border: 1.5px solid #c8e6c9;
  padding: 12px 14px;
}
.trend60-card--orange {
  background: linear-gradient(135deg, #fff3e0, #fff8f0);
  border-radius: 12px;
  border: 1.5px solid #ffe0b2;
  padding: 12px 14px;
}
.trend60-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.trend60-badge {
  color: #fff;
  border-radius: 6px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: bold;
}
.trend60-badge--blue { background: #1976d2; }
.trend60-badge--green { background: #43a047; }
.trend60-badge--orange { background: #f57c00; }
.trend60-change-up {
  font-size: 13px;
  font-weight: bold;
  color: #43a047;
}
.trend60-change-down {
  font-size: 13px;
  font-weight: bold;
  color: #d32f2f;
}
.trend60-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 4px;
  text-align: center;
}
.trend60-metric-label {
  font-size: 10px;
  color: #888;
}
.trend60-metric-value-blue {
  font-size: 15px;
  font-weight: bold;
  color: #1976d2;
}
.trend60-metric-value-green {
  font-size: 15px;
  font-weight: bold;
  color: #43a047;
}
.trend60-metric-value-orange {
  font-size: 15px;
  font-weight: bold;
  color: #f57c00;
}
.trend60-metric-value-red {
  font-size: 15px;
  font-weight: bold;
  color: #d32f2f;
}
.trend60-metric-value {
  font-size: 15px;
  font-weight: bold;
}

/* 売れ筋TOP10テーブル */
.ranking-products-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
  font-size: 14px;
}
.ranking-products-head {
  background: #fffbe7;
  font-weight: bold;
  font-size: 15px;
  color: #e65100;
}
.ranking-products-th-center { text-align: center; width: 40px; }
.ranking-products-th-left { text-align: left; }
.ranking-products-th-right { text-align: right; }
.ranking-products-row-1st { font-weight: bold; color: #e65100; }
.ranking-products-row-2nd { font-weight: bold; color: #808080; }
.ranking-products-row-3rd { font-weight: bold; color: #CD7F32; }
.ranking-products-td-center { text-align: center; }
.ranking-products-td-right { text-align: right; }

/* 売上分類別の売れ筋TOP10 */
.category-ranking-wrapper {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.category-ranking-col {
  flex: 1;
  min-width: 0;
  background: white;
  border: 1px solid #e0e6f6;
  border-radius: 14px;
  padding: 16px 10px 16px 14px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.12);
  transition: transform 0.2s, box-shadow 0.2s;
  min-width: 120px;
}

/* カード */
.metric-card {
}
.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}


.category-ranking-label {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  padding: 4px 18px;
  border-radius: 8px;
  margin-bottom: 8px;
  letter-spacing: 1px;
}
.category-ranking-label--blue   { background: #1976d2; color: #fff; }
.category-ranking-label--green  { background: #43a047; color: #fff; }
.category-ranking-label--orange { background: #ffa000; color: #fff; }
.up-text   { color: #e65100; }
.down-text { color: #1976d2; }

/* EChartsグラフ高さ */
.chart-h300 { height: 300px; }
.chart-h350 { height: 350px; width: 100%; }
.chart-h540 { height: 540px; }
.chart-h250 { height: 250px; }

/* 勤怠タブ サマリーバッジ行 */
.shift-summary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.shift-summary-badge {
  background: #f5f7fa;
  border-radius: 18px;
  padding: 8px 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 1px 4px #1976d220;
}
.shift-summary-label {
  font-size: 15px;
  color: #1976d2;
  font-weight: 600;
}
.shift-summary-num-blue {
  font-size: 30px;
  font-weight: 700;
  color: #1976d2;
  line-height: 1;
}
.shift-summary-num-red {
  font-size: 30px;
  font-weight: 700;
  color: #d32f2f;
  line-height: 1;
}
.shift-summary-unit {
  font-size: 15px;
  color: #1976d2;
  font-weight: 600;
}
.shift-summary-sublabel {
  font-size: 14px;
  color: #1976d2;
  margin-left: 8px;
}

/* 売上速報ヘッダー span */
.sales-header-note {
  font-size: 12px;
  font-weight: normal;
  color: #888;
}

/* postModal添付 */
.post-attachment-label {
  font-size: 14px;
  color: #1976d2;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}
.post-attachment-input {
  border: 1px solid #ddd;
  padding: 6px 8px;
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
}
.post-attachment-wrap {
  margin: 12px 0;
}

/* AIチャット ヘッダー */
.chat-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-close-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-welcome-msg {
  color: #888;
}

/* 競合テーブル追加 */
.competitor-self-diff {
  color: #43a047;
}
.competitor-not-set {
  text-align: center;
  color: #aaa;
  font-size: 12px;
}

/* manager-action body */
.manager-action-body {
  font-size: 13px;
  color: #333;
  margin-top: 4px;
}
.action-feedback-text {
  margin-left: 8px;
}

/* postModal z-index override */
.modal-post {
  z-index: 2000;
}

.glass-card {
  /* background: rgba(255,255,255,0.65);
  backdrop-filter: blur(8px);
  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; */
}

.trend-metrics {
  display: flex;
  gap: 32px;
  justify-content: space-between;
}
.trend-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 180px;
  padding: 18px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.38);
  box-shadow: 0 2px 8px #1976d220;
}
.trend-metric-icon img {
  margin-bottom: 12px;
  width: 120px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.trend-metric-icon svg {
  width: 120px;
  height: 100px;
}

.trend-metric-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: center;
  gap: 10px;
}

.trend-metric-right {
  align-items: center;
}

.trend-metric-label {
  font-size: 16px;
  color: #1976d2;
  font-weight: bold;
}
.trend-metric-value {
  font-size: 24px;
  font-weight: bold;
  color: #0b3d91;
  margin-bottom: 4px;
}
.trend-metric-sub {
  font-size: 13px;
  color: #666;
  margin-bottom: 2px;
}
.trend60-large {
  font-size: 22px !important;
  font-weight: bold !important;
  letter-spacing: 0.5px;
}

.trend-metric-rate {
  font-size: 13px;
  margin-bottom: 2px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: bold;
  padding: 4px 12px;
  margin: 2px 0;
  box-shadow: 0 1px 6px #1976d220;
  background: #fff;
  transition: background 0.2s, color 0.2s;
}
.badge-green {
  background: linear-gradient(90deg,#e8f8f0 60%,#43a047 100%);
  color: #1976d2;
}
.badge-orange {
  background: linear-gradient(90deg,#fffde4 60%,#ff9800 100%);
  color: #d32f2f;
}
}