/* BA52-b 書類ダウンロードセンター */
.docs-page { padding: 20px; max-width: 1200px; margin: 0 auto; }
.docs-loading, .docs-error, .docs-empty { padding: 40px; text-align: center; color: #666; }
.docs-error { color: #d32f2f; }
.docs-empty { background: #fafafa; border-radius: 8px; line-height: 1.7; }

.docs-header { margin-bottom: 20px; }
.docs-header h2 { margin: 0 0 4px; font-size: 20px; }
.docs-hint { color: #666; font-size: 13px; margin: 0; }
.btn-link { background: none; border: none; color: #1976d2; cursor: pointer; padding: 4px 0; margin-bottom: 8px; font-family: inherit; font-size: 13px; }
.btn-link:hover { text-decoration: underline; }

.docs-year-nav { display: flex; gap: 12px; align-items: center; padding: 12px 16px; background: #fff; border-radius: 8px; margin-bottom: 20px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); flex-wrap: wrap; }
.docs-year-nav select { padding: 6px 12px; border: 1px solid #ccc; border-radius: 4px; font-size: 14px; font-family: inherit; background: #fff; }
.docs-year-nav .btn-primary { padding: 8px 16px; background: #c2185b; color: #fff; border: none; border-radius: 4px; cursor: pointer; font-size: 13px; font-weight: 600; font-family: inherit; }
.docs-year-nav .btn-primary:hover { background: #880e4f; }

.docs-months-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 24px; }
.docs-month-card { background: #fff; padding: 16px; border-radius: 8px; text-align: center; cursor: pointer; box-shadow: 0 2px 4px rgba(0,0,0,0.05); transition: transform 0.15s, box-shadow 0.15s; border: 2px solid transparent; }
.docs-month-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); border-color: #c2185b; }
.docs-month-card.empty { opacity: 0.5; cursor: default; }
.docs-month-card.empty:hover { transform: none; border-color: transparent; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.docs-month-label { font-size: 18px; font-weight: 700; color: #333; }
.docs-month-count { font-size: 12px; color: #c2185b; margin: 4px 0; font-weight: 600; }
.docs-month-types { font-size: 11px; color: #666; letter-spacing: 2px; min-height: 14px; }

.docs-yearly-section { margin-top: 32px; }
.docs-yearly-section h3 { font-size: 16px; margin-bottom: 12px; color: #555; }

.docs-actions-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; margin-bottom: 12px; border-bottom: 1px solid #eee; flex-wrap: wrap; gap: 8px; }
.docs-actions-bar .btn-primary { padding: 8px 16px; background: #c2185b; color: #fff; border: none; border-radius: 4px; cursor: pointer; font-size: 13px; font-weight: 600; font-family: inherit; }
.docs-actions-bar .btn-primary:hover { background: #880e4f; }
.docs-count { font-size: 14px; color: #666; }

.docs-filter-bar { background: #fff; padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.docs-filter-group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.docs-filter-group:last-child { margin-bottom: 0; }
.docs-filter-group > label { font-size: 12px; color: #666; margin-right: 4px; white-space: nowrap; }
.docs-chip { display: inline-flex; gap: 4px; align-items: center; padding: 4px 10px; background: #f5f5f5; border-radius: 12px; font-size: 12px; cursor: pointer; }
.docs-chip:hover { background: #eee; }
.docs-chip input { margin: 0; }

.docs-items-grouped { display: flex; flex-direction: column; gap: 20px; }
.docs-staff-group { background: #fff; padding: 16px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.docs-staff-group h4 { font-size: 14px; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid #eee; color: #333; font-weight: 700; }
.docs-items-list { display: flex; flex-direction: column; gap: 8px; }
.docs-item { display: flex; gap: 12px; align-items: center; padding: 10px 12px; background: #fafafa; border-radius: 6px; }
.docs-item-icon { font-size: 20px; }
.docs-item-info { flex: 1; min-width: 0; }
.docs-item-label { font-size: 13px; font-weight: 600; color: #333; }
.docs-item-filename { font-size: 11px; color: #999; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn-download { padding: 6px 14px; background: #c2185b; color: #fff; border-radius: 4px; text-decoration: none; font-size: 12px; transition: background 0.15s; white-space: nowrap; }
.btn-download:hover { background: #880e4f; }
.btn-download-disabled { padding: 6px 14px; background: #e0e0e0; color: #666; border-radius: 4px; font-size: 11px; white-space: nowrap; cursor: not-allowed; }

@media (max-width: 640px) {
  .docs-months-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .docs-month-card { padding: 10px 6px; }
  .docs-month-label { font-size: 15px; }
  .docs-year-nav { flex-direction: column; align-items: stretch; }
  .docs-year-nav .btn-primary { width: 100%; }
}
