/* ===================================================
   APPLE-INSPIRED DESIGN SYSTEM
   =================================================== */
:root {
  --bg: #f5f5f7;
  --bg-card: #ffffff;
  --bg-sidebar: rgba(255,255,255,0.9);
  --bg-hover: #f0f0f5;
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #aeaeb2;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --blue-light: rgba(0,113,227,0.08);
  --green: #28cd41;
  --green-light: rgba(40,205,65,0.12);
  --red: #ff3b30;
  --red-light: rgba(255,59,48,0.1);
  --border: rgba(0,0,0,0.1);
  --border-strong: rgba(0,0,0,0.18);
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.09);
  --shadow-lg: 0 24px 64px rgba(0,0,0,0.14);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --sidebar-w: 260px;
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.5;
}

/* ===================================================
   LAYOUT
   =================================================== */
.layout {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===================================================
   SIDEBAR
   =================================================== */
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--bg-sidebar);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow: hidden;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 16px 14px;
  border-bottom: 1px solid var(--border);
}
.app-icon { font-size: 1.5rem; line-height: 1; }
.app-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

.sidebar-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 14px 16px 6px;
}

.event-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 8px;
}
.event-list::-webkit-scrollbar { width: 4px; }
.event-list::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 2px; }

.event-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.12s;
  margin-bottom: 1px;
}
.event-item:hover { background: var(--bg-hover); }
.event-item.active { background: var(--blue-light); }
.event-item.active .event-item-name { color: var(--blue); }
.event-item-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.event-item-meta {
  font-size: 0.73rem;
  color: var(--text-tertiary);
  display: flex;
  justify-content: space-between;
  gap: 4px;
}
.event-item-balance { font-weight: 600; }
.event-empty-sidebar {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  text-align: center;
  padding: 20px 10px;
}

.new-event-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px;
  padding: 10px 12px;
  background: var(--blue-light);
  color: var(--blue);
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s;
}
.new-event-btn:hover { background: rgba(0,113,227,0.14); }
.new-event-icon {
  width: 20px; height: 20px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700; line-height: 1;
  flex-shrink: 0;
}

.sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 16px;
}

.sidebar-nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: calc(100% - 16px);
  margin: 0 8px 2px;
  padding: 9px 10px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  transition: background 0.12s;
}
.sidebar-nav-btn:hover { background: var(--bg-hover); }
.sidebar-nav-btn.active { background: var(--blue-light); color: var(--blue); }
.sidebar-nav-icon { font-size: 1rem; flex-shrink: 0; }
.sidebar-nav-badge {
  margin-left: auto;
  background: var(--text-tertiary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}
.sidebar-nav-badge:empty { display: none; }

.sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 8px;
  border-top: 1px solid var(--border);
}
.sidebar-action {
  display: block;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 0.82rem;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  transition: background 0.12s;
}
.sidebar-action:hover { background: var(--bg-hover); color: var(--text-primary); }

/* ===================================================
   MOBILE HEADER
   =================================================== */
.mobile-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.menu-btn {
  background: none; border: none; font-size: 1.2rem;
  cursor: pointer; color: var(--blue); padding: 4px 8px;
}
.mobile-title { font-size: 1rem; font-weight: 600; }
.sidebar-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.25);
  z-index: 99; backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.sidebar-overlay.hidden { display: none; }

/* ===================================================
   CONTENT
   =================================================== */
.content {
  flex: 1;
  padding: 36px 36px 80px;
  max-width: 800px;
}

/* ===================================================
   EMPTY STATE
   =================================================== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 65vh;
  gap: 16px;
}
.empty-icon { font-size: 4.5rem; line-height: 1; }
.empty-title {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}
.empty-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 300px;
  line-height: 1.6;
}

/* ===================================================
   DETAIL TITLEBAR
   =================================================== */
.detail-titlebar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.detail-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.6px;
  color: var(--text-primary);
  line-height: 1.2;
}
.detail-subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ===================================================
   SUMMARY GRID
   =================================================== */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
@media (min-width: 580px) {
  .summary-grid { grid-template-columns: repeat(4, 1fr); }
}
.summary-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 18px 14px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: box-shadow 0.15s, transform 0.15s;
}
.summary-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.summary-icon { font-size: 1.5rem; line-height: 1; margin-bottom: 8px; }
.summary-amount {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.summary-amount.green { color: var(--green); }
.summary-amount.red { color: var(--red); }
.summary-label { font-size: 0.7rem; color: var(--text-secondary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; }
.balance-card { background: var(--blue); border-color: transparent; }
.balance-card .summary-amount,
.balance-card .summary-label,
.balance-card .summary-icon { color: rgba(255,255,255,0.9); filter: none; }
.balance-card .summary-amount { color: #fff; }
.balance-card .summary-label { color: rgba(255,255,255,0.7); }
.balance-card.negative { background: var(--red); }

/* ===== 一人当たり予算バー ===== */
.per-person-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s;
}
.per-person-bar:hover { box-shadow: var(--shadow-md); }
.per-person-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.per-person-icon { font-size: 1.5rem; line-height: 1; }
.per-person-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.per-person-sub {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 2px;
}
.per-person-amount {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--blue);
}


/* ===================================================
   CARD
   =================================================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
  overflow: hidden;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}
.card-title { font-size: 1rem; font-weight: 600; letter-spacing: -0.2px; }
.card-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.015);
}

/* ===================================================
   FIELDS
   =================================================== */
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.field {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.field:nth-child(even) { border-right: none; }
.field:last-child,
.field:nth-last-child(2):nth-child(odd) { border-bottom: none; }
.field-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.71rem;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.required {
  background: var(--red-light);
  color: var(--red);
  font-size: 0.65rem;
  padding: 1px 5px;
  border-radius: 4px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}
.field-input {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.field-input::placeholder { color: var(--text-tertiary); font-weight: 400; }
.field-input[type="date"] { color-scheme: light; }
.field-hint { font-size: 0.8rem; color: var(--text-secondary); margin-top: 6px; }
.input-row { display: flex; gap: 8px; align-items: center; }
.input-row .field-input { flex: 1; }
.checkbox { accent-color: var(--blue); width: 16px; height: 16px; cursor: pointer; flex-shrink: 0; }
.divider-label {
  font-size: 0.71rem;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 0 8px;
}

/* ===================================================
   BUTTONS
   =================================================== */
.btn-primary {
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.12s, opacity 0.12s;
  white-space: nowrap;
  letter-spacing: -0.1px;
}
.btn-primary:hover { background: var(--blue-hover); }
.btn-primary:active { opacity: 0.85; }

.btn-secondary {
  background: rgba(0,0,0,0.05);
  color: var(--text-primary);
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.12s;
  white-space: nowrap;
}
.btn-secondary:hover { background: rgba(0,0,0,0.09); }

.btn-destructive-sm {
  background: var(--red-light);
  color: var(--red);
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.12s;
  white-space: nowrap;
  align-self: flex-start;
  margin-top: 4px;
}
.btn-destructive-sm:hover { background: rgba(255,59,48,0.18); }

.detail-actions { display: flex; gap: 8px; align-items: flex-start; flex-shrink: 0; }
.btn-soft-sm {
  background: rgba(0,0,0,0.05);
  color: var(--text-primary);
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.12s;
  white-space: nowrap;
  margin-top: 4px;
}
.btn-soft-sm:hover { background: rgba(0,0,0,0.09); }

.btn-icon-circle {
  width: 28px; height: 28px;
  background: var(--blue-light);
  color: var(--blue);
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.12s;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-weight: 400;
}
.btn-icon-circle:hover { background: rgba(0,113,227,0.15); }

/* ===================================================
   LIST ITEMS
   =================================================== */
.list-empty {
  padding: 28px 20px;
  font-size: 0.875rem;
  color: var(--text-tertiary);
  text-align: center;
}

/* EXPENSE */
.expense-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}
.expense-item:last-child { border-bottom: none; }
.expense-item:hover { background: var(--bg); }
.expense-desc { font-size: 0.9rem; color: var(--text-primary); }
.expense-right { display: flex; align-items: center; gap: 12px; }
.expense-amount { font-size: 0.95rem; font-weight: 700; color: var(--red); }
.expense-btn {
  background: none; border: none; cursor: pointer;
  color: var(--text-tertiary); font-size: 0.85rem; padding: 4px 6px;
  border-radius: 4px; transition: all 0.1s; font-family: inherit;
}
.expense-btn:hover { background: var(--bg-hover); color: var(--text-secondary); }

/* MEMBER */
.member-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
  flex-wrap: wrap;
}
.member-item:last-child { border-bottom: none; }
.member-item:hover { background: var(--bg); }
.member-avatar {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #0071e3, #34aadc);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.member-name { font-size: 0.9rem; font-weight: 500; flex: 1; min-width: 60px; }
.member-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.attend-toggle {
  display: flex;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  overflow: hidden;
}
.attend-btn {
  padding: 5px 12px;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  transition: all 0.1s;
}
.attend-btn.yes.active { background: var(--green); color: #fff; }
.attend-btn.no.active { background: rgba(0,0,0,0.07); color: var(--text-secondary); }

.amount-field {
  display: flex;
  align-items: center;
  gap: 3px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 8px;
}
.amount-prefix { font-size: 0.82rem; color: var(--text-tertiary); }
.amount-input {
  width: 80px;
  background: transparent; border: none;
  font-family: inherit; font-size: 0.9rem; font-weight: 600;
  color: var(--text-primary); text-align: right; outline: none;
}

.paid-badge {
  display: flex; align-items: center; gap: 4px;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: opacity 0.1s;
}
.paid-badge.paid { background: var(--green-light); color: var(--green); }
.paid-badge.unpaid { background: var(--red-light); color: var(--red); }
.paid-badge:hover { opacity: 0.75; }

.member-remove {
  background: none; border: none; cursor: pointer;
  color: var(--text-tertiary); font-size: 1rem; padding: 4px;
  border-radius: 4px; transition: all 0.1s; line-height: 1;
  flex-shrink: 0; font-family: inherit;
}
.member-remove:hover { background: var(--red-light); color: var(--red); }

/* 役職バッジ */
.role-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 3px;
  letter-spacing: 0.2px;
}

/* 役職セレクト */
.role-select {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 5px 8px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.12s;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23aeaeb2' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 24px;
}
.role-select:hover { border-color: var(--border-strong); }
.role-select:focus { border-color: var(--blue); }

/* ===================================================
   CHIP LIST
   =================================================== */
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.1s;
  font-family: inherit;
}
.chip:hover { background: var(--blue-light); border-color: var(--blue); color: var(--blue); }
.chip.added { opacity: 0.4; cursor: default; pointer-events: none; }

/* ===================================================
   MODAL
   =================================================== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.3);
  display: flex; align-items: center; justify-content: center;
  z-index: 300; padding: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeIn 0.15s ease;
}
.modal-overlay.hidden { display: none; }
.modal {
  background: var(--bg-card);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  width: 100%; max-width: 460px;
  animation: slideUp 0.2s cubic-bezier(0.34,1.3,0.64,1);
  overflow: hidden;
  border: 1px solid var(--border);
}
.modal-sm { max-width: 360px; }
.modal-header { padding: 22px 24px 0; }
.modal-title { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.3px; }
.modal-body {
  padding: 16px 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.modal-body .field {
  padding: 0; border: none;
}
.modal-body .field-label {
  font-size: 0.75rem; margin-bottom: 6px;
}
.modal-body .field-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-primary);
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
  -webkit-appearance: none;
}
.modal-body .field-input:focus { border-color: var(--blue); }
.modal-body .field-input::placeholder { color: var(--text-tertiary); }
.modal-footer {
  display: flex; gap: 8px; justify-content: flex-end;
  padding: 14px 24px 20px;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.01);
}

/* ===================================================
   UTILITIES
   =================================================== */
.hidden { display: none !important; }

/* ===================================================
   ANIMATIONS
   =================================================== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 700px) {
  .layout { margin-left: 0; }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  }
  .sidebar.open { transform: translateX(0); }
  .mobile-header { display: flex; }
  .content { padding: 20px 16px 60px; }
  .field-grid { grid-template-columns: 1fr; }
  .field { border-right: none; }
  .field:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--border); }
  .detail-title { font-size: 1.5rem; }
}

/* ===================================================
   PRINT / PDF REPORT
   画面では非表示。印刷（PDF保存）時のみレポートを表示
   =================================================== */
.print-report { display: none; }

@media print {
  body > .sidebar,
  body > .layout,
  body > .sidebar-overlay,
  body > .modal-overlay { display: none !important; }

  .print-report {
    display: block !important;
    color: #000;
    font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  }
  body { background: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  @page { margin: 14mm; }

  .pr-head { border-bottom: 2px solid #000; padding-bottom: 8px; margin-bottom: 14px; }
  .pr-title { font-size: 22px; font-weight: 700; }
  .pr-sub { font-size: 12px; color: #444; margin-top: 4px; }

  .pr-summary { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
  .pr-summary td { border: 1px solid #ccc; padding: 8px 10px; text-align: center; width: 25%; }
  .pr-summary span { display: block; font-size: 10px; color: #666; margin-bottom: 4px; }
  .pr-summary b { font-size: 15px; }

  .pr-note {
    font-size: 12px; background: #f3f3f3; border-radius: 6px;
    padding: 8px 12px; margin-bottom: 8px; line-height: 1.7;
  }

  .pr-section {
    font-size: 13px; font-weight: 700; border-left: 4px solid #000;
    padding-left: 8px; margin: 18px 0 8px;
  }

  .pr-table { width: 100%; border-collapse: collapse; font-size: 12px; }
  .pr-table th, .pr-table td { border-bottom: 1px solid #ddd; padding: 7px 8px; text-align: left; }
  .pr-table th {
    border-bottom: 1.5px solid #999; font-size: 10px; color: #555;
    text-transform: uppercase; letter-spacing: 0.5px;
  }
  .pr-table .num { text-align: right; font-variant-numeric: tabular-nums; }
  .pr-table tfoot td { font-weight: 700; border-top: 1.5px solid #999; border-bottom: none; }
  .pr-table .muted { color: #999; text-align: center; }

  .pr-foot {
    margin-top: 22px; padding-top: 8px; border-top: 1px solid #ccc;
    font-size: 10px; color: #888; text-align: right;
  }

  table, tr { page-break-inside: avoid; }
}