/* =========================================================================
   * 🎨 第一部分：APHA 系統全域色彩變數 (中央顏色控制中心 - Design Tokens)
   * ========================================================================= */
:root {
  /* 🏢 【一、核心品牌藍色系 (Primary Blues)】 */
  --primary-blue: #2563eb;          /* APHA 系統標準品牌藍 (主要按鈕、文字焦點、選中框) */
  --primary-blue-dark: #1e3a8a;     /* 導覽列與看板標頭漸層深藍 */
  --hover-blue: #1d4ed8;            /* 滑鼠懸停深藍 */
  --light-blue: #eff6ff;            /* 淺藍背景 (選單底色、高亮、徽章底色) */
  --border-blue: #bfdbfe;           /* 淺藍邊框線 */

  /* 🚦 【二、狀態與語意色彩 (Status & Semantic Colors)】 */
  --status-success: #16a34a;        /* 成功、已核准、正常出勤 (綠) */
  --status-success-bg: #dcfce7;     /* 綠色淺底 */
  --status-success-border: #bbf7d0; /* 綠色邊框 */
  --status-success-text: #166534;   /* 綠色深字 */

  --status-warning: #f59e0b;        /* 待審核、未填寫、警告 (橘黃) */
  --status-warning-bg: #fef3c7;     /* 橘黃淺底 */
  --status-warning-border: #fde68a; /* 橘黃邊框 */
  --status-warning-text: #92400e;   /* 橘黃深字 */

  --status-danger: #dc2626;         /* 超時警戒、請假缺勤、未訂 (紅) */
  --status-danger-bg: #fee2e2;      /* 紅色淺底 */
  --status-danger-border: #fecaca;  /* 紅色邊框 */
  --status-danger-text: #991b1b;    /* 紅色深字 */

  /* 🍱 【三、專屬餐點與徽章色彩 (Meal & Badges)】 */
  --meal-badge-a: #ea580c;          /* 🍱 A 餐專用精緻橘色 */
  --meal-badge-b: #2563eb;          /* 🍱 B 餐專用標準品牌藍 */

  /* 📊 【四、管理看板與圖表主題色 (Themes & Charts)】 */
  --card-theme-blue: #3b82f6;       /* 👥 在職出勤卡 */
  --card-theme-blue-bg: #f0f9ff;
  --card-theme-amber: #f59e0b;      /* 📝 昨日日報卡 */
  --card-theme-amber-bg: #fffbeb;
  --card-theme-emerald: #10b981;    /* 🍱 今日午餐卡 */
  --card-theme-emerald-bg: #f0fdf4;
  --card-theme-purple: #8b5cf6;     /* ⏰ 近期加班卡 / 甘特圖工時 */
  --card-theme-purple-bg: #f5f3ff;
  --card-theme-purple-dark: #6d28d9;/* ⏰ 跨日工時深紫斜紋 */

  /* 🎨 【五、中性文字與背景基調 (Neutrals & Layout)】 */
  --bg-gray: #f4f6f9;               /* 全域底色 */
  --bg-white: #ffffff;              /* 純白背景 */
  --bg-card: #f8fafc;               /* 輕灰色底色 */
  --bg-input-disabled: #e9ecef;     /* 鎖定輸入框背景色 */
  --border-light: #e2e8f0;          /* 通用極淡灰色細邊框與分割線 */
  --border-dark: #cbd5e1;           /* 次深灰色邊框 */
  --border-input: #ced4da;          /* 表單輸入框標準邊框 */
  --text-dark: #1e293b;             /* 主要深黑文字 */
  --text-main: #334155;             /* 次深文字 */
  --text-muted: #64748b;            /* 輔助灰色文字 */
  --text-light: #94a3b8;            /* 淡灰色提示文字 */
  --svg-welcome-fill: #b6d4fe;      /* 首頁歡迎圖示粉藍色 */
  --mask-dark: rgba(0, 0, 0, 0.5);  /* 標準彈窗遮罩 */
  --mask-dark-blur: rgba(0, 0, 0, 0.6);

  /* 🌟 【六、全域陰影控制 (Shadows)】 */
  --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(37, 99, 235, 0.2);
  --shadow-blue-hover: 0 4px 16px rgba(37, 99, 235, 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 var(--border-input); /* 淡淡的灰色外框線 */
  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: var(--bg-input-disabled); /* 變成灰色背景 */
  cursor: not-allowed; /* 滑鼠指針變成禁止圖示 */
  border-color: var(--border-light);
  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='%23334155' 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 var(--border-input);
  border-top-color: var(--primary-blue); /* 只有頂部邊框是主題藍，這樣轉起來才有線條感 */
  border-radius: 50%; /* 變成完美圓形 */
  animation: sysSpinAnimate 1s linear infinite; /* 無限循環旋轉，一圈剛好 1 秒 */
}

@keyframes sysSpinAnimate {
  to {
    transform: rotate(360deg);
  }
}

/* =========================================================================
   * 📥 第五部分：全系統通用高級自訂彈窗與按鈕樣式 (Shared Modal System)
   * ========================================================================= */
.sys-modal-mask,
.pf-modal-mask {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: var(--mask-dark-blur);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px); /* 背景微模糊特效 */
  overflow-y: auto;
  padding: 20px 10px;
}

.sys-modal-content,
.pf-modal-content {
  background: var(--bg-white);
  padding: 25px;
  border-radius: 12px;
  width: 85%;
  max-width: 400px;
  box-shadow: var(--shadow-modal);
  text-align: center;
  transform: scale(0.9);
  animation: sysPopIn 0.2s forwards ease-out; /* 彈窗滑順彈出動畫 */
  margin: auto;
  border-top: 6px solid var(--primary-blue);
  box-sizing: border-box;
}

@keyframes sysPopIn {
  to {
    transform: scale(1);
  }
}

.sys-modal-title,
.pf-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: var(--text-main);
  margin-bottom: 25px;
  line-height: 1.5;
  word-break: break-all;
}

.sys-summary-list,
.summary-list,
.pf-summary-list {
  max-height: 280px;
  overflow-y: auto;
  text-align: left;
  margin-bottom: 20px;
}

.sys-summary-item,
.summary-item,
.pf-summary-item {
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border-light);
  padding: 8px 0;
  line-height: 1.5;
}

.sys-summary-item:last-child,
.summary-item:last-child,
.pf-summary-item:last-child {
  border-bottom: none;
}

.sys-modal-btns,
.pf-modal-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.sys-modal-btn,
.pf-modal-btn {
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.95rem;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  margin: 0;
}

.sys-modal-btn-cancel,
.pf-modal-btn-add {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-light);
}

.sys-modal-btn-cancel:hover,
.pf-modal-btn-add:hover {
  background: var(--border-light);
}

.sys-modal-btn-submit,
.pf-modal-btn-submit {
  background: var(--primary-blue);
  color: var(--bg-white);
}

.sys-modal-btn-submit:hover,
.pf-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: var(--bg-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: var(--bg-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: var(--text-dark);
}
.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: var(--bg-white);
  font-weight: bold;
  display: inline-block;
  white-space: nowrap !important;
}
.status-pending {
  background-color: var(--status-warning-bg);
  color: var(--status-warning-text);
  border: 1px solid var(--status-warning-border);
}
.status-approved {
  background-color: var(--status-success);
  color: var(--bg-white);
}
.status-rejected {
  background-color: var(--status-danger);
  color: var(--bg-white);
}
.status-cancelled {
  background-color: var(--text-muted);
  color: var(--bg-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: var(--bg-gray);
  border-radius: 4px;
}

.announcement-list::-webkit-scrollbar-thumb {
  background: var(--border-dark);
  border-radius: 4px;
}

.announcement-list::-webkit-scrollbar-thumb:hover {
  background: var(--text-light);
}

.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: var(--primary-blue);
  background: var(--bg-card);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.announcement-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-main);
}

.announcement-item-badge {
  background: var(--light-blue);
  color: var(--primary-blue-dark);
  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;
  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: var(--bg-white);
  border: 1.5px solid var(--border-light);
  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: var(--status-warning);
  background: var(--card-theme-amber-bg);
}

.announcement-item.is-pinned:hover {
  border-color: var(--status-warning-text);
  background: var(--status-warning-bg);
}

.announcement-badge-pinned {
  background: var(--status-warning-bg);
  color: var(--status-warning-text);
  border: 1px solid var(--status-warning-border);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
}

.announcement-badge-category {
  background: var(--light-blue);
  color: var(--primary-blue-dark);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
}

.announcement-unread-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary-blue);
  display: inline-block;
  box-shadow: 0 0 6px rgba(37, 99, 235, 0.6);
  flex-shrink: 0;
}

/* 彈窗導覽按鈕 */
.ann-nav-btn {
  background: var(--bg-gray);
  color: var(--text-main);
  border: 1px solid var(--border-light);
  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: var(--primary-blue);
  color: var(--bg-white);
  border-color: var(--primary-blue);
}

.ann-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: var(--bg-card);
}

.file-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--light-blue);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.announcement-file-card:hover .file-card-icon {
  background: var(--primary-blue);
  color: var(--bg-white);
}

.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: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-card-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.file-card-action {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-gray);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.announcement-file-card:hover .file-card-action {
  background: var(--primary-blue);
  color: var(--bg-white);
  transform: translateY(1px);
}

/* 右側欄狀態看板 */
.welcome-right-panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 100%;
}

/* =========================================================================
 * 📊 系統通用元件：24小時視覺化甘特時間軸 (Shared 24h Gantt Timeline)
 * 適用模組：DailyReport.html (個人日報) 與 ProxyFill.html (主管代填)
 * ========================================================================= */
.timeline-container,
.dr-timeline-container,
.pf-timeline-container {
  margin: 15px 0;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 12px 10px;
  text-align: left;
}

.timeline-label,
.dr-timeline-label,
.pf-timeline-label {
  font-size: 0.8rem;
  font-weight: bold;
  color: var(--text-dark);
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.timeline-track,
.dr-timeline-track,
.pf-timeline-track {
  position: relative;
  height: 18px;
  background: var(--border-light);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.timeline-segment,
.dr-timeline-segment,
.pf-timeline-segment {
  position: absolute;
  height: 100%;
  top: 0;
  transition: all 0.25s ease;
}

.timeline-segment.history,
.dr-timeline-segment.history,
.pf-timeline-segment.history {
  background: var(--hover-blue);
}

.timeline-segment.current,
.dr-timeline-segment.current,
.pf-timeline-segment.current {
  background: var(--card-theme-blue);
}

.timeline-segment.leave,
.dr-timeline-segment.leave,
.pf-timeline-segment.leave {
  background: #8b5cf6;
}

.timeline-segment.overlap,
.dr-timeline-segment.overlap,
.pf-timeline-segment.overlap {
  background: var(--status-danger);
  animation: sysTimelineFlash 0.5s infinite alternate;
}

.timeline-segment.next-day,
.dr-timeline-segment.next-day,
.pf-timeline-segment.next-day {
  background: repeating-linear-gradient(
    45deg,
    var(--card-theme-purple),
    var(--card-theme-purple) 6px,
    var(--card-theme-purple-dark) 6px,
    var(--card-theme-purple-dark) 12px
  ) !important;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.2);
}

.timeline-axis,
.dr-timeline-axis,
.pf-timeline-axis {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 5px;
  padding: 0 2px;
}

@keyframes sysTimelineFlash {
  from { opacity: 1; }
  to { opacity: 0.6; }
}
@keyframes drFlash { from { opacity: 1; } to { opacity: 0.6; } }
@keyframes pfFlash { from { opacity: 1; } to { opacity: 0.6; } }

/* =========================================================================
 * 🍱 系統通用元件：加班餐費申報區塊 (Shared Overtime Meal Apply Block)
 * 適用模組：DailyReport.html (個人日報) 與 ProxyFill.html (主管代填)
 * ========================================================================= */
.meal-apply-block,
#drMealApplyBlock,
#pfMealApplyBlock {
  background: var(--light-blue);
  border: 2px solid var(--primary-blue);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
  border-radius: 8px;
  padding: 15px;
  margin-top: 15px;
  margin-bottom: 15px;
  text-align: left;
  transition: all 0.3s ease;
  animation: sysPulseGlow 1.2s ease-out;
}

@keyframes sysPulseGlow {
  0% {
    box-shadow: 0 0 0 rgba(37, 99, 235, 0);
    transform: scale(0.98);
  }
  50% {
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.4);
    transform: scale(1.01);
  }
  100% {
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
    transform: scale(1);
  }
}
@keyframes drPulseGlow {
  0% { box-shadow: 0 0 0 rgba(37, 99, 235, 0); transform: scale(0.98); }
  50% { box-shadow: 0 0 15px rgba(37, 99, 235, 0.4); transform: scale(1.01); }
  100% { box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15); transform: scale(1); }
}
@keyframes pfPulseGlow {
  0% { box-shadow: 0 0 0 rgba(37, 99, 235, 0); transform: scale(0.98); }
  50% { box-shadow: 0 0 15px rgba(37, 99, 235, 0.4); transform: scale(1.01); }
  100% { box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15); transform: scale(1); }
}

.meal-apply-block h3,
#drMealApplyBlock h3,
#pfMealApplyBlock h3 {
  margin: 0 0 10px 0;
  font-size: 1rem;
  color: var(--primary-blue);
  border-bottom: 1px solid var(--border-blue);
  padding-bottom: 8px;
}

.meal-apply-row,
.dr-meal-apply-row,
.pf-meal-apply-row {
  margin-bottom: 12px;
  font-size: 0.88rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meal-apply-row:last-child,
.dr-meal-apply-row:last-child,
.pf-meal-apply-row:last-child {
  margin-bottom: 0;
}

.meal-apply-option,
.dr-meal-apply-option,
.pf-meal-apply-option {
  display: flex;
  align-items: center;
}

.meal-apply-option input[type="checkbox"],
.dr-meal-apply-option input[type="checkbox"],
.pf-meal-apply-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
}

.meal-apply-option label,
.dr-meal-apply-option label,
.pf-meal-apply-option label {
  margin-left: 8px;
  cursor: pointer;
  font-weight: normal;
  display: inline;
  margin-bottom: 0;
}

.meal-apply-amt-container,
.dr-meal-apply-amt-container,
.pf-meal-apply-amt-container {
  margin-top: 6px;
  margin-left: 26px;
  font-size: 0.82rem;
  color: var(--primary-blue);
  display: none;
}

.meal-apply-amt-input,
.dr-meal-apply-amt-input,
.pf-meal-apply-amt-input {
  width: 75px;
  padding: 6px;
  border: 1px solid var(--border-blue);
  border-radius: 4px;
  font-size: 0.85rem;
  text-align: center;
  box-sizing: border-box;
}

.meal-apply-err-tips,
.dr-meal-apply-err-tips,
.pf-meal-apply-err-tips {
  color: var(--status-danger);
  font-size: 0.78rem;
  margin-left: 26px;
  margin-top: 4px;
  display: none;
}

.meal-apply-status-tip,
.dr-meal-apply-status-tip,
.pf-meal-apply-status-tip {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 10px 0;
  text-align: center;
}

/* =========================================================================
 * 🍱 系統通用元件：點餐大月曆與點餐控制台 (Shared Lunch Order Calendar & Console)
 * 適用模組：Order.html (個人點餐) 與 ProxyFill.html (主管代填點餐)
 * ========================================================================= */
.order-header-control {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--primary-blue);
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.order-btn-view-menu {
  height: 32px;
  padding: 0 12px;
  background: var(--bg-white);
  color: var(--primary-blue);
  border: 1px solid var(--primary-blue);
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.order-calendar-scroll-wrapper {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--bg-white);
  margin-bottom: 20px;
}

.order-calendar-table {
  width: 100%;
  min-width: 750px;
  border-collapse: collapse;
  table-layout: fixed;
}

.order-calendar-table th {
  background: var(--primary-blue);
  color: var(--bg-white);
  padding: 10px 5px;
  font-weight: bold;
  font-size: 0.88rem;
  border: 1px solid var(--primary-blue);
  text-align: center;
}

.order-calendar-table td {
  border: 1px solid var(--border-light);
  vertical-align: top;
  padding: 6px;
  height: 130px;
  position: relative;
  cursor: pointer;
  transition: all 0.2s;
  background-color: var(--bg-white);
}

.order-calendar-table td:hover:not(.empty-cell):not(.past-cell) {
  background-color: var(--light-blue);
}

.order-calendar-table td.empty-cell {
  background-color: var(--bg-card);
  cursor: default;
}

.order-calendar-table td.active-day-cell {
  outline: 3px solid var(--primary-blue);
  outline-offset: -3px;
  background-color: var(--light-blue) !important;
}

.order-day-cell-box {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: flex-start;
  gap: 5px;
}

.order-date-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  color: var(--text-dark);
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 3px;
  margin-bottom: 2px;
}

.today-cell .order-date-header {
  color: var(--status-danger);
}

.order-today-badge {
  background: var(--status-danger-bg);
  color: var(--status-danger-text);
  font-size: 0.65rem;
  padding: 1px 4px;
  border-radius: 3px;
}

.order-meal-card-view {
  border: 1px solid var(--border-input);
  border-radius: 5px;
  padding: 4px 6px;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-white);
}

.order-badge {
  font-size: 0.68rem;
  font-weight: bold;
  color: var(--bg-white);
  padding: 1px 4.5px;
  border-radius: 3px;
  flex-shrink: 0;
}

.order-badge-a {
  background-color: var(--meal-badge-a) !important;
}

.order-badge-b {
  background-color: var(--primary-blue) !important;
}

.order-food-text-cell {
  flex-grow: 1;
  font-weight: bold;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-full-status-block {
  flex-grow: 1;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.82rem;
  text-align: center;
  padding: 0 4px;
  gap: 2px;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.05);
}

.order-calendar-table td.past-cell {
  background-color: var(--bg-input-disabled) !important;
  color: var(--text-light) !important;
  cursor: not-allowed !important;
}

.order-calendar-table td.past-cell .order-date-header {
  color: var(--text-light) !important;
  border-bottom-color: var(--border-light) !important;
}

.order-calendar-table td.past-cell .order-meal-card-view {
  background-color: var(--bg-card) !important;
  border-color: var(--border-light) !important;
  opacity: 0.5;
}

.order-calendar-table td.past-cell .order-badge {
  background-color: var(--border-input) !important;
  color: var(--bg-white) !important;
}

.order-calendar-table td.past-cell .order-food-text-cell {
  color: var(--text-light) !important;
}

.order-calendar-table td.past-cell .order-full-status-block {
  filter: grayscale(100%);
  opacity: 0.5;
  background-color: var(--bg-input-disabled) !important;
  border-color: var(--border-input) !important;
  color: var(--text-muted) !important;
}

.order-calendar-table td.today-locked-cell {
  cursor: not-allowed !important;
  background-color: var(--status-warning-bg) !important;
}

.order-calendar-table td.today-locked-cell .order-meal-card-view {
  opacity: 0.6;
}

/* 🛠️ 每日點餐控制台 */
.order-console-panel {
  border: 2px solid var(--primary-blue);
  background: var(--bg-white);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-blue-hover);
}

.order-console-header {
  font-size: 1rem;
  font-weight: bold;
  color: var(--primary-blue);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-console-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 540px) {
  .order-console-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.order-console-btn {
  border: 1px solid var(--border-input);
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-white);
  transition: all 0.2s ease;
  text-align: left;
  user-select: none;
}

.order-console-btn:hover {
  border-color: var(--text-muted);
  background-color: var(--bg-card);
}

.order-btn-badge {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.85rem;
  color: var(--bg-white);
  flex-shrink: 0;
}

.order-btn-text {
  flex-grow: 1;
  font-size: 0.88rem;
  line-height: 1.3;
  font-weight: bold;
  color: var(--text-dark);
}

.order-btn-clear {
  grid-column: 1 / -1;
  text-align: center;
  padding: 10px;
  color: var(--status-danger-text);
  background: var(--status-danger-bg);
  border: 1px solid var(--status-danger-border);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: bold;
  transition: 0.2s;
  width: 100%;
}

.order-btn-clear:hover {
  background: var(--status-danger-border);
}

/* 底部彙整與送出區域 */
.order-footer-summary {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 15px;
  margin-top: 15px;
}

.order-summary-title {
  font-size: 0.95rem;
  font-weight: bold;
  color: var(--text-dark);
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 5px;
}

.order-summary-content-list {
  max-height: 120px;
  overflow-y: auto;
  font-size: 0.85rem;
  color: var(--text-main);
  line-height: 1.5;
  padding-left: 15px;
  margin: 0 0 12px 0;
}

.order-btn-submit {
  width: 100%;
  background: var(--primary-blue);
  color: var(--bg-white);
  border: none;
  padding: 12px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 4px 6px rgba(37, 99, 235, 0.15);
}

.order-btn-submit:hover {
  background: var(--hover-blue);
}

.order-btn-submit:disabled,
.order-btn-submit.is-disabled {
  background: var(--border-input) !important;
  color: var(--bg-card) !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  box-shadow: none !important;
  opacity: 0.55 !important;
}

/* =========================================================================
 * 📑 4. 系統通用元件：分段切換頁籤 (Shared Segmented Tabs & Switchers)
 * 適用模組：Approval.html, Leave.html, PersonalCenter.html, AdminDashboard.html, ProxyFill.html
 * ========================================================================= */
.sys-tabs,
.dashboard-tabs,
.pf-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.sys-tab-btn,
.dashboard-tab-btn,
.pf-tab-btn {
  background: var(--border-light);
  border: 1px solid var(--border-light);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: bold;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.sys-tab-btn:hover,
.dashboard-tab-btn:hover {
  background: var(--border-dark);
}

.sys-tab-btn.active,
.dashboard-tab-btn.active,
.pf-tab-btn.active {
  background: var(--primary-blue) !important;
  color: var(--bg-white) !important;
  border-color: var(--primary-blue) !important;
  box-shadow: var(--shadow-blue-avatar);
}

/* 膠囊型頁籤 (Pills) */
.sys-tab-group,
.ad-view-switcher {
  display: flex;
  background: var(--bg-card);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  gap: 4px;
}

.sys-tab-group-btn,
.ad-view-btn {
  border: none;
  background: transparent;
  padding: 6px 14px;
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.sys-tab-group-btn:hover,
.ad-view-btn:hover {
  color: var(--text-dark);
}

.sys-tab-group-btn.active,
.ad-view-btn.active {
  background: var(--bg-white);
  color: var(--primary-blue);
  box-shadow: var(--shadow-common);
}

/* =========================================================================
 * 💡 5. 系統通用元件：提示橫幅與今日紀錄看板 (Shared Notice Banners & Record Panels)
 * 適用模組：DailyReport.html, Order.html, ProxyFill.html
 * ========================================================================= */
.sys-banner,
.pf-banner {
  display: none;
  background: var(--light-blue);
  color: var(--hover-blue);
  border: 1px solid var(--border-blue);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: bold;
  margin-top: 10px;
  line-height: 1.4;
}

.sys-notice-danger,
.leave-warning-banner,
#drLeaveWarningBanner,
#orderLeaveWarningBanner {
  background: var(--status-danger-bg);
  border: 1px solid var(--status-danger-border);
  color: var(--status-danger-text);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 15px;
}

.sys-notice-warning {
  background: var(--status-warning-bg);
  border: 1px solid var(--status-warning-border);
  color: var(--status-warning-text);
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  margin-bottom: 15px;
  line-height: 1.5;
}

.sys-record-panel,
#todayRecords,
#orderTodayRecordPanel,
#pfTodayRecords {
  display: none;
  background: var(--light-blue);
  border: 1px solid var(--border-blue);
  padding: 10px 15px;
  margin-bottom: 15px;
  border-radius: 6px;
  font-size: 0.85rem;
}

.sys-record-panel h4,
#todayRecords h4,
#orderTodayRecordPanel h4,
#pfTodayRecords h4 {
  margin: 0 0 8px 0;
  color: var(--primary-blue);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-blue);
  padding-bottom: 5px;
}

/* =========================================================================
 * 📋 6. 系統通用元件：清單小型刪除按鈕 (Shared Record List Delete Button)
 * 適用模組：DailyReport.html, ProxyFill.html
 * ========================================================================= */
.sys-list-del-btn,
.dr-list-del-btn,
.pf-list-del-btn {
  padding: 2px 8px;
  font-size: 0.75rem;
  background: var(--bg-white);
  border: 1px solid var(--status-danger);
  color: var(--status-danger);
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
  transition: 0.2s;
  font-weight: normal;
}

.sys-list-del-btn:hover,
.dr-list-del-btn:hover,
.pf-list-del-btn:hover {
  background: var(--status-danger);
  color: var(--bg-white);
}

.sys-list-del-btn:disabled,
.dr-list-del-btn:disabled,
.pf-list-del-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 🏖️ 請假提示橫幅與唯讀列表樣式 */
.dr-leave-info-banner {
  background-color: #f3e8ff;
  border: 1px solid #c084fc;
  color: #581c87;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 0.88rem;
  line-height: 1.45;
  font-weight: 500;
  display: none;
}

.dr-leave-record-item {
  background-color: #faf5ff !important;
  border-radius: 6px;
  padding: 6px 8px !important;
}







