


:root {
  --font-serif: "Plus Jakarta Sans", "Inter", "Noto Serif TC", "Source Han Serif TC", "Songti TC", serif;

   
  --primary-blue: #2563eb;           
  --primary-blue-dark: #1e3a8a;      
  --btn-primary: #068fd6;            
  --btn-primary-hover: #0581c2;      
  --hover-blue: #1d4ed8;             
  --light-blue: #eff6ff;             
  --border-blue: #bfdbfe;            

   
  --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;     
   
  --status-success-soft: #ecfdf5;
  --status-warning-soft: #fffbeb;
  --status-warning-strong: #b45309;
  --status-danger-soft: #fef2f2;

   
  --meal-badge-a: #ea580c;           
  --meal-badge-b: #2563eb;           

   
  --calendar-holiday-color: #e11d48;   
  --calendar-holiday-line: #f43f5e;    
  --calendar-holiday-bg: #fff1f2;      
  --calendar-holiday-border: #fecdd3;  

  --calendar-makeup-color: #059669;    
  --calendar-makeup-line: #10b981;     
  --calendar-makeup-bg: #ecfdf5;       
  --calendar-makeup-border: #a7f3d0;   

  --calendar-event-color: #0369a1;     
  --calendar-event-line: #0284c7;      
  --calendar-event-bg: #f0f9ff;        
  --calendar-event-border: #bae6fd;    

   
  --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; 

   
  --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);

   
  --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);

   
  --font-serif: "Plus Jakarta Sans", "Inter", "Noto Serif TC", "Source Han Serif TC", "Songti TC", serif;
  --font-family-serif: "Plus Jakarta Sans", "Inter", "Noto Serif TC", "Source Han Serif TC", "Songti TC", serif;
  --font-family-base: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans TC", sans-serif;
  --font-family-heading: "Plus Jakarta Sans", "Inter", "Noto Serif TC", "Source Han Serif TC", "Songti TC", serif;
  --font-family-mono: "Inter", "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}




* {
   
  box-sizing: border-box;
}

body {
   
  font-family: var(--font-family-base);
  background-color: var(--bg-gray);
  color: var(--text-dark);
  margin: 0;
  padding: 0;
   
  -webkit-overflow-scrolling: touch;
}

 
svg.w-3, .w-3 { width: 12px !important; height: 12px !important; min-width: 12px; min-height: 12px; max-width: 12px; max-height: 12px; flex-shrink: 0; }
svg.w-3\.5, .w-3\.5, .w-3-5 { width: 14px !important; height: 14px !important; min-width: 14px; min-height: 14px; max-width: 14px; max-height: 14px; flex-shrink: 0; }
svg.w-4, .w-4 { width: 16px !important; height: 16px !important; min-width: 16px; min-height: 16px; max-width: 16px; max-height: 16px; flex-shrink: 0; }
svg.w-5, .w-5 { width: 20px !important; height: 20px !important; min-width: 20px; min-height: 20px; max-width: 20px; max-height: 20px; flex-shrink: 0; }
svg.w-6, .w-6 { width: 24px !important; height: 24px !important; min-width: 24px; min-height: 24px; max-width: 24px; max-height: 24px; flex-shrink: 0; }
svg.w-8, .w-8 { width: 32px !important; height: 32px !important; min-width: 32px; min-height: 32px; max-width: 32px; max-height: 32px; flex-shrink: 0; }

svg.h-3, .h-3 { height: 12px !important; }
svg.h-3\.5, .h-3\.5, .h-3-5 { height: 14px !important; }
svg.h-4, .h-4 { height: 16px !important; }
svg.h-5, .h-5 { height: 20px !important; }
svg.h-6, .h-6 { height: 24px !important; }
svg.h-8, .h-8 { height: 32px !important; }




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;  
  background-color: var(--bg-white);
  color: var(--text-dark);
  transition: all 0.2s ease;  
  -webkit-appearance: none;
  appearance: none;
}

 
input:focus,
select:focus {
  outline: none;  
  border-color: var(--primary-blue);  
  box-shadow: 0 0 0 3px var(--light-blue);  
}

 
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);  
}

 
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;  
  background-size: 1em;  
  padding-right: 30px;  
}




.sys-spinner-mask {
  display: none;  
  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;  
}

 
#hubSpinner.sys-spinner-mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(248, 250, 252, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: "Noto Serif TC", serif;
}

.sys-spinner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 34px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 10px 30px -5px rgba(0, 50, 150, 0.07), 0 4px 12px rgba(0, 0, 0, 0.03);
  max-width: 90vw;
  animation: sysSpinnerCardIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes sysSpinnerCardIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.sys-spinner-icon-wrap {
  width: 48px;
  height: 48px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sys-spinner-svg {
  width: 44px;
  height: 44px;
  animation: sysSpinSvg 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.sys-spinner-track {
  stroke: #e2e8f0;
}

.sys-spinner-head {
  stroke: #0052ff;
  stroke-dasharray: 85, 200;
  stroke-dashoffset: 0;
  animation: sysDashSvg 1.4s ease-in-out infinite;
}

@keyframes sysSpinSvg {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes sysDashSvg {
  0% {
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 88, 200;
    stroke-dashoffset: -35px;
  }
  100% {
    stroke-dasharray: 88, 200;
    stroke-dashoffset: -125px;
  }
}

.sys-spinner-mask p,
#hubSpinner p {
  margin-top: 14px;
  margin-bottom: 0;
  font-weight: 700;
  color: #1e293b;
  font-size: 0.98rem;
  text-align: center;
  letter-spacing: 0.02em;
  font-family: "Noto Serif TC", serif !important;
}

 
.spinner-circle {
  width: 44px;
  height: 44px;
  border: 3.5px solid #e2e8f0;
  border-top-color: #0052ff;
  border-radius: 50%;
  animation: sysSpinSvg 0.9s linear infinite;
}




.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(--btn-primary);
  color: var(--bg-white);
}

.sys-modal-btn-submit:hover,
.pf-modal-btn-submit:hover {
  background: var(--btn-primary-hover);
}




.leave-form-container {
  padding: 15px;
  max-width: 800px;
  margin: 0 auto;
}

.approval-container {
  padding: 0;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.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;
}




.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;
  }
}




.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;
  }
}




.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);
}



.hub-chip--approved {
  background: var(--status-success-soft);
  border: 1px solid var(--status-success-border);
  color: var(--status-success-text);
}
.hub-chip--pending {
  background: var(--status-warning-soft);
  border: 1px solid var(--status-warning-border);
  color: var(--status-warning-strong);
}
.hub-chip--rejected {
  background: var(--status-danger-soft);
  border: 1px solid var(--status-danger-border);
  color: var(--status-danger-text);
}
.hub-chip--cancelled {
  background: #f1f5f9;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
}
.hub-chip--entered {
  background: #f0f7ff;
  border: 1px solid #bae0ff;
  color: #0284c7;
}





 
body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  position: relative;
}

 




 





 

 
.mega-item-icon.bg-amber-50,
.bg-amber-50 {
  background-color: #fffbeb !important;
  color: #d97706 !important;
  border-color: #fde68a !important;
}
.text-amber-600 { color: #d97706 !important; }
.border-amber-200 { border-color: #fde68a !important; }

.mega-item-icon.bg-indigo-50,
.bg-indigo-50 {
  background-color: #eef2ff !important;
  color: #4f46e5 !important;
  border-color: #c7d2fe !important;
}
.text-indigo-600 { color: #4f46e5 !important; }
.border-indigo-200 { border-color: #c7d2fe !important; }

.mega-item-icon.bg-rose-50,
.bg-rose-50 {
  background-color: #fff1f2 !important;
  color: #e11d48 !important;
  border-color: #fecdd3 !important;
}
.text-rose-600 { color: #e11d48 !important; }
.border-rose-200 { border-color: #fecdd3 !important; }

.mega-item-icon.bg-emerald-50,
.bg-emerald-50 {
  background-color: #ecfdf5 !important;
  color: #059669 !important;
  border-color: #a7f3d0 !important;
}
.text-emerald-600 { color: #059669 !important; }
.border-emerald-200 { border-color: #a7f3d0 !important; }

.mega-item-icon.bg-brand-50,
.bg-brand-50 {
  background-color: #F0F6FE !important;
  color: #0052FF !important;
  border-color: #C3DCFC !important;
}
.text-brand-600 { color: #0052FF !important; }
.border-brand-200 { border-color: #C3DCFC !important; }

.mega-item-icon.bg-slate-100,
.bg-slate-100 {
  background-color: #f1f5f9 !important;
  color: #475569 !important;
  border-color: #e2e8f0 !important;
}
.text-slate-600 { color: #475569 !important; }
.border-slate-200 { border-color: #e2e8f0 !important; }








.content-container {
  flex-grow: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.spa-page {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  display: none;
}

 

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

 





.ann-badge-pinned {
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
  font-family: var(--font-serif);
}

.ann-badge-cat {
  font-family: var(--font-serif);
  padding: 3px 9px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid transparent;
}

.ann-badge-admin {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.ann-badge-hr {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.ann-badge-sec {
  background: #eef2ff;
  color: #4338ca;
  border-color: #c7d2fe;
}

.ann-badge-important {
  background: #fff1f2;
  color: #be123c;
  border-color: #fecdd3;
}

.ann-badge-other {
  background: #f1f5f9;
  color: #475569;
  border-color: #cbd5e1;
}




#hubToggleBtn {
  display: none !important;
}

@media (max-width: 991px) {
  #hubToggleBtn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 10px;
    background: #F0F6FE;
    border: 1px solid #C3DCFC;
    color: #0052FF;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 2px rgba(0, 82, 255, 0.08);
    flex-shrink: 0;
  }
  #hubToggleBtn:hover,
  #hubToggleBtn:active {
    background: #E1EDFD;
    border-color: #95C2FA;
    color: #0043D6;
    transform: scale(0.96);
  }
}

 
.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;
}

.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;
}

 





.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,
.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,
.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,
.pf-timeline-segment {
  position: absolute;
  height: 100%;
  top: 0;
  transition: all 0.25s ease;
}

.timeline-segment.history,
.pf-timeline-segment.history {
  background: var(--primary-blue, #0284c7);
}

.timeline-segment.overtime,
.pf-timeline-segment.overtime {
  background: #f59e0b;  
}

.timeline-segment.current,
.pf-timeline-segment.current {
  background: #2563eb;  
}

.timeline-segment.current-overtime,
.pf-timeline-segment.current-overtime {
  background: #fbbf24;  
}

.timeline-segment.leave,
.pf-timeline-segment.leave {
  background: #8b5cf6;  
}

.timeline-segment.overlap,
.pf-timeline-segment.overlap {
  background: var(--status-danger);
  animation: sysTimelineFlash 0.5s infinite alternate;
}

.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,
.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; } }





.meal-apply-block,
#drMealApplyBlock,
#pfMealApplyBlock {
  background: var(--light-blue);
  border: 1px solid var(--border-blue, #bae6fd);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.1);
  border-radius: 8px;
  padding: 14px;
  margin-top: 15px;
  margin-bottom: 15px;
  text-align: left;
}

.meal-apply-block h3,
#pfMealApplyBlock h3 {
  margin: 0 0 10px 0;
  font-size: 0.95rem;
  color: var(--primary-blue, #0284c7);
  border-bottom: 1px solid var(--border-blue, #bae6fd);
  padding-bottom: 6px;
}

.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;
  gap: 8px;
}

.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;
  accent-color: var(--primary-blue, #0284c7);
}

.meal-apply-option label,
.dr-meal-apply-option label,
.pf-meal-apply-option label {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-dark, #1e293b);
  display: inline-flex;
  align-items: center;
  margin: 0;
  user-select: none;
}

.meal-apply-amt-container,
.dr-meal-apply-amt-container,
.pf-meal-apply-amt-container {
  margin-top: 4px;
  margin-left: 26px;
  font-size: 0.85rem;
  color: var(--primary-blue, #0284c7);
  font-weight: 600;
  display: none;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.meal-apply-amt-container span,
.dr-meal-apply-amt-container span,
.pf-meal-apply-amt-container span {
  display: inline-flex;
  align-items: center;
  height: 32px;
  line-height: 32px;
}

.meal-apply-amt-input,
.dr-meal-apply-amt-input,
.pf-meal-apply-amt-input {
  width: 75px;
  height: 32px;
  line-height: 32px;
  padding: 0 6px;
  border: 1px solid var(--border-blue, #bae6fd);
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  box-sizing: border-box;
  color: var(--primary-blue, #0284c7);
  background: #ffffff;
  vertical-align: middle;
}

.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.82rem;
  color: var(--text-muted, #64748b);
  background: #ffffff;
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 4px;
  padding: 8px 10px;
  text-align: center;
  margin-bottom: 8px;
  font-style: italic;
}





.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(--btn-primary);
  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(6, 143, 214, 0.15);
}

.order-btn-submit:hover {
  background: var(--btn-primary-hover);
}

.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;
}





.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);
}

 
.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);
}





.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 {
  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,
#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,
#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;
}





.sys-list-del-btn,
.dr-list-del-btn,
.pf-list-del-btn {
  padding: 2px 8px;
  font-size: 0.75rem;
  background: var(--bg-white, #ffffff);
  border: 1px solid var(--status-danger, #ef4444);
  color: var(--status-danger, #ef4444);
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
  transition: 0.2s;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  line-height: 1.2;
}

.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;
}

 
 
 
.hub-modal-mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: hubFadeIn 0.2s ease-out;
}

.hub-modal-dialog {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.8);
  animation: hubPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hub-modal-header {
  padding: 20px 24px 10px 24px;
}

.hub-modal-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
}

.hub-modal-body {
  padding: 8px 24px 20px 24px;
}

.hub-modal-msg {
  margin: 0;
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.5;
  word-break: break-word;
}
.hub-modal-msg:not(:has(*)) {
  white-space: pre-wrap;
}

.hub-modal-footer {
  padding: 14px 24px 20px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #f1f5f9;
}

.hub-btn-primary {
  flex: 1;
  padding: 10px 18px;
  background: linear-gradient(135deg, #068fd6 0%, #0581c2 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.hub-btn-primary:hover {
  background: linear-gradient(135deg, #0581c2 0%, #046ba3 100%);
  transform: translateY(-1px);
}

.hub-btn-secondary {
  flex: 1;
  padding: 10px 18px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.hub-btn-secondary:hover {
  background: #e2e8f0;
  color: #1e293b;
}





.hub-vcard {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.55;
}
.hub-vcard-head { display: flex; align-items: center; gap: 12px; }
.hub-vcard-ico {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fee2e2;
  color: #dc2626;
}
.hub-vcard-ico svg { width: 22px; height: 22px; }
.hub-vcard--warn .hub-vcard-ico { background: #fef3c7; color: #d97706; }
.hub-vcard-ttl { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hub-vcard-ttl b { font-size: 15px; font-weight: 800; color: #0f172a; }
.hub-vcard-ttl span { font-size: 12.5px; color: #64748b; }
.hub-vcard-chip {
  flex: none;
  max-width: 46%;
  padding: 3px 10px;
  border-radius: 999px;
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #dc2626;
  font-family: monospace;
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hub-vcard-chip--muted {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #475569;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
}
.hub-vcard-reason {
  padding: 10px 12px;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 13.5px;
  font-weight: 600;
}
.hub-vcard--warn .hub-vcard-reason { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.hub-vcard-reason--ico { display: flex; align-items: flex-start; gap: 8px; }
.hub-vcard-reason--ico svg { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.hub-vcard-rows { display: flex; flex-direction: column; gap: 6px; }
.hub-vcard-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 13.5px;
}
.hub-vcard-row > span { min-width: 0; color: #475569; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-vcard-row > b { flex: none; font-family: monospace; color: #0f172a; }
.hub-vcard-guide { padding: 12px; border-radius: 12px; background: #f8fafc; border: 1px solid #e2e8f0; }
.hub-vcard-guide-t { margin-bottom: 8px; color: #64748b; font-size: 12px; font-weight: 700; }
.hub-vcard-seg { display: flex; gap: 6px; }
.hub-vcard-seg > div { flex: var(--w, 1) 1 0; min-width: 0; padding: 7px 4px; border-radius: 8px; text-align: center; }
.hub-vcard-seg b { display: block; font-family: monospace; font-size: 15px; font-weight: 800; }
.hub-vcard-seg i { display: block; margin-top: 2px; color: #475569; font-size: 11px; font-style: normal; }
.hub-vcard-seg .seg--a { background: #e0f2fe; border: 1px solid #bae6fd; }
.hub-vcard-seg .seg--a b { color: #0369a1; }
.hub-vcard-seg .seg--b { background: #e0e7ff; border: 1px solid #c7d2fe; }
.hub-vcard-seg .seg--b b { color: #4338ca; }
.hub-vcard-seg .seg--c { background: #f1f5f9; border: 1px solid #e2e8f0; }
.hub-vcard-seg .seg--c b { color: #334155; }
.hub-vcard-eg { margin-top: 8px; color: #64748b; font-size: 12.5px; }
.hub-vcard-eg code { padding: 1px 6px; border-radius: 6px; background: #e2e8f0; color: #0f172a; font-family: monospace; font-weight: 700; }

@keyframes hubFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes hubPopIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}









.btn-primary,
.btn-order-primary,
.btn-light-primary,
.btn-add,
.btn-order-toggle {
  font-family: var(--font-serif);
  height: 36px;
  padding: 0 16px;
  border-radius: var(--radius-md, 10px);
  background: var(--light-blue, #eff6ff);
  border: 1px solid var(--border-blue, #bfdbfe);
  color: var(--primary-blue, #2563eb);
  font-size: 13.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 1px 3px 0 rgba(37, 99, 235, 0.08);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  white-space: nowrap;
}
.btn-primary:hover,
.btn-order-primary:hover,
.btn-light-primary:hover,
.btn-add:hover,
.btn-order-toggle:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1d4ed8;
  transform: translateY(-1px);
}
.btn-primary:active,
.btn-order-primary:active,
.btn-light-primary:active,
.btn-add:active,
.btn-order-toggle:active {
  transform: translateY(0);
}

.btn-secondary,
.btn-order-view {
  font-family: var(--font-serif);
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-md, 10px);
  background: #ffffff;
  border: 1px solid var(--border-light, #e2e8f0);
  color: var(--text-main, #334155);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  white-space: nowrap;
}
.btn-secondary:hover,
.btn-order-view:hover {
  background: #f8fafc;
  border-color: var(--border-dark, #cbd5e1);
  color: var(--text-dark, #1e293b);
  transform: translateY(-1px);
}

.btn-danger,
.btn-order-danger {
  font-family: var(--font-serif);
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-md, 10px);
  background: var(--status-danger-bg, #fee2e2);
  border: 1px solid var(--status-danger-border, #fecaca);
  color: var(--status-danger-text, #991b1b);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 1px 2px rgba(220, 38, 38, 0.05);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  white-space: nowrap;
}
.btn-danger:hover,
.btn-order-danger:hover {
  background: #fecdd3;
  border-color: #fda4af;
  color: #881337;
  transform: translateY(-1px);
}





.app-icon-box,
.dept-bento-icon,
.title-bento-icon,
.leave-bento-icon,
.retention-bento-icon,
.line-bento-icon,
.adm-avatar-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md, 12px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--light-blue, #eff6ff);
  color: var(--primary-blue, #2563eb);
  border: 1px solid var(--border-blue, #bfdbfe);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.app-icon-box svg,
.dept-bento-icon svg,
.title-bento-icon svg,
.leave-bento-icon svg,
.retention-bento-icon svg,
.line-bento-icon svg,
.adm-avatar-box svg {
  width: 22px;
  height: 22px;
}

 
.app-icon-box--blue,
.leave-bento-icon.system-icon,
.retention-bento-icon.blue,
.line-bento-icon.blue {
  background: var(--light-blue, #eff6ff);
  color: var(--primary-blue, #2563eb);
  border-color: var(--border-blue, #bfdbfe);
}
.app-icon-box--amber,
.leave-bento-icon.custom-icon,
.retention-bento-icon.amber {
  background: var(--status-warning-bg, #fef3c7);
  color: var(--status-warning-text, #92400e);
  border-color: var(--status-warning-border, #fde68a);
}
.app-icon-box--green,
.retention-bento-icon.emerald,
.line-bento-icon.green {
  background: var(--status-success-bg, #dcfce7);
  color: var(--status-success-text, #166534);
  border-color: var(--status-success-border, #bbf7d0);
}
.app-icon-box--purple,
.retention-bento-icon.purple,
.line-bento-icon.purple {
  background: #f5f3ff;
  color: #8b5cf6;
  border-color: #ddd6fe;
}





.btn-icon-only,
.btn-icon-action {
  width: 34px;
  height: 34px;
  min-width: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-light, #e2e8f0);
  background: var(--bg-card, #ffffff);
  color: var(--text-secondary, #475569);
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.btn-icon-only svg,
.btn-icon-action svg {
  width: 15px;
  height: 15px;
}

 
.btn-icon-only:disabled,
.btn-icon-action:disabled {
  background: var(--bg-page, #f8fafc);
  color: var(--border-dark, #cbd5e1);
  border-color: var(--bg-subtle, #f1f5f9);
  cursor: not-allowed;
  opacity: 0.5;
  box-shadow: none;
  transform: none;
}

 
.btn-icon-edit,
.btn-icon-only.btn-icon-edit,
.btn-order-view.btn-icon-only {
  background: #ffffff;
  border-color: var(--border-light, #e2e8f0);
  color: var(--text-muted, #64748b);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.btn-icon-edit:hover:not(:disabled),
.btn-icon-only.btn-icon-edit:hover:not(:disabled),
.btn-order-view.btn-icon-only:hover:not(:disabled) {
  background: var(--light-blue, #eff6ff);
  border-color: var(--border-blue, #bfdbfe);
  color: var(--primary-blue, #2563eb);
  transform: translateY(-1px);
}

 
.btn-icon-delete,
.btn-icon-only.btn-icon-delete,
.btn-order-danger.btn-icon-only {
  background: #fff5f5;
  border-color: #fee2e2;
  color: #ef4444;
  box-shadow: 0 1px 2px rgba(239, 68, 68, 0.05);
}
.btn-icon-delete:hover:not(:disabled),
.btn-icon-only.btn-icon-delete:hover:not(:disabled),
.btn-order-danger.btn-icon-only:hover:not(:disabled) {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
  transform: translateY(-1px);
}

 
.hub-lbl-short { display: none; }
@media (max-width: 860px) {
  .hub-lbl-full { display: none; }
  .hub-lbl-short { display: inline; }
}

 
.hub-svg-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: inline-block;
  vertical-align: middle;
}

 
 
 
.hub-toast-box {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 1000000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: calc(100vw - 32px);
  pointer-events: none;
}
.hub-toast {
  padding: 10px 18px;
  border-radius: 10px;
  background: #0f172a;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
  border-left: 4px solid #0284c7;
  white-space: pre-wrap;
  word-break: break-word;
  animation: hubFadeIn 0.2s ease-out;
  transition: opacity 0.25s ease;
}
.hub-toast--success { border-left-color: #16a34a; }
.hub-toast--error { border-left-color: #dc2626; }
.hub-toast--warning { border-left-color: #f59e0b; }
.hub-toast.is-leaving { opacity: 0; }
