/* ============================================================
   社内ポータル MVP — デザインシステム
   ============================================================ */

/* --- CSS Variables --- */
:root {
  /* カラーパレット (Washi Modern) */
  --color-primary: #111111;
  --color-primary-hover: #333333;
  --color-primary-light: #f4f4f4;
  --color-secondary: #777777;
  --color-success: #2f6b4a;
  /* Muted traditional green */
  --color-success-light: #eef5f0;
  --color-warning: #b07c36;
  /* Muted gold/brown */
  --color-warning-light: #fbf5ee;
  --color-danger: #a33b3b;
  /* Muted traditional red */
  --color-danger-light: #faecec;
  --color-info: #3b5f8c;
  /* Muted traditional blue */
  --color-info-light: #f0f4f8;

  /* 背景・テキスト (Washi) */
  --bg-body: #eeebe1;
  /* Washi / Sand beige */
  --bg-card: #ffffff;
  --bg-sidebar: #eeebe1;
  /* Match body */
  --bg-sidebar-hover: #e0dcd2;
  --text-primary: #2a2a2a;
  --text-secondary: #6e6e6e;
  --text-sidebar: #5a5a5a;
  --text-sidebar-active: #1a1a1a;

  /* ボーダー・シャドウ (Soft & Diffused) */
  --border: #dfdbd2;
  --border-focus: #1a1a1a;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.06);

  /* スペーシング */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  /* Increased for airy feel */
  --space-2xl: 4rem;

  /* レイアウト */
  --sidebar-width: 260px;
  --header-height: 70px;
  --radius: 4px;
  /* Sharper corners */
  --radius-lg: 8px;

  /* トランジション */
  --transition: 0.3s ease;
}

/* --- Dark Theme Variables (Dark Elegance) --- */
:root[data-theme="dark"] {
  /* ベースカラー */
  --color-primary: #D4AF37; /* 完全なゴールド */
  --color-primary-hover: #F3E5AB;
  --color-primary-light: #1A1A1A;
  --color-secondary: #777777;
  
  /* 通知系ミュートカラー（ダーク版） */
  --color-success: #2f6b4a;
  --color-success-light: #1e2622;
  --color-warning: #b07c36;
  --color-warning-light: #262018;
  --color-danger: #a33b3b;
  --color-danger-light: #2a1c1c;
  --color-info: #3b5f8c;
  --color-info-light: #1c2229;

  /* 背景・テキスト (Dark) */
  --bg-body: #000000; /* 完全な漆黒（リファレンス通り） */
  --bg-card: #0F0F0F; /* リファレンスのカード背景（極めて暗いグレー） */
  --bg-sidebar: #050505; /* サイドバーもほぼ黒 */
  --bg-sidebar-hover: #1A1A1A;
  
  --text-primary: #EDEDED;
  --text-secondary: #999999;
  --text-sidebar: #999999;
  --text-sidebar-active: #D4AF37; /* アクティブ時に明るいゴールド */

  /* ボーダー・シャドウ (Dark) */
  --border: rgba(212, 175, 55, 0.4); /* ゴールド枠線を少し濃く明確に */
  --border-focus: #D4AF37;
  --shadow-sm: none; /* フラットデザイン（影なし） */
  --shadow-md: none;
  --shadow-lg: none;
}

/* --- Dark Theme Force Overrides --- */
:root[data-theme="dark"] html,
:root[data-theme="dark"] body,
:root[data-theme="dark"] #app {
  background-color: #000000 !important;
  background-image: none !important;
  box-shadow: none !important;
}

:root[data-theme="dark"] .main-header {
  border-bottom: 1px solid rgba(212, 175, 55, 0.4) !important;
}

/* 不要な発光や影を無効化 */
:root[data-theme="dark"] *::before,
:root[data-theme="dark"] *::after {
  background: none !important;
  box-shadow: none !important;
}

/* 統計カード（ダッシュボード上部）への強制適用 */
:root[data-theme="dark"] .stat-card {
  background-color: #0F0F0F !important;
  border: 1px solid rgba(212, 175, 55, 0.15) !important;
  box-shadow: none !important;
}

:root[data-theme="dark"] .stat-card:hover {
  box-shadow: none !important;
  transform: none !important;
  border-color: #D4AF37 !important;
}

/* その他の全てのカードへの強制適用 */
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .auth-card {
  background-color: #0F0F0F !important;
  border: 1px solid rgba(212, 175, 55, 0.25) !important;
  box-shadow: none !important;
}

:root[data-theme="dark"] .auth-card .logo h1 {
  color: #D4AF37 !important;
}

:root[data-theme="dark"] .card-header {
  border-bottom: 1px solid rgba(212, 175, 55, 0.25) !important;
}

/* スクロールバーのダーク化 */
:root[data-theme="dark"] ::-webkit-scrollbar {
  width: 10px;
  height: 10px;
  background-color: #050505;
}

:root[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background-color: #333333;
  border-radius: 5px;
  border: 2px solid #050505;
}

:root[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background-color: #555555;
}

:root[data-theme="dark"] ::-webkit-scrollbar-corner {
  background-color: #050505;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Yu Mincho', 'Hiragino Mincho ProN', 'MS PMincho', serif;
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.8;
  letter-spacing: 0.03em;
  min-height: 100vh;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary-hover);
}

/* --- Typography --- */
h1 {
  font-size: 1.75rem;
  font-weight: normal;
  letter-spacing: 0.05em;
}

h2 {
  font-size: 1.35rem;
  font-weight: normal;
  letter-spacing: 0.05em;
}

h3 {
  font-size: 1.1rem;
  font-weight: normal;
  letter-spacing: 0.05em;
}

/* --- Layout: Auth Pages (login, register) --- */
.auth-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--space-lg);
  background: var(--bg-body);
}

.auth-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2xl);
  width: 100%;
  max-width: 440px;
  animation: fadeInUp 0.4s ease;
}

.auth-card .logo {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.auth-card .logo h1 {
  color: #bca072;
  /* 和モダンロゴカラー */
  font-size: 1.5rem;
}

.auth-card .logo p {
  color: #6b7a85;
  /* 和モダンロゴサブカラー（ブルーグレー） */
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 4px;
}

/* --- Layout: App Shell (sidebar + main) --- */
.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  overflow-y: auto;
}

:root[data-theme="dark"] .sidebar {
  border-right: 1px solid rgba(212, 175, 55, 0.2); /* ダーク時は極薄いゴールド線でセパレート */
}

.sidebar-brand {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.sidebar-brand h2 {
  color: #bca072;
  /* 和モダンロゴカラー（くすんだ金/黄土色） */
  font-size: 1.1rem;
}

.sidebar-brand small {
  color: #6b7a85;
  /* 和モダンロゴサブカラー（ブルーグレー） */
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 4px;
  display: block;
}

.sidebar-nav {
  flex: 1;
  padding: var(--space-md) 0;
  overflow-y: auto;
}

.sidebar-nav .nav-section {
  padding: var(--space-sm) var(--space-lg);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-top: var(--space-md);
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.6rem var(--space-md);
  margin: 0.2rem var(--space-md);
  color: var(--text-sidebar);
  font-size: 0.9rem;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}

.sidebar-nav a:hover {
  background: var(--bg-sidebar-hover);
  color: var(--text-sidebar-active);
}

.sidebar-nav a.active {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-sidebar-active);
  font-weight: 600;
}

/* PC版メインヘッダーのハンバーガーメニュー（通常はサイドバーが常時表示のため非表示） */
.btn.sidebar-toggle {
  display: none;
}

.sidebar-user {
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}

.sidebar-user .user-name {
  color: var(--text-sidebar-active);
  font-weight: 600;
}

.sidebar-user .user-role {
  color: var(--text-secondary);
  font-size: 0.75rem;
}

/* Active States */
.sidebar-nav li.active a {
  color: var(--text-sidebar-active);
  font-weight: 600;
}

:root[data-theme="dark"] .sidebar-nav li.active a {
  background: linear-gradient(90deg, #1A1710 0%, transparent 100%);
  border-left: 3px solid #D4AF37;
  color: #D4AF37; /* アクティブメニューの文字色をゴールドに完全一致 */
}

.main-area {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.main-header {
  height: var(--header-height);
  background: transparent;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-xl);
  position: sticky;
  top: 0;
  z-index: 50;
}

:root[data-theme="dark"] .main-header {
  border-bottom: 1px solid rgba(212, 175, 55, 0.2); /* 極薄のゴールド線 */
}

.main-header h1 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #bca072;
  letter-spacing: 0.08em;
  font-family: 'Yu Mincho', 'Hiragino Mincho ProN', serif;
  text-transform: uppercase;
}

:root[data-theme="dark"] .main-header h1 {
  color: #D4AF37;
}

.main-content {
  padding: var(--space-xl);
  flex: 1;
}

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border); /* デフォルトで枠線をつける（ライトテーマ時は薄グレー、ダーク時はゴールド透過） */
  overflow: hidden;
}

.card-header {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header h2,
.card-header h3 {
  color: #bca072;
  letter-spacing: 0.08em;
  font-family: 'Yu Mincho', 'Hiragino Mincho ProN', serif;
  text-transform: uppercase;
}

:root[data-theme="dark"] .card-header h2,
:root[data-theme="dark"] .card-header h3 {
  color: #D4AF37; /* リファレンスのヘッダータイトルのゴールド */
}

.card-body {
  padding: var(--space-lg);
}

/* --- Forms --- */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.form-group .hint {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: var(--space-xs);
}

.form-control {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--bg-card);
  color: var(--text-primary);
}

.form-control:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 1px var(--border-focus);
}

.form-control.error {
  border-color: var(--color-danger);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-error {
  color: var(--color-danger);
  font-size: 0.8rem;
  margin-top: var(--space-xs);
  display: none;
}

.form-error.visible {
  display: block;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8.825L.287 3.113l.825-.825L6 7.175l4.888-4.887.825.825z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.25rem;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.625rem 1.25rem;
  border: none;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--transition), transform 0.1s, box-shadow var(--transition);
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
}

.btn-success {
  background: var(--color-success);
  color: #fff;
}

.btn-success:hover:not(:disabled) {
  background: #047857;
}

.btn-warning {
  background: var(--color-warning);
  color: #fff;
}

.btn-warning:hover:not(:disabled) {
  background: #b45309;
}

.btn-danger {
  background: var(--bg-card);
  color: var(--color-danger);
  border: 1px solid var(--color-danger);
}

.btn-danger:hover:not(:disabled) {
  background: var(--color-danger-light);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.btn-outline:hover:not(:disabled) {
  background: var(--bg-body);
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8rem;
}

.btn-block {
  width: 100%;
}

/* --- Status Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-success {
  background: var(--color-success-light);
  color: var(--color-success);
}

.badge-warning {
  background: var(--color-warning-light);
  color: var(--color-warning);
}

.badge-danger {
  background: var(--color-danger-light);
  color: var(--color-danger);
}

.badge-info {
  background: var(--color-info-light);
  color: var(--color-info);
}

.badge-secondary {
  background: #f3f4f6;
  color: var(--text-secondary);
}

/* --- Tables --- */
.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

th {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #f9fafb;
}

tr:hover {
  background: #f9fafb;
}

:root[data-theme="dark"] th {
  background: #0A0A0A !important;
  color: rgba(212, 175, 55, 0.7) !important;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2) !important;
}

:root[data-theme="dark"] td {
  border-bottom: 1px solid rgba(212, 175, 55, 0.08) !important;
}

:root[data-theme="dark"] tr:hover {
  background: rgba(212, 175, 55, 0.06) !important;
}

/* --- Alerts --- */
.alert {
  padding: var(--space-md);
  border-radius: var(--radius);
  font-size: 0.875rem;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.alert-success {
  background: var(--color-success-light);
  color: #065f46;
  border-left: 4px solid var(--color-success);
}

.alert-warning {
  background: var(--color-warning-light);
  color: #92400e;
  border-left: 4px solid var(--color-warning);
}

.alert-danger {
  background: var(--color-danger-light);
  color: #991b1b;
  border-left: 4px solid var(--color-danger);
}

.alert-info {
  background: var(--color-info-light);
  color: #1e40af;
  border-left: 4px solid var(--color-info);
}

/* --- Stat Cards (Dashboard) --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  border: none;
  transition: transform var(--transition), box-shadow var(--transition);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-card .stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-card .stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: var(--space-xs);
  color: var(--text-primary);
}

.stat-card .stat-icon {
  float: right;
  font-size: 2.2rem;
  opacity: 0.8;
}

/* --- Loading & Empty States --- */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl);
  color: var(--text-secondary);
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.empty-state {
  text-align: center;
  padding: var(--space-2xl);
  color: var(--text-secondary);
}

.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  opacity: 0.3;
}

/* --- Modal --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform var(--transition);
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal-header {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-body {
  padding: var(--space-lg);
}

.modal-footer {
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-sm);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--text-secondary);
  padding: var(--space-xs);
}

/* --- Utility --- */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.mt-md {
  margin-top: var(--space-md);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.flex {
  display: flex;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gap-sm {
  gap: var(--space-sm);
}

.gap-md {
  gap: var(--space-md);
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  /* iOS Safari等での入力時ズームを防止するためのフォントサイズ16px強制 */
  .form-control {
    font-size: 16px !important;
  }

  /* ===========================
     レイアウト＆レスポンシブ基礎
     =========================== */
  .sidebar {
    transform: translateX(-100%);
    box-shadow: var(--shadow-lg); /* 開いた時の影 */
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.4);
    z-index: 90;
    opacity: 0;
    transition: opacity var(--transition);
  }
  .sidebar-overlay.open {
    display: block;
    opacity: 1;
  }

  .main-area {
    margin-left: 0;
  }

  .main-header {
    padding: 0 var(--space-md);
    background: var(--bg-body); /* 透明ではなく背景色を入れて被りを防ぐ */
  }

  .btn.sidebar-toggle {
    display: inline-flex;
  }

  .main-header h1 {
    white-space: nowrap; /* 1文字改行を防ぐ */
  }

  .main-content {
    padding: var(--space-md);
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  /* ===========================
     カード & フォームの最適化 
     =========================== */
  .card-header {
    flex-wrap: wrap;       /* ボタン群が折り返せるように */
    gap: var(--space-sm);
    padding: var(--space-md);
  }

  .card-header > div:last-child {
    display: flex;
    gap: var(--space-sm);
    justify-content: flex-end; /* ボタン群は右寄せに */
  }

  .card-header h2, .card-header h3, .card-header strong {
    white-space: nowrap; /* 余計な改行を防ぐ */
  }

  /* 空表示メッセージの意図しない改行を防ぐ */
  .empty-state p {
    word-break: keep-all; 
    white-space: nowrap;
  }
  
  /* 中央配置テキストの保護 (「休職申請はありません」など) */
  #page-content > div > div.card > div.card-body > div > p,
  div[style*="text-align:center"] {
    word-break: keep-all; 
  }

  .form-group {
    margin-bottom: var(--space-md);
  }

  /* ===========================
     チャット向けモバイル最適化 
     =========================== */

  /* チャットの1カラムレイアウト（親コンテナ用） */
  .chat-layout {
    flex-direction: column;
    height: calc(100vh - 120px) !important;
  }
  
  /* 初期状態はサイドバー（チャンネル一覧）のみ表示 */
  .chat-sidebar-col {
    width: 100% !important;
    flex: 1 !important;
  }
  
  .chat-main-col {
    display: none !important;
  }
  
  /* チャンネル選択時はメイン（メッセージエリア）のみ表示 */
  .chat-layout.chat-active .chat-sidebar-col {
    display: none !important;
  }
  
  .chat-layout.chat-active .chat-main-col {
    display: flex !important;
    width: 100% !important;
    height: 100%;
  }
}

.chat-back-btn { display: none; }
@media (max-width: 768px) {
  .chat-back-btn { display: inline-flex !important; }
}