/*餅圖 成長共榮*/

/*
 * 餅圖與圖例左右排列樣式
 */
.pin-pie-charts-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 36px;
  margin: 32px 0 0 0;
}
.pin-pie-charts-left {
  display: flex;
  align-items: center;
  justify-content: center;
}
.pin-pie-charts-right {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}
@media (max-width: 991px) {
  .pin-pie-charts-row {
    flex-direction: column;
    gap: 18px 0;
    align-items: center;
  }
  .pin-pie-charts-right {
    width: 100%;
    justify-content: center;
  }
}
/* 移除舊的 .pin-pie-charts-wrap 樣式，canvas 尺寸已由 .pin-pie-circle-canvas 控制 */
.pin-pie-circle-canvas {
  width: 320px !important;
  height: 320px !important;
  max-width: 100vw;
  margin: 0 auto 10px auto;
  background: #fafcff;
  border-radius: 50%;
  box-shadow: 0 1px 6px rgba(39,123,39,0.10);
  transition: box-shadow 0.3s;
}
.pin-pie-circle-canvas:focus {
  outline: 2px solid #277b27;
}
.pin-pie-table-wrap {
  margin-top: 18px;
  width: 100%;
  max-width: 760px;
}
.pin-pie-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 1rem;
  box-shadow: 0 1px 6px rgba(39,123,39,0.08);
  border-radius: 8px;
  overflow: hidden;
}
.pin-pie-table th, .pin-pie-table td {
  padding: 7px 10px;
  text-align: left;
  border-bottom: 1px solid #e6e6e6;
}
.pin-pie-table th {
  background: #e6f7e6;
  color: #277b27;
  font-weight: 700;
}
.pin-pie-table tr:last-child td {
  border-bottom: none;
}
.pin-pie-table td {
  color: #222;
  font-weight: 500;
}
.pin-pie-table-color {
  width: 32px;
  text-align: center;
}
.pin-pie-table-color span {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  margin: 0 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  border: 2px solid #fff;
  vertical-align: middle;
}
.pin-pie-table th:first-child,
.pin-pie-table td:first-child {
  padding-left: 6px;
  padding-right: 6px;
}
/* 針對 3年社會關懷相關支出表格 tbody 樣式，確保現代、RWD 友善 */
.pin-pie-table tbody {
  background: #fff;
  font-size: 1rem;
  transition: background 0.2s;
}
.pin-pie-table tbody tr {
  transition: background 0.2s, box-shadow 0.2s;
}
.pin-pie-table tbody tr.active,
.pin-pie-table tbody tr:hover {
  background: #f7fbe9;
  box-shadow: 0 2px 8px 0 rgba(39,123,39,0.08);
}
.pin-pie-table tbody td {
  padding: 0.7em 0.5em;
  vertical-align: middle;
  border-bottom: 1px solid #e5e7eb;
}
@media (max-width: 600px) {
  .pin-pie-circle-canvas {
    width: 90vw !important;
    height: 90vw !important;
    max-width: 270px;
    max-height: 270px;
  }
  .pin-pie-table tbody td {
    font-size: 0.95em;
    padding: 0.5em 0.3em;
  }
}
@media (max-width: 991px) {
  .pin-pie-table-wrap {
    max-width: 98vw;
  }
}
.pin-pie-center-label {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}
.pin-pie-center-label span {
  font-size: 2.1rem;
  font-weight: 700;
  color: #277b27;
  letter-spacing: 2px;
  background: none;
}
@media (max-width: 600px) {
  .pin-pie-center-label span {
    font-size: 1.3rem;
  }
}