/**
 * query-attendance.css - Sprint 4a FR-020
 * 從 query-attendance.js 提取的靜態重複樣式
 */

/* 全螢幕 overlay（查詢選單） */
.qa-fullscreen-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(145deg, #0C0A09 0%, #1C1917 50%, #292524 100%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.3s ease;
  will-change: opacity;
  overscroll-behavior: contain;
}

/* overlay 內容容器 */
.qa-overlay-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: max(50px, env(safe-area-inset-top) + 30px) 20px max(30px, env(safe-area-inset-bottom) + 10px);
}

/* 區段標題 header */
.qa-header {
  text-align: center;
  margin-bottom: 16px;
}

/* 圖標方框 — v9.4.55: 圓形 + 水平排列 */
.qa-icon-square {
  width: 46px;
  height: 46px;
  background: rgba(68, 64, 60, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qa-icon-square .material-icons-outlined {
  font-size: 24px;
  color: rgba(250, 250, 249, 0.7);
}

/* 頁面標題 */
.qa-title {
  font-size: 20px;
  font-weight: 500;
  color: #FAFAF9;
  letter-spacing: 3px;
  margin: 0;
}

/* 分隔線（漸層） */
.qa-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(68, 64, 60, 0.5), transparent);
}

.qa-divider--header {
  margin-top: 14px;
}

.qa-divider--section {
  margin: 12px 0;
}

/* 卡片容器（通用） */
.qa-card {
  background: rgba(28, 25, 23, 0.6);
  border: 1px solid rgba(68, 64, 60, 0.4);
  border-radius: 16px;
  overflow: hidden;
}

/* 區段標籤 */
.qa-section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  padding: 0 4px 8px;
}

.qa-section-label--manager {
  color: rgba(212, 175, 55, 0.7);
}

.qa-section-label--staff {
  color: rgba(168, 162, 158, 0.6);
}

/* 選單項目（通用） */
.qa-menu-item {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.qa-menu-item--border {
  border-bottom: 1px solid rgba(68, 64, 60, 0.3);
}

/* 禁用選單項目 */
.qa-menu-item--disabled {
  filter: grayscale(100%);
  opacity: 0.5;
}

/* Tooltip（功能開發中提示） */
.qa-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 6px;
}

.qa-tooltip--visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) scale(1);
}

/* 底部按鈕容器 */
.qa-bottom-actions {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  justify-content: center;
}

/* 關閉按鈕 */
.qa-close-btn {
  padding: 12px 32px;
  background: rgba(28, 25, 23, 0.8);
  border: 1px solid rgba(68, 64, 60, 0.4);
  border-radius: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.qa-close-btn:hover {
  background: rgba(68, 64, 60, 0.4);
}

.qa-close-btn .material-icons {
  font-size: 16px;
  color: rgba(168, 162, 158, 0.5);
}

.qa-close-btn span:last-child {
  font-size: 14px;
  font-weight: 400;
  color: rgba(168, 162, 158, 0.6);
}

/* 出勤查詢：載入狀態 overlay */
.qa-loading-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(145deg, #0C0A09 0%, #1C1917 50%, #292524 100%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  overscroll-behavior: contain;
}

/* 通用 section group */
.qa-section-group {
  margin-bottom: 12px;
}

/* 包裝器（相對定位，給 tooltip 用） */
.qa-item-wrapper {
  position: relative;
}

.qa-item-wrapper--border {
  border-bottom: 1px solid rgba(68, 64, 60, 0.3);
}
