/* ════════════════════════════════════════════════════════════════════
   T-Go-Hub v18.8.8 — CEO Pending Approval Bar
   ────────────────────────────────────────────────────────────────────
   แถบ "รอ CEO อนุมัติ" บนหน้ารวม T-Costsheet (เหนือตาราง)
   - แสดงเฉพาะ role==='admin' (CEO)
   - มีปุ่มอนุมัติ/ปฏิเสธในแถบ
   ════════════════════════════════════════════════════════════════════ */

.ceo-pending-bar {
  background: linear-gradient(135deg, #FFF8E7 0%, #FFEFCC 100%);
  border: 1.5px solid #F5C66E;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 14px 0 18px;
  box-shadow: 0 2px 8px rgba(245, 198, 110, 0.15);
}

.ceo-pending-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #E5B557;
}

.ceo-pending-icon {
  font-size: 20px;
}

.ceo-pending-label {
  font-weight: 700;
  font-size: 15px;
  color: #854F0B;
  flex: 1;
}

.ceo-pending-count {
  background: #B8860B;
  color: #fff;
  border-radius: 999px;
  padding: 2px 12px;
  font-size: 13px;
  font-weight: 600;
  min-width: 28px;
  text-align: center;
}

.ceo-pending-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ceo-pending-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #F0DBA8;
  border-radius: 10px;
  padding: 10px 14px;
  transition: box-shadow 0.15s, transform 0.15s;
}

.ceo-pending-row:hover {
  box-shadow: 0 3px 10px rgba(133, 79, 11, 0.12);
  transform: translateY(-1px);
}

.ceo-pending-info {
  flex: 1;
  min-width: 0;
}

.ceo-pending-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.ceo-pending-code {
  font-family: monospace;
  font-size: 12px;
  color: var(--mu, #6b7280);
  background: #f3f4f6;
  padding: 1px 6px;
  border-radius: 4px;
}

.ceo-pending-name {
  font-weight: 600;
  font-size: 14px;
  color: #1f2937;
}

.ceo-pending-meta {
  font-size: 12.5px;
  color: #6b7280;
  line-height: 1.5;
}

.ceo-pending-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.ceo-pending-actions .btn-ap {
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

/* responsive: บนจอเล็ก เลื่อน actions ไปบรรทัดใหม่ */
@media (max-width: 640px) {
  .ceo-pending-row {
    flex-direction: column;
    align-items: stretch;
  }
  .ceo-pending-actions {
    justify-content: flex-end;
  }
}
