/* =========================================================================
   * 🎨 第一部分：APHA 系統全域色彩變數 (中央顏色控制中心)
   * ========================================================================= */
:root {
  /* 核心主色調與互動色彩 */
  --primary-blue: #0056b3; /* APHA 官方商務藍（導覽列邊框、主要按鈕、高亮框） */
  --hover-blue: #004085; /* 滑鼠移入按鈕或連結時的深藍色 */
  --light-blue: #e7f1ff; /* 亮藍色背景（用於導覽列選中高亮、選單底色） */
  --border-blue: #cce5ff; /* 淡淡的藍色邊框線 */
  --bg-gray: #f4f6f9; /* 全域網頁底色（舒服不刺眼的灰白色） */
  --text-dark: #2c3e50; /* 主要內文字體顏色（深灰藍，比純黑柔和） */

  /* 💡 統一由 SharedCSS 管理的 Hub 專用顏色變數 */
  --bg-white: #ffffff; /* 純白背景色 */
  --bg-card: #f8fafc; /* 使用者資訊晶片卡的輕灰色底色 */
  --border-light: #e2e8f0; /* 全系統通用的極淡灰色細邊框與分割線 */
  --text-muted: #64748b; /* 次要輔助文字、課別標籤專用灰色 */
  --svg-welcome-fill: #b6d4fe; /* 首頁歡迎圖示的馬卡龍粉藍填滿色 */
  --mask-dark: rgba(0, 0, 0, 0.5); /* 標準系統彈窗的半透明黑底遮罩色 */
  --mask-dark-blur: rgba(0, 0, 0, 0.6); /* 首次註冊彈窗專用，稍深的半透明黑底遮罩色 */

  --status-success: #28a745; /* 提交成功、綠色全數填報提示色 */
  --status-danger: #dc3545; /* 刪除紀錄、紅色未填報提示色 */
  --text-main: #333333; /* 日報表原本通用的深黑文字色 */

  /* 全域陰影控制變數 */
  --shadow-common: 0 2px 8px rgba(0, 0, 0, 0.05); /* 通用輕微陰影 */
  --shadow-modal: 0 10px 25px rgba(0, 0, 0, 0.2); /* 系統彈窗大陰影 */
  --shadow-blue-avatar: 0 2px 4px rgba(0, 86, 179, 0.2); /* 💡 頭像藍色陰影 */
  --shadow-blue-hover: 0 4px 16px rgba(0, 86, 179, 0.08); /* 💡 日期滑鼠移入藍色擴散 */
}

/* =========================================================================
   * 📱 第二部分：全域初始化與手機排版防爆設定
   * ========================================================================= */
* {
  /* 強制將邊框與內襯計入總寬度，防止 padding 撐爆螢幕（已移除 !important） */
  box-sizing: border-box;
}

body {
  /* 統一微軟與 Apple 陣營的網頁無襯線字體，確保跨系統視覺一致 */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-gray);
  color: var(--text-dark);
  margin: 0;
  padding: 0;
  /* 解決手機端網頁滾動時，部分 iOS 瀏覽器滑動卡頓、不流暢的毛病 */
  -webkit-overflow-scrolling: touch;
}

/* =========================================================================
   * 📝 第三部分：全公司表單輸入框與下拉選單「制服外觀」（共用元件區）
   * ========================================================================= */
input[type="text"],
input[type="password"],
input[type="date"],
select {
  width: 100%; /* 寬度自動滿版，由外層的網格決定寬度 */
  padding: 9px 10px; /* 調整舒適的垂直與水平內襯空間，方便手指點擊 */
  border: 1px solid #ced4da; /* 淡淡的灰色外框線 */
  border-radius: 6px; /* 精緻小圓角 */
  font-size: 16px; /* 鐵律：手機端 input 字體不能低於 16px，防 iPhone 點擊時畫面強制放大 */
  background-color: var(--bg-white);
  color: var(--text-dark);
  transition: all 0.2s ease; /* 讓焦點切換時的發光特效具有平滑過渡動畫 */
  -webkit-appearance: none;
  appearance: none;
}

/* 當同仁點選輸入框（Focus 聚焦狀態）時的發光外框特效 */
input:focus,
select:focus {
  outline: none; /* 拔掉瀏覽器自帶的生硬外框線 */
  border-color: var(--primary-blue); /* 外框變成 APHA 主題藍 */
  box-shadow: 0 0 0 3px var(--light-blue); /* 外圍擴散出一圈淡淡的藍色暈開光環 */
}

/* 當輸入框被鎖定（Disabled 反灰唯讀狀態）時的外觀（已移除 !important） */
input:disabled,
select:disabled {
  background-color: #e9ecef; /* 變成灰色背景 */
  cursor: not-allowed; /* 滑鼠指針變成禁止圖示 */
  border-color: #dee2e6;
  opacity: 1;
  -webkit-text-fill-color: var(--text-muted); /* 強制修正 iOS 鎖定字體變太淡的缺陷 */
}

/* 客製化下拉選單（Select）的右側精緻小箭頭 */
select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center; /* 固定鎖在右側 10 像素、垂直居中的位置 */
  background-size: 1em; /* 與字體大小等比例縮放 */
  padding-right: 30px; /* 右側留出 30 像素空間，防止文字蓋到箭頭 */
}

/* =========================================================================
   * ⏳ 第四部分：全網頁通用的連線轉圈圈遮罩（Spinner）
   * ========================================================================= */
.sys-spinner-mask {
  display: none; /* 預設隱藏，由 JS 控制切換成 flex 顯示 */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: rgba(244, 246, 249, 0.85); /* 半透明灰白色背景，蓋住下方的表單 */
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1000; /* 確保遮罩層絕對站在最上層，擋住使用者亂點 */
}

.sys-spinner-mask p {
  margin-top: 15px;
  font-weight: bold;
  color: var(--primary-blue);
  font-size: 1rem;
  text-align: center;
}

.spinner-circle {
  width: 45px;
  height: 45px;
  border: 4px solid #ced4da;
  border-top-color: var(--primary-blue); /* 只有頂部邊框是主題藍，這樣轉起來才有線條感 */
  border-radius: 50%; /* 變成完美圓形 */
  animation: sysSpinAnimate 1s linear infinite; /* 無限循環旋轉，一圈剛好 1 秒 */
}

@keyframes sysSpinAnimate {
  to {
    transform: rotate(360deg);
  }
}

/* =========================================================================
   * 📥 第五部分：全系統通用高級自訂彈窗與按鈕樣式 
   * ========================================================================= */
.sys-modal-mask {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: var(--mask-dark);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px); /* 背景微模糊特效 */
  overflow-y: auto;
  padding: 20px 10px;
}

.sys-modal-content {
  background: var(--bg-white);
  padding: 25px;
  border-radius: 12px;
  width: 80%;
  max-width: 320px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  text-align: center;
  transform: scale(0.9);
  animation: sysPopIn 0.2s forwards ease-out; /* 彈窗滑順彈出動畫 */
  margin: auto;
}

@keyframes sysPopIn {
  to {
    transform: scale(1);
  }
}

.sys-modal-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--text-dark);
  margin-bottom: 12px;
  margin-top: 0;
}

.sys-modal-msg {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 25px;
  line-height: 1.5;
  word-break: break-all;
}

.sys-modal-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.sys-modal-btn {
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 0.95rem;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
}

.sys-modal-btn-submit {
  background: var(--primary-blue);
  color: var(--bg-white);
}

.sys-modal-btn-submit:hover {
  background: var(--hover-blue);
}

/* =========================================================================
   * 📦 系統通用版面與卡片 (Shared Layout Containers & Cards)
   * ========================================================================= */
.approval-container,
.leave-form-container {
  padding: 15px;
  max-width: 800px;
  margin: 0 auto;
}

.dr-container {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  padding: 15px;
  border-radius: 8px;
  box-shadow: var(--shadow-common);
  position: relative;
}

.order-container {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  padding: 15px;
  border-radius: 12px;
  box-shadow: var(--shadow-common);
}

.approval-card,
.leave-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-common);
  border: 1px solid var(--border-light);
  margin-bottom: 20px;
  position: relative;
}

/* =========================================================================
   * 📝 全系統通用表單格線佈局 (Shared Form Grids)
   * ========================================================================= */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group.full-width {
  grid-column: span 2;
}
.form-group label {
  font-weight: bold;
  color: var(--primary-blue);
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group.full-width {
    grid-column: span 1;
  }
}

/* =========================================================================
   * 📊 全系統通用表格樣式 (Shared Progress Tables)
   * ========================================================================= */
.progress-table-wrapper {
  width: 100%;
  overflow-x: hidden;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: white;
}
.progress-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  text-align: center;
  table-layout: auto;
}
.progress-table th {
  background: var(--bg-gray);
  padding: 8px 4px;
  font-weight: bold;
  color: var(--text-dark);
  border-bottom: 2px solid var(--border-light);
  white-space: nowrap;
  text-align: center;
}
.progress-table td {
  padding: 10px 4px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
  text-align: center;
}
.progress-table td.cell-nowrap {
  white-space: nowrap !important;
}
.progress-table td.cell-id-shrink {
  font-family: monospace !important;
  font-size: 0.78rem !important;
  font-weight: bold;
  letter-spacing: -0.5px !important;
  white-space: nowrap !important;
  color: #2c3e50;
}
.progress-table td.cell-time-display {
  font-size: 0.78rem !important;
  line-height: 1.3 !important;
  white-space: nowrap !important;
  color: var(--text-dark);
}

@media (max-width: 600px) {
  .progress-table-wrapper {
    overflow-x: auto;
  }
  .progress-table th, 
  .progress-table td {
    padding: 6px 2px !important;
    font-size: 0.72rem !important;
  }
}

/* =========================================================================
   * 🏷️ 全系統通用狀態標籤 (Shared Status Badges)
   * ========================================================================= */
.status-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  color: white;
  font-weight: bold;
  display: inline-block;
  white-space: nowrap !important;
}
.status-pending {
  background-color: #f1c40f;
  color: #333;
}
.status-approved {
  background-color: var(--status-success);
}
.status-rejected {
  background-color: var(--status-danger);
}
.status-cancelled {
  background-color: #64748b;
  color: white;
}


/* =========================================================================
 * 🎨 第六部分：APHA HUB 系統大廳門戶與公告區專屬樣式 (Portal & Announcement)
 * ========================================================================= */

/* 頁面主體：強制滿版彈性佈局，藉由隱藏滾動條（overflow: hidden）鎖定視窗，防止 SPA 子網頁拉動時位移 */
body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  position: relative;
}

/* 門戶頂部導航欄：採用彈性水平佈局，設定高層級 (z-index: 999) 確保不被子網頁組件或彈窗遮擋 */
.header-portal {
  flex-shrink: 0;
  background: var(--bg-white);
  border-bottom: 2px solid var(--primary-blue);
  padding: 12px 24px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-common);
  position: relative;
  z-index: 999;
}

.header-left-group {
  display: flex;
  align-items: center;
  gap: 35px;
}

.company-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.logo-icon {
  width: 34px;
  height: 34px;
  background: var(--primary-blue);
  color: var(--bg-white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.2rem;
}

.logo-text {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary-blue);
  letter-spacing: 1px;
  white-space: nowrap;
}

.logo-img {
  height: 34px;
  width: auto;
  object-fit: contain;
  display: none;
}

.logo-fallback-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 導航功能按鈕選單：水平彈性間距排版 */
.nav-menu {
  display: flex;
  gap: 8px;
}

/* 功能選單按鈕基本樣式：內建 0.2 秒平滑過渡動畫 (transition) */
.menu-btn {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  background: var(--bg-white);
  color: var(--primary-blue);
  border: 1px solid var(--primary-blue);
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.88rem;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.menu-btn:hover {
  background: var(--light-blue);
}

/* 啟用中功能鈕：套用企業主色調與陰影強調 */
.menu-btn.active {
  background: var(--primary-blue);
  color: var(--bg-white);
  box-shadow: var(--shadow-blue-avatar);
}

.menu-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.right-control-panel {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* 使用者資訊晶片：設定水平置中與圓角陰影外觀 */
.user-profile-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  padding: 5px 14px 5px 6px;
  border-radius: 30px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-common);
}

.user-avatar {
  width: 30px;
  height: 30px;
  background: var(--primary-blue);
  color: var(--bg-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.85rem;
  box-shadow: var(--shadow-blue-avatar);
}

.user-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.user-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
}

.user-dept {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.2;
  margin-top: 2px;
}

/* RWD 展開/收合開關：預設在桌面版環境下強制隱藏 */
#hubToggleBtn {
  display: none;
  padding: 6px 12px;
  border: 1px solid var(--primary-blue);
  background: var(--primary-blue);
  color: var(--bg-white);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: bold;
}

.reg-modal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  text-align: left;
}

.reg-modal-field label {
  font-size: 0.85rem;
  font-weight: bold;
  color: var(--primary-blue);
}

/* 主舞台容器：填滿賸餘空間（flex-grow: 1）並啟用內部剪裁，確保各分頁獨立擁有垂直滾動條 */
.content-container {
  flex-grow: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* SPA 單頁應用舞台基本樣式 */
.spa-page {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  display: none;
}

/* =========================================================================
 * 📱 【響應式斷點設定：平板與手機行動裝置環境 (max-width: 991px)】
 * ========================================================================= */
@media (max-width: 991px) {
  /* 頂部導航欄降級為垂直排列 */
  .header-portal {
    flex-direction: column;
    gap: 12px;
    padding: 12px 16px;
    align-items: stretch;
  }

  .header-left-group {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .header-row-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* 響應式切換鈕現形 */
  #hubToggleBtn {
    display: block;
  }

  .right-control-panel {
    justify-content: flex-end;
    border-top: 1px dashed var(--border-light);
    padding-top: 8px;
  }

  /* 行動版選單轉換為等寬 3 欄式網格佈局 (Grid) */
  .nav-menu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .nav-menu.initial-hidden {
    display: none;
  }

  /* 行動版按鈕：改為上下垂直排列排列，增大點擊區塊以利指尖操作 */
  .menu-btn {
    height: 54px;
    width: 100%;
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
    align-items: center;
    gap: 4px;
    font-size: 0.82rem;
    padding: 4px 0;
  }

  /* 摺疊狀態控制類別：物理隱藏功能選單與控制面板 */
  .header-portal.collapsed .right-control-panel,
  .header-portal.collapsed .nav-menu {
    display: none;
  }
}

/* =========================================================================
 * 🌟 今日狀態儀表板與進階大廳分欄版面 (Split Welcome Layout)
 * ========================================================================= */

/* 歡迎頁背板：水平垂直置中，允許內容捲動 */
.welcome-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-gray);
  overflow-y: auto;
  padding: 30px 15px;
  box-sizing: border-box;
}

.welcome-box {
  width: 100%;
  max-width: 680px;
  padding: 10px 0;
  text-align: center;
  margin: 0 auto;
}

.welcome-split-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  align-items: center;
}

.welcome-left-panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-right: none;
  padding-right: 0;
  justify-content: center;
  align-items: center;
}

.welcome-brand-info {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.welcome-brand-info svg {
  width: 54px;
  height: 54px;
  fill: var(--primary-blue);
  margin-bottom: 12px;
  margin-left: auto;
  margin-right: auto;
}

.welcome-brand-info h2 {
  margin: 0 0 8px 0;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-dark);
  text-align: center;
  width: 100%;
}

.welcome-brand-info p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.5;
  text-align: center;
  width: 100%;
}

/* 📢 公告欄樣式 */
.portal-announcement-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 18px 22px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}

.announcement-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--primary-blue);
  font-size: 1.05rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.announcement-list {
  max-height: 195px;
  /* 控制高度最多顯示約 2 則，多的可獨立捲動 */
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 6px;
}

/* 自訂 Scrollbar */
.announcement-list::-webkit-scrollbar {
  width: 6px;
}

.announcement-list::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.announcement-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.announcement-list::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.announcement-item {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.announcement-item:hover {
  border-color: #3b82f6;
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.announcement-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.02rem;
  font-weight: 700;
  color: #475569;
}

.announcement-item-badge {
  background: #dbeafe;
  color: #1e40af;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.announcement-item-content {
  font-size: 1.02rem;
  color: var(--text-dark);
  font-weight: 500;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-align: left;
}

/* 📎 高級附件卡片 UI/UX 重設計 */
.announcement-file-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none !important;
  color: var(--text-dark) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
  cursor: pointer;
}

/* 置頂與分類標籤樣式 */
.announcement-item.is-pinned {
  border-color: #f59e0b;
  background: #fffbeb;
}

.announcement-item.is-pinned:hover {
  border-color: #d97706;
  background: #fef3c7;
}

.announcement-badge-pinned {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
}

.announcement-badge-category {
  background: #e0f2fe;
  color: #0369a1;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
}

.announcement-unread-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3b82f6;
  display: inline-block;
  box-shadow: 0 0 6px rgba(59, 130, 246, 0.6);
  flex-shrink: 0;
}

/* 彈窗導覽按鈕 */
.ann-nav-btn {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ann-nav-btn:hover:not(:disabled) {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.ann-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: #f8fafc;
}

.file-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.announcement-file-card:hover .file-card-icon {
  background: #2563eb;
  color: #ffffff;
}

.file-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  text-align: left;
}

.file-card-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-card-sub {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 500;
}

.file-card-action {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.announcement-file-card:hover .file-card-action {
  background: #2563eb;
  color: #ffffff;
  transform: translateY(1px);
}

/* 右側欄狀態看板 */
.welcome-right-panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 100%;
}


