/* Meeting Minutes Manager — Frontend Styles
 * Pixel-perfect replication of meeting-minutes-tabs.html
 * Primary: #81bc3a | Fonts: K2D + Open Sans
 */

.mm-wrapper * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.mm-wrapper {
  font-family: 'Open Sans', sans-serif;
  background: #f5f7f2;
  padding: 40px 20px;
  border-radius: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.mm-heading {
  text-align: center;
  margin-bottom: 32px;
}

.mm-heading h2 {
  font-family: 'K2D', sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: #1a2410;
  letter-spacing: -0.5px;
}

/* ---- TAB BAR ---- */
.mm-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 0;
  background: #e8ede0;
  border-radius: 14px 14px 0 0;
  padding: 10px 10px 0 10px;
}

.mm-tab-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 22px;
  border: none;
  background: transparent;
  border-radius: 10px 10px 0 0;
  font-family: 'K2D', sans-serif;
  color: #5a6e4a;
  cursor: pointer;
  transition: all 0.22s ease;
  position: relative;
  bottom: -2px;
}

.mm-tab-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.mm-tab-btn:hover {
  background: #d4dfc6;
  color: #2c4018;
}

.mm-tab-btn.active {
  background: #ffffff;
  color: #4a7a1a;
  box-shadow: 0 -3px 0 0 #81bc3a inset, 0 -1px 8px rgba(129,188,58,0.10);
}

/* ---- PANEL ---- */
.mm-panel-wrap {
  background: #ffffff;
  border-radius: 0 14px 14px 14px;
  box-shadow: 0 4px 32px rgba(60,80,30,0.08);
  overflow: hidden;
}

.mm-panel {
  display: none;
  padding: 32px 28px;
  animation: mmFadeIn 0.28s ease;
}

.mm-panel.active {
  display: block;
}

@keyframes mmFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- TABLE ---- */
.mm-table-title {
  font-family: 'K2D', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #2c4018;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mm-table-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: #81bc3a;
  border-radius: 4px;
}

.mm-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.92rem;
}

.mm-table thead tr {
  background: #81bc3a;
}

.mm-table thead th {
  font-family: 'K2D', sans-serif;
  color: #ffffff;
  font-weight: 600;
  padding: 13px 18px;
  text-align: left;
  font-size: 0.88rem;
  letter-spacing: 0.3px;
}

.mm-table thead th:first-child { border-radius: 10px 0 0 0; }
.mm-table thead th:last-child  { border-radius: 0 10px 0 0; }

.mm-table tbody tr {
  transition: background 0.15s;
}

.mm-table tbody tr:nth-child(even) {
  background: #f5f9ef;
}

.mm-table tbody tr:hover {
  background: #eaf3d8;
}

.mm-table tbody td {
  padding: 12px 18px;
  color: #2c3d1a;
  border-bottom: 1px solid #edf2e6;
  vertical-align: middle;
}

.mm-table tbody tr:last-child td {
  border-bottom: none;
}

.mm-doc-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #4a7a1a;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.87rem;
}

.mm-doc-link:hover {
  color: #81bc3a;
  text-decoration: underline;
}

.mm-doc-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.mm-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  background: #e8f5d0;
  color: #4a7a1a;
}

.mm-badge.q1 { background: #e8f5d0; color: #3d6e12; }
.mm-badge.q2 { background: #d6edfc; color: #1a5a8a; }
.mm-badge.q3 { background: #fef3d6; color: #8a6a10; }
.mm-badge.q4 { background: #fde8e8; color: #8a2020; }

.mm-empty {
  text-align: center;
  padding: 40px 20px;
  color: #8aaa6a;
  font-size: 0.95rem;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 640px) {
  .mm-wrapper { padding: 20px 10px; }
  .mm-panel { padding: 20px 12px; }
  .mm-tabs { padding: 8px 8px 0; gap: 4px; }
  .mm-tab-btn { padding: 9px 14px; font-size: 0.88rem; }
  .mm-table { font-size: 0.82rem; }
  .mm-table thead th,
  .mm-table tbody td { padding: 10px 10px; }
  .mm-heading h2 { font-size: 1.4rem; }
}

@media (max-width: 480px) {
  .mm-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .mm-table { min-width: 480px; }
}
