/* 売上分類トレンドデザイン */
.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;
}
/* E: バッジ色バリエーション共通（青・緑・オレンジ）*/
.trend-class-name--blue,
.category-ranking-label--blue   { background: #1976d2; color: #fff; }
.trend-class-name--green,
.category-ranking-label--green  { background: #43a047; color: #fff; }
.trend-class-name--orange,
.category-ranking-label--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から引き継いだスタイル ===== */

/* 添付ファイルアイコン */
.attachment-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #1976d2;
  margin-left: 4px;
}

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 {
  color: #1976d2;
  font-weight: 700;
}
nav a.active::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;
}

.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;
}
/* C: テーブルヘッダー共通（青背景・#0b3d91文字）*/
.summary-table th,
.delivery-table thead 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-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-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;
}

.over100 {
  color: #1976d2;
  font-weight: bold;
  border-radius: 8px;
  padding: 2px 8px;
  box-shadow: 0 1px 6px #1976d220;
}

/* AIチャット */
.chat-toggle {
  display: none;
  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-panel { display: none; }
.tab-panel.active { display: block; }

/* ===== モーダル ===== */
.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;
}
.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;
}

.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;
}
/* B: プライマリボタン共通（青背景・白文字）*/
.btn-primary,
.sns-modal .modal-btns button[type="submit"],
.sns-modal .modal-btns button[type="button"],
.manager-reply-form-btns .submit-btn {
  background: #1976d2;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}
.sns-modal .modal-btns button[type="submit"] {
  padding: 9px 28px;
  font-size: 15px;
  box-shadow: 0 2px 8px #1976d220;
  transition: background 0.2s;
}
.sns-modal .modal-btns button[type="button"] {
  padding: 9px 22px;
  font-size: 15px;
  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;
}

/* 納品状況テーブル シンプル */
.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 {
  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;
}

.change {
  font-size: 13px;
  font-weight: bold;
  margin-left: 2px;
}
.change.up { color: #43a047; }
.change.down { color: #d32f2f; }
.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;
}

/* GridStack overrides */
.grid-stack-item-content {
  background: white;
  border-radius: 12px;
  /* box-shadow: 0 3px 6px rgba(0,0,0,0.12); */
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);

  overflow: hidden;
  display: flex;
  flex-direction: column;

  border: 1px solid #e0e6f6;
  transition: transform 0.2s, box-shadow 0.2s;

}
.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;
}

/* 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; }

.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;
}
/* セグメントコントロール共通 */
.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 の共通スタイルはプライマリボタン共通ルールに統合済み */
.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;
}
/* J: 返信フォーム入力フィールド共通 */
.manager-reply-form textarea,
.manager-reply-form select {
  border-radius: 8px;
  border: 1.5px solid #e0e6f6;
  font-size: 13px;
}
.manager-reply-form textarea {
  width: 100%;
  padding: 8px;
  resize: vertical;
  min-height: 60px;
  box-sizing: border-box;
  font-family: inherit;
}
.manager-reply-form select {
  padding: 6px 10px;
  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;
}
/* .submit-btn の共通スタイルはプライマリボタン共通ルールに統合済み */
.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-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;
}

/* F: KPIセクション見出し共通 */
.kpi-section-title,
.kpi-section-title-mt {
  width: 100%;
  font-weight: bold;
  font-size: 16px;
  color: #1976d2;
}
.kpi-section-title    { margin-bottom: 3px; }
.kpi-section-title-mt { margin-top: 15px; margin-bottom: 8px; }

/* カード（角なし上） */
.card-no-top-radius {
  border-radius: 0 0 12px 12px;
}

.chart-area {
   width: 100% !important;
}

.ranking-period {
  font-size: 13px;
  color: #555;
  text-align: center;
  margin-bottom: 14px;
}
/* D: セパレートテーブル共通（全幅・border-collapse: separate）*/
.competitor-table,
.ranking-table,
.ranking-products-table {
  width: 100%;
  border-collapse: separate;
}
/* 競合テーブル */
.competitor-table {
  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 {
  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;
}
/* I: ランキング2位・3位行共通 */
.ranking-row-silver,
.ranking-row-bronze {
  background: #f8f9fb;
  font-weight: bold;
  font-size: 16px;
}
.ranking-row-silver { border: 2px solid #C0C0C0; }
.ranking-row-bronze { 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-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;
}
/* G: クチコミ星評価共通 */
.kuchikomi-stars,
.kuchikomi-stars-md,
.kuchikomi-stars-sm {
  font-weight: bold;
  color: #0b3d91;
}
.kuchikomi-stars    { font-size: 19px; }
.kuchikomi-stars-md { font-size: 17px; }
.kuchikomi-stars-sm { font-size: 15px; }
.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-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;
}
/* H: アクションバーアイテム共通（いいね・返信・保存）*/
.like-btn,
.reply-info,
.save-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
}
.like-btn,
.save-btn {
  background: none;
  border: none;
  cursor: pointer;
}
.like-btn { color: #e0245e; }
.reply-info { color: #1976d2; }
.like-icon {
  font-size: 18px;
}
.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;
}

/* 売れ筋TOP10テーブル */
.ranking-products-table {
  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;
}

.category-ranking-label {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  padding: 4px 18px;
  border-radius: 8px;
  margin-bottom: 8px;
  letter-spacing: 1px;
}
/* (色バリエーション定義はファイル先頭の共通ルールに統合済み) */
.up-text   { color: #e65100; }
.down-text { color: #1976d2; }

/* EChartsグラフ高さ */
.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;
}
/* F: シフトサマリーラベル共通 */
.shift-summary-label,
.shift-summary-unit {
  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-sublabel {
  font-size: 14px;
  color: #1976d2;
  margin-left: 8px;
}

/* 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;
}

.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;
}

/* ===== 業務連絡ウィジェット ===== */
.contact-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 3000; display: flex; align-items: center; justify-content: center; }
.contact-modal-window  { background: #fff; border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,0.18); width: 560px; max-width: 95vw; max-height: 85vh; display: flex; flex-direction: column; overflow: hidden; }
.contact-modal-header  { background: #0b3d91; color: #fff; font-size: 16px; font-weight: bold; padding: 12px 18px; flex-shrink: 0; }
.contact-modal-body    { padding: 16px 18px; overflow-y: auto; flex: 1; }
.contact-modal-footer  { padding: 10px 18px; border-top: 1px solid #e0e6f6; display: flex; justify-content: flex-end; gap: 8px; flex-shrink: 0; background: #f5f7fb; }
.contact-modal-btn     { padding: 7px 20px; border-radius: 8px; border: 1px solid #ddd; font-size: 14px; font-weight: bold; cursor: pointer; background: #f5f7fb; color: #333; }
.contact-modal-btn:hover { background: #e3f2fd; }
.contact-btn-primary   { background: #1976d2; color: #fff; border-color: #1565c0; }
.contact-btn-primary:hover { background: #1565c0; }
.contact-detail-row    { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.contact-detail-label  { font-size: 13px; font-weight: bold; color: #0b3d91; white-space: nowrap; min-width: 80px; padding-top: 4px; }
.contact-detail-value  { flex: 1; font-size: 14px; }
.contact-list-table    { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; border: 1px solid #e0e6f6; }
.contact-list-table th, .contact-list-table td { padding: 8px 12px; border-bottom: 1px solid #f0f0f0; border-right: 1px solid #e0e6f6; text-align: left; }
.contact-list-table th:last-child, .contact-list-table td:last-child { border-right: none; }
.contact-list-table thead th { background: #eef3ff; color: #0b3d91; font-weight: bold; font-size: 13px; border-bottom: 2px solid #e0e6f6; }
.contact-list-table tbody tr:last-child td { border-bottom: none; }
.contact-row-clickable { cursor: pointer; transition: background 0.15s; }
.contact-row-clickable:hover { background: #f5f8ff; }
.contact-col-priority  { width: 28px; text-align: center; padding: 8px 4px; }
.contact-col-deliver   { width: 100px; color: #555; font-size: 13px; }
.contact-col-read      { width: 60px; text-align: center; }
.contact-priority-img  { width: 20px; height: 20px; vertical-align: middle; }
.contact-title-unread  { font-weight: bold; color: #0b3d91; }
.contact-title-read    { color: #555; }
.contact-title-link    { color: #1976d2; text-decoration: underline; cursor: pointer; }
.contact-title-temp    { color: #888; font-style: italic; }
.contact-title-nodata  { color: #aaa; font-style: italic; }
.contact-status        { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: bold; }
.contact-status-unread  { background: #fdecea; color: #c62828; }
.contact-status-read    { background: #e8f5e9; color: #2e7d32; }
.contact-status-unreply { background: #fff3e0; color: #e65100; }
.contact-status-replied { background: #e3f2fd; color: #1565c0; }
.contact-no-data       { color: #aaa; font-size: 14px; padding: 16px; text-align: center; }
